diff --git a/AuthPlugin.h b/AuthPlugin.h index dda14acc..529402ac 100644 --- a/AuthPlugin.h +++ b/AuthPlugin.h @@ -1,8 +1,6 @@ /** \file AuthPlugin.h \brief Define the authentication plugin \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef AUTHPLUGIN_H diff --git a/CliParser.h b/CliParser.h index 2932f98c..31920356 100644 --- a/CliParser.h +++ b/CliParser.h @@ -1,8 +1,6 @@ /** \file CliParser.h \brief To group into one class, the CLI parsing \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef CLIPARSER_H diff --git a/CompilerInfo.h b/CompilerInfo.h index 6cc079ba..c4b44643 100644 --- a/CompilerInfo.h +++ b/CompilerInfo.h @@ -1,8 +1,6 @@ /** \file CompilerInfo.h \brief Define the compiler info \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ /// \def COMPILERINFO the string to identify the compiler diff --git a/CopyEngineManager.h b/CopyEngineManager.h index 1b3ce583..3a17f6f5 100644 --- a/CopyEngineManager.h +++ b/CopyEngineManager.h @@ -1,8 +1,6 @@ /** \file CopyEngineManager.h \brief Define the copy engine manager \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef COPYENGINEMANAGER_H diff --git a/CopyListener.h b/CopyListener.h index 9a993481..57620982 100755 --- a/CopyListener.h +++ b/CopyListener.h @@ -1,8 +1,6 @@ /** \file CopyListener.h \brief Define the class to load the plugin and lunch it \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef COPYLISTENER_H diff --git a/Core.h b/Core.h index b3e416c1..4a372a56 100644 --- a/Core.h +++ b/Core.h @@ -1,8 +1,6 @@ /** \file Core.h \brief Define the class definition for core, the Copy of each copy/move window \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef CORE_H diff --git a/DebugEngine.h b/DebugEngine.h index fb731a69..c05279de 100644 --- a/DebugEngine.h +++ b/DebugEngine.h @@ -1,8 +1,6 @@ /** \file DebugEngine.h \brief Define the class for the debug \author alpha_one_x86 -\version 0.3 -\date 2010 \note This class don't need be thread safe because ultracopier is done with one thread, but I have implement some basic thread protection \licence GPL3, see the file COPYING */ diff --git a/DebugEngineMacro.h b/DebugEngineMacro.h index 9a96957a..6971d953 100644 --- a/DebugEngineMacro.h +++ b/DebugEngineMacro.h @@ -1,8 +1,6 @@ /** \file DebugEngineMacro.h \brief Define the macro for the debug \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef DEBUGENGINEMACRO_H diff --git a/Environment.h b/Environment.h index dcbea70d..761c8caa 100644 --- a/Environment.h +++ b/Environment.h @@ -1,8 +1,6 @@ /** \file Environment.h \brief Define the environment variable and global function \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #include "Variable.h" diff --git a/EventDispatcher.h b/EventDispatcher.h index 35a5d07d..cf3c40f6 100644 --- a/EventDispatcher.h +++ b/EventDispatcher.h @@ -1,8 +1,6 @@ /** \file EventDispatcher.h \brief Define the class of the event dispatcher \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef EVENT_DISPATCHER_H diff --git a/ExtraSocket.h b/ExtraSocket.h index 56229c70..78182eb9 100644 --- a/ExtraSocket.h +++ b/ExtraSocket.h @@ -1,8 +1,6 @@ /** \file ExtraSocket.h \brief Define the socket for ultracopier \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef EXTRASOCKET_H diff --git a/FacilityEngine.h b/FacilityEngine.h index d5a6145a..68cadd50 100644 --- a/FacilityEngine.h +++ b/FacilityEngine.h @@ -2,8 +2,6 @@ \brief To implement the facility engine, the interface is defined into FacilityInterface() \see FacilityInterface() \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef FACILITYENGINE_H diff --git a/GlobalClass.h b/GlobalClass.h index 21dd12ea..66c145f7 100644 --- a/GlobalClass.h +++ b/GlobalClass.h @@ -1,8 +1,6 @@ /** \file GlobalClass.h \brief Define the class for all the class different of ResourcesManager, DebugEngine, ThemesManager, OptionEngine have object of this class at the global scope \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef GLOBAL_CLASS_H diff --git a/HelpDialog.h b/HelpDialog.h index 43cbc7fc..6d15e54c 100644 --- a/HelpDialog.h +++ b/HelpDialog.h @@ -1,8 +1,6 @@ /** \file HelpDialog.h \brief Define the help dialog \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef DIALOG_H diff --git a/LanguagesManager.h b/LanguagesManager.h index a517cac8..712192de 100644 --- a/LanguagesManager.h +++ b/LanguagesManager.h @@ -1,8 +1,6 @@ /** \file LanguagesManager.h \brief Define the class to manage and load the languages \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef LANGUAGES_MANAGER_H diff --git a/LocalListener.h b/LocalListener.h index 54f28e45..0fbe4426 100644 --- a/LocalListener.h +++ b/LocalListener.h @@ -1,8 +1,6 @@ /** \file LocalListener.h \brief The have local server, to have unique instance, and send arguments to the current running instance \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef LOCALLISTENER_H diff --git a/LocalPluginOptions.h b/LocalPluginOptions.h index f5ee4636..08d833be 100644 --- a/LocalPluginOptions.h +++ b/LocalPluginOptions.h @@ -1,8 +1,6 @@ /** \file LocalPluginOptions.h \brief To bind the options of the plugin, into unique group options \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef LOCALPLUGINOPTIONS_H diff --git a/LogThread.h b/LogThread.h index 2366e3e8..a7733139 100644 --- a/LogThread.h +++ b/LogThread.h @@ -1,8 +1,6 @@ /** \file LogThread.h \brief The thread to do the log but not block the main thread \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef LOGTHREAD_H diff --git a/OptionDialog.h b/OptionDialog.h index b57dedde..6da550ce 100755 --- a/OptionDialog.h +++ b/OptionDialog.h @@ -1,8 +1,6 @@ /** \file OptionDialog.h \brief To have an interface to control the options \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef OPTIONDIALOG_H diff --git a/OptionEngine.h b/OptionEngine.h index 0b138485..98ee21f6 100644 --- a/OptionEngine.h +++ b/OptionEngine.h @@ -1,8 +1,6 @@ /** \file OptionEngine.h \brief Define the class of the option engine \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef OPTION_ENGINE_H diff --git a/PlatformMacro.h b/PlatformMacro.h index 5b79534e..d15329de 100644 --- a/PlatformMacro.h +++ b/PlatformMacro.h @@ -1,8 +1,6 @@ /** \file PlatformMacro.h \brief Define the macro for the platform \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #include diff --git a/PluginInformation.h b/PluginInformation.h index bae5ea49..d0bdfd5b 100644 --- a/PluginInformation.h +++ b/PluginInformation.h @@ -1,8 +1,6 @@ /** \file PluginInformation.h \brief Define the plugin information \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef PLUGININFORMATION_H diff --git a/PluginLoader.h b/PluginLoader.h index 010956ae..15d2d07f 100755 --- a/PluginLoader.h +++ b/PluginLoader.h @@ -1,8 +1,6 @@ /** \file PluginLoader.h \brief Define the class to load the plugin and lunch it \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING This class load ALL plugin compatible to listen and catch the copy/move diff --git a/PluginsManager.h b/PluginsManager.h index 672dc2a2..44be0679 100644 --- a/PluginsManager.h +++ b/PluginsManager.h @@ -1,8 +1,6 @@ /** \file PluginsManager.h \brief Define the class to manage and load the plugins \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef PLUGINS_MANAGER_H diff --git a/ResourcesManager.h b/ResourcesManager.h index c48688ad..f6e0148f 100644 --- a/ResourcesManager.h +++ b/ResourcesManager.h @@ -1,8 +1,6 @@ /** \file ResourcesManager.h \brief Define the class to manage and load the resources linked with the themes \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef RESOURCES_MANAGER_H diff --git a/SessionLoader.h b/SessionLoader.h index 912b924d..743fc9f1 100644 --- a/SessionLoader.h +++ b/SessionLoader.h @@ -1,8 +1,6 @@ /** \file SessionLoader.h \brief Define the class to load the plugin and lunch it \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING This class load ALL plugin compatible to listen and catch the copy/move diff --git a/Singleton.h b/Singleton.h index d88a0298..c737ce97 100644 --- a/Singleton.h +++ b/Singleton.h @@ -2,8 +2,6 @@ \brief Define the singleton for class which should have unique object \author alpha_one_x86 \note Big thanks to all people in the channel #qt-fr of freenode of irc -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #include diff --git a/StructEnumDefinition.h b/StructEnumDefinition.h index cb863069..5a1b2773 100644 --- a/StructEnumDefinition.h +++ b/StructEnumDefinition.h @@ -1,8 +1,6 @@ /** \file StructEnumDefinition.h \brief Define the structure and enumeration used in ultracopier or into the plugin \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #include diff --git a/StructEnumDefinition_UltracopierSpecific.h b/StructEnumDefinition_UltracopierSpecific.h index c9ed2d0c..4f4fd89b 100644 --- a/StructEnumDefinition_UltracopierSpecific.h +++ b/StructEnumDefinition_UltracopierSpecific.h @@ -1,8 +1,6 @@ /** \file StructEnumDefinition_UltracopierSpecific.h \brief Define the structure and enumeration used in ultracopier only \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #include diff --git a/SystrayIcon.h b/SystrayIcon.h index b90cbea5..1a0c44f2 100644 --- a/SystrayIcon.h +++ b/SystrayIcon.h @@ -1,8 +1,6 @@ /** \file SystrayIcon.h \brief Define the class of the systray icon \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef SYSTRAY_ICON_H diff --git a/ThemesManager.h b/ThemesManager.h index b27b2577..7de9cfbb 100644 --- a/ThemesManager.h +++ b/ThemesManager.h @@ -1,8 +1,6 @@ /** \file ThemesManager.h \brief Define the class to manage and load the themes \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef THEMES_MANAGER_H diff --git a/Variable.h b/Variable.h index bd9d3f0e..c5427e76 100644 --- a/Variable.h +++ b/Variable.h @@ -1,8 +1,6 @@ /** \file Variable.h \brief Define the environment variable \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef VARIABLE_H diff --git a/interface/FacilityInterface.h b/interface/FacilityInterface.h index 1ced0a28..798a9a34 100644 --- a/interface/FacilityInterface.h +++ b/interface/FacilityInterface.h @@ -1,8 +1,7 @@ /** \file FacilityInterface.h \brief Define the class of the facility engine \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef FACILITY_INTERFACE_H #define FACILITY_INTERFACE_H diff --git a/interface/OptionInterface.h b/interface/OptionInterface.h index 2be66cb6..09411e11 100644 --- a/interface/OptionInterface.h +++ b/interface/OptionInterface.h @@ -1,8 +1,7 @@ /** \file OptionInterface.h \brief Define the class of the option engine \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef OPTION_INTERFACE_H #define OPTION_INTERFACE_H diff --git a/interface/PluginInterface_CopyEngine.h b/interface/PluginInterface_CopyEngine.h index 30c39638..c086878e 100644 --- a/interface/PluginInterface_CopyEngine.h +++ b/interface/PluginInterface_CopyEngine.h @@ -1,8 +1,7 @@ /** \file PluginInterface_CopyEngine.h \brief Define the interface of the plugin of type: copy engine \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef PLUGININTERFACE_COPYENGINE_H #define PLUGININTERFACE_COPYENGINE_H diff --git a/interface/PluginInterface_Listener.h b/interface/PluginInterface_Listener.h index 720ab05e..b6ba3d78 100644 --- a/interface/PluginInterface_Listener.h +++ b/interface/PluginInterface_Listener.h @@ -1,8 +1,7 @@ /** \file PluginInterface_Listener.h \brief Define the interface of the plugin of type: listener \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef PLUGININTERFACE_LISTENER_H #define PLUGININTERFACE_LISTENER_H diff --git a/interface/PluginInterface_PluginLoader.h b/interface/PluginInterface_PluginLoader.h index c3c67cc5..9e226f36 100644 --- a/interface/PluginInterface_PluginLoader.h +++ b/interface/PluginInterface_PluginLoader.h @@ -1,8 +1,7 @@ /** \file PluginInterface_PluginLoader.h \brief Define the interface of the plugin of type: plugin loader \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef PLUGININTERFACE_PLUGINLOADER_H #define PLUGININTERFACE_PLUGINLOADER_H diff --git a/interface/PluginInterface_SessionLoader.h b/interface/PluginInterface_SessionLoader.h index eef5524b..71f99903 100644 --- a/interface/PluginInterface_SessionLoader.h +++ b/interface/PluginInterface_SessionLoader.h @@ -1,8 +1,7 @@ /** \file PluginInterface_SessionLoader.h \brief Define the interface of the plugin of type: session loader \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef PLUGININTERFACE_SESSIONLOADER_H #define PLUGININTERFACE_SESSIONLOADER_H diff --git a/interface/PluginInterface_Themes.h b/interface/PluginInterface_Themes.h index 6a1876d1..ec272c1b 100644 --- a/interface/PluginInterface_Themes.h +++ b/interface/PluginInterface_Themes.h @@ -1,8 +1,7 @@ /** \file PluginInterface_Themes.h \brief Define the interface of the plugin of type: copy engine \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef PLUGININTERFACE_THEMES_H #define PLUGININTERFACE_THEMES_H diff --git a/lib/qt-tar-xz/QTarDecode.h b/lib/qt-tar-xz/QTarDecode.h index 6e8e5e54..6d0dcb27 100644 --- a/lib/qt-tar-xz/QTarDecode.h +++ b/lib/qt-tar-xz/QTarDecode.h @@ -1,8 +1,6 @@ /** \file QTarDecode.h \brief To read a tar data block \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef QTARDECODE_H diff --git a/lib/qt-tar-xz/QXzDecode.h b/lib/qt-tar-xz/QXzDecode.h index 9a654f08..85cb04e7 100644 --- a/lib/qt-tar-xz/QXzDecode.h +++ b/lib/qt-tar-xz/QXzDecode.h @@ -1,8 +1,6 @@ /** \file QXzDecode.h \brief To decompress a xz stream \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef QXZDECODE_H diff --git a/lib/qt-tar-xz/QXzDecodeThread.h b/lib/qt-tar-xz/QXzDecodeThread.h index 6fedc220..1b69e4a6 100644 --- a/lib/qt-tar-xz/QXzDecodeThread.h +++ b/lib/qt-tar-xz/QXzDecodeThread.h @@ -1,8 +1,6 @@ /** \file QXzDecodeThread.h \brief To have thread to decode the data \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef QXZDECODETHREAD_H diff --git a/plugins-alternative/Themes/Clean/Languages/ar/translation.qm b/plugins-alternative/Themes/Clean/Languages/ar/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/ar/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/de/translation.qm b/plugins-alternative/Themes/Clean/Languages/de/translation.qm new file mode 100644 index 00000000..2a20d447 Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/de/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/el/translation.qm b/plugins-alternative/Themes/Clean/Languages/el/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/el/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/es/translation.qm b/plugins-alternative/Themes/Clean/Languages/es/translation.qm new file mode 100644 index 00000000..4ca74df3 Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/es/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/fr/translation.qm b/plugins-alternative/Themes/Clean/Languages/fr/translation.qm new file mode 100644 index 00000000..c1fa285c Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/fr/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/hi/translation.qm b/plugins-alternative/Themes/Clean/Languages/hi/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/hi/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/id/translation.qm b/plugins-alternative/Themes/Clean/Languages/id/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/id/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/it/translation.qm b/plugins-alternative/Themes/Clean/Languages/it/translation.qm new file mode 100644 index 00000000..3fb85de6 Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/it/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/ja/translation.qm b/plugins-alternative/Themes/Clean/Languages/ja/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/ja/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/nl/translation.qm b/plugins-alternative/Themes/Clean/Languages/nl/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/nl/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/no/translation.qm b/plugins-alternative/Themes/Clean/Languages/no/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/no/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/pl/translation.qm b/plugins-alternative/Themes/Clean/Languages/pl/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/pl/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/ru/translation.qm b/plugins-alternative/Themes/Clean/Languages/ru/translation.qm new file mode 100644 index 00000000..839c03c9 Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/ru/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/th/translation.qm b/plugins-alternative/Themes/Clean/Languages/th/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/th/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/tr/translation.qm b/plugins-alternative/Themes/Clean/Languages/tr/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/tr/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/Languages/zh/translation.qm b/plugins-alternative/Themes/Clean/Languages/zh/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Clean/Languages/zh/translation.qm differ diff --git a/plugins-alternative/Themes/Clean/factory.cpp b/plugins-alternative/Themes/Clean/factory.cpp index d261c136..de99db29 100644 --- a/plugins-alternative/Themes/Clean/factory.cpp +++ b/plugins-alternative/Themes/Clean/factory.cpp @@ -4,8 +4,6 @@ \version 0.3 \date 2010 */ -#include - #include "factory.h" PluginInterface_Themes * Factory::getInstance() diff --git a/plugins-alternative/Themes/Clean/factory.h b/plugins-alternative/Themes/Clean/factory.h index 0641cf04..79443ee9 100644 --- a/plugins-alternative/Themes/Clean/factory.h +++ b/plugins-alternative/Themes/Clean/factory.h @@ -1,8 +1,7 @@ /** \file factory.h \brief Define the factory, to create instance of the interface \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef FACTORY_H #define FACTORY_H diff --git a/plugins-alternative/Themes/Clean/interface.cpp b/plugins-alternative/Themes/Clean/interface.cpp index ba47c11b..fbaac29b 100644 --- a/plugins-alternative/Themes/Clean/interface.cpp +++ b/plugins-alternative/Themes/Clean/interface.cpp @@ -1,10 +1,7 @@ /** \file interface.cpp \brief Define the interface core \author alpha_one_x86 -\version 0.3 -\date 2010 */ - -#include +*/ #include "interface.h" #include "ui_interface.h" diff --git a/plugins-alternative/Themes/Clean/interface.h b/plugins-alternative/Themes/Clean/interface.h index b7ab57fd..a30716ae 100644 --- a/plugins-alternative/Themes/Clean/interface.h +++ b/plugins-alternative/Themes/Clean/interface.h @@ -1,8 +1,7 @@ /** \file interface.h \brief Define the interface \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef INTERFACE_TEST_H #define INTERFACE_TEST_H diff --git a/plugins-alternative/Themes/Teracopy/DebugEngineMacro.h b/plugins-alternative/Themes/Teracopy/DebugEngineMacro.h index a3dd6484..3cb0aaef 100644 --- a/plugins-alternative/Themes/Teracopy/DebugEngineMacro.h +++ b/plugins-alternative/Themes/Teracopy/DebugEngineMacro.h @@ -1,8 +1,7 @@ /** \file DebugEngineMacro.h \brief Define the macro for the debug \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef DEBUGENGINEMACRO_H #define DEBUGENGINEMACRO_H diff --git a/plugins-alternative/Themes/Teracopy/Environment.h b/plugins-alternative/Themes/Teracopy/Environment.h index 94fd1049..265a5a69 100644 --- a/plugins-alternative/Themes/Teracopy/Environment.h +++ b/plugins-alternative/Themes/Teracopy/Environment.h @@ -1,8 +1,7 @@ /** \file Environment.h \brief Define the environment variable and global function \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include "Variable.h" /// \brief The global include diff --git a/plugins-alternative/Themes/Teracopy/Languages/ar/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/ar/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/ar/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/de/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/de/translation.qm new file mode 100644 index 00000000..4eee745d Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/de/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/el/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/el/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/el/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/es/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/es/translation.qm new file mode 100644 index 00000000..6a9d3d74 Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/es/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/fr/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/fr/translation.qm new file mode 100644 index 00000000..074cf5da Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/fr/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/hi/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/hi/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/hi/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/id/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/id/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/id/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/it/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/it/translation.qm new file mode 100644 index 00000000..1680e532 Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/it/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/ja/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/ja/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/ja/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/nl/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/nl/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/nl/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/no/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/no/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/no/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/pl/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/pl/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/pl/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/ru/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/ru/translation.qm new file mode 100644 index 00000000..7033cd29 Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/ru/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/th/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/th/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/th/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/tr/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/tr/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/tr/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Languages/zh/translation.qm b/plugins-alternative/Themes/Teracopy/Languages/zh/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Teracopy/Languages/zh/translation.qm differ diff --git a/plugins-alternative/Themes/Teracopy/Variable.h b/plugins-alternative/Themes/Teracopy/Variable.h index 8179c938..963d0c81 100644 --- a/plugins-alternative/Themes/Teracopy/Variable.h +++ b/plugins-alternative/Themes/Teracopy/Variable.h @@ -1,8 +1,7 @@ /** \file Variable.h \brief Define the environment variable \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef VARIABLE_H #define VARIABLE_H diff --git a/plugins-alternative/Themes/Teracopy/factory.cpp b/plugins-alternative/Themes/Teracopy/factory.cpp index 6d0c20bb..e1b3b727 100644 --- a/plugins-alternative/Themes/Teracopy/factory.cpp +++ b/plugins-alternative/Themes/Teracopy/factory.cpp @@ -4,8 +4,6 @@ \version 0.3 \date 2010 */ -#include - #include "factory.h" PluginInterface_Themes * Factory::getInstance() diff --git a/plugins-alternative/Themes/Teracopy/factory.h b/plugins-alternative/Themes/Teracopy/factory.h index 921c682d..224e8d31 100644 --- a/plugins-alternative/Themes/Teracopy/factory.h +++ b/plugins-alternative/Themes/Teracopy/factory.h @@ -1,8 +1,7 @@ /** \file factory.h \brief Define the factory \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef FACTORY_H #define FACTORY_H diff --git a/plugins-alternative/Themes/Teracopy/interface.cpp b/plugins-alternative/Themes/Teracopy/interface.cpp index a7014dd6..6f65202d 100644 --- a/plugins-alternative/Themes/Teracopy/interface.cpp +++ b/plugins-alternative/Themes/Teracopy/interface.cpp @@ -4,7 +4,6 @@ \version 0.3 \date 2010 */ -#include #include #include "interface.h" diff --git a/plugins-alternative/Themes/Teracopy/interface.h b/plugins-alternative/Themes/Teracopy/interface.h index 899a03b8..c2e880fd 100644 --- a/plugins-alternative/Themes/Teracopy/interface.h +++ b/plugins-alternative/Themes/Teracopy/interface.h @@ -1,8 +1,7 @@ /** \file interface.h \brief Define the interface test \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef INTERFACE_TEST_H #define INTERFACE_TEST_H diff --git a/plugins-alternative/Themes/Windows/DebugEngineMacro.h b/plugins-alternative/Themes/Windows/DebugEngineMacro.h index a3dd6484..3cb0aaef 100644 --- a/plugins-alternative/Themes/Windows/DebugEngineMacro.h +++ b/plugins-alternative/Themes/Windows/DebugEngineMacro.h @@ -1,8 +1,7 @@ /** \file DebugEngineMacro.h \brief Define the macro for the debug \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef DEBUGENGINEMACRO_H #define DEBUGENGINEMACRO_H diff --git a/plugins-alternative/Themes/Windows/Environment.h b/plugins-alternative/Themes/Windows/Environment.h index 94fd1049..265a5a69 100644 --- a/plugins-alternative/Themes/Windows/Environment.h +++ b/plugins-alternative/Themes/Windows/Environment.h @@ -1,8 +1,7 @@ /** \file Environment.h \brief Define the environment variable and global function \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include "Variable.h" /// \brief The global include diff --git a/plugins-alternative/Themes/Windows/Languages/ar/translation.qm b/plugins-alternative/Themes/Windows/Languages/ar/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/ar/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/ar/translation.ts b/plugins-alternative/Themes/Windows/Languages/ar/translation.ts index 81df74ea..707ec91a 100644 --- a/plugins-alternative/Themes/Windows/Languages/ar/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/ar/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting interface - - Action: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information - - In wait + + Cancel - + Add file - + Add folder - + Move file(s) - + Move folder - + Copy file(s) - + Copy folder diff --git a/plugins-alternative/Themes/Windows/Languages/de/translation.qm b/plugins-alternative/Themes/Windows/Languages/de/translation.qm new file mode 100644 index 00000000..d9a3ffd5 Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/de/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/de/translation.ts b/plugins-alternative/Themes/Windows/Languages/de/translation.ts index 7ea19725..d3c461f4 100644 --- a/plugins-alternative/Themes/Windows/Languages/de/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/de/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 - %1/%2 dateien, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting + interface - - Action: - Aktion: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information + - - In wait - auf der Lauer + + Cancel + - + Add file Datei hinzufügen - + Add folder Ordner hinzufügen - + Move file(s) Bewegen Sie Datei (en) - + Move folder bewegen Sie Ordner - + Copy file(s) Kopieren Sie die Datei (en) - + Copy folder kopieren Sie das Verzeichnis diff --git a/plugins-alternative/Themes/Windows/Languages/el/translation.qm b/plugins-alternative/Themes/Windows/Languages/el/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/el/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/el/translation.ts b/plugins-alternative/Themes/Windows/Languages/el/translation.ts index 81df74ea..707ec91a 100644 --- a/plugins-alternative/Themes/Windows/Languages/el/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/el/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting interface - - Action: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information - - In wait + + Cancel - + Add file - + Add folder - + Move file(s) - + Move folder - + Copy file(s) - + Copy folder diff --git a/plugins-alternative/Themes/Windows/Languages/es/translation.qm b/plugins-alternative/Themes/Windows/Languages/es/translation.qm new file mode 100644 index 00000000..91613bfe Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/es/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/es/translation.ts b/plugins-alternative/Themes/Windows/Languages/es/translation.ts index e05a4a6f..e396dff2 100644 --- a/plugins-alternative/Themes/Windows/Languages/es/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/es/translation.ts @@ -4,52 +4,48 @@ InterfacePlugin - - Unknow remaining time - Tiempo restante desconocido - - - + + Unknown remaining time - + Transferring %1 items (%2) - + Transferring %1 item (%2) - + Copying %1 items (%2) Copia de %1 items (%2) - + Copying %1 item (%2) Copia de %1 item (%2) - + Moving %1 items (%2) Movimiento de %1 items (%2) - + Moving %1 item (%2) Movimiento de %1 item (%2) - + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 desde <b>%1</b> (%2) hasta <b>%3</b> (%4)<br />%5 - + In waiting En espera @@ -62,67 +58,67 @@ Nombre: - + From: Desde: - + To: Hasta: - + Time remaining: Tiempo restante: - + Items remaining: Items restantes: - + Speed: Velocidad: - + More information Más información - + Cancel Cancelar - + Add file Añadir archivo - + Add folder Añadir carpeta - + Move file(s) Mover archivo(s) - + Move folder Mueva la carpeta - + Copy file(s) Copia el archivo(s) - + Copy folder Copia la carpeta diff --git a/plugins-alternative/Themes/Windows/Languages/fr/translation.qm b/plugins-alternative/Themes/Windows/Languages/fr/translation.qm new file mode 100644 index 00000000..acdb5b79 Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/fr/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/fr/translation.ts b/plugins-alternative/Themes/Windows/Languages/fr/translation.ts index 01b870c4..e2bbcd62 100644 --- a/plugins-alternative/Themes/Windows/Languages/fr/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/fr/translation.ts @@ -4,52 +4,48 @@ InterfacePlugin - - Unknow remaining time - Temps restant inconnu - - - + + Unknown remaining time Temps restant inconnu - + Transferring %1 items (%2) Transfert de %1 items (%2) - + Transferring %1 item (%2) Transfert de %1 item (%2) - + Copying %1 items (%2) Copie de %1 éléments (%2) - + Copying %1 item (%2) Copie de %1 élément (%2) - + Moving %1 items (%2) Déplacement de %1 éléments (%2) - + Moving %1 item (%2) Déplacement de %1 élément (%2) - + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 depuis <b>%1</b> (%2) vers <b>%3</b> (%4)<br />%5 - + In waiting En attente @@ -57,27 +53,27 @@ interface - + Move file(s) Déplacer des fichiers - + Move folder Déplacer un dossier - + Copy file(s) Copier des fichiers - + Copy folder Copier un dossier - + Add folder Ajouter un dossier @@ -87,42 +83,42 @@ Nom: - + From: Depuis: - + To: Vers: - + Time remaining: Temps restant: - + Items remaining: Items restants: - + Speed: Vitesse: - + More information Plus d'information - + Cancel Annuler - + Add file Ajout de fichier diff --git a/plugins-alternative/Themes/Windows/Languages/hi/translation.qm b/plugins-alternative/Themes/Windows/Languages/hi/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/hi/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/hi/translation.ts b/plugins-alternative/Themes/Windows/Languages/hi/translation.ts index 81df74ea..707ec91a 100644 --- a/plugins-alternative/Themes/Windows/Languages/hi/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/hi/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting interface - - Action: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information - - In wait + + Cancel - + Add file - + Add folder - + Move file(s) - + Move folder - + Copy file(s) - + Copy folder diff --git a/plugins-alternative/Themes/Windows/Languages/id/translation.qm b/plugins-alternative/Themes/Windows/Languages/id/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/id/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/id/translation.ts b/plugins-alternative/Themes/Windows/Languages/id/translation.ts index 81df74ea..707ec91a 100644 --- a/plugins-alternative/Themes/Windows/Languages/id/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/id/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting interface - - Action: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information - - In wait + + Cancel - + Add file - + Add folder - + Move file(s) - + Move folder - + Copy file(s) - + Copy folder diff --git a/plugins-alternative/Themes/Windows/Languages/it/translation.qm b/plugins-alternative/Themes/Windows/Languages/it/translation.qm new file mode 100644 index 00000000..4d80ba21 Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/it/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/it/translation.ts b/plugins-alternative/Themes/Windows/Languages/it/translation.ts index b44bd5f8..a454e4f8 100644 --- a/plugins-alternative/Themes/Windows/Languages/it/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/it/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 - + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting + interface - - Action: - Azione: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information + - - In wait - In attesa + + Cancel + - + Add file Aggiungi file - + Add folder Aggiungi cartella - + Move file(s) Spostare file(s) - + Move folder Spostare la cartella - + Copy file(s) Copiare il file (s) - + Copy folder Copia la cartella diff --git a/plugins-alternative/Themes/Windows/Languages/ja/translation.qm b/plugins-alternative/Themes/Windows/Languages/ja/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/ja/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/ja/translation.ts b/plugins-alternative/Themes/Windows/Languages/ja/translation.ts index 81df74ea..707ec91a 100644 --- a/plugins-alternative/Themes/Windows/Languages/ja/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/ja/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting interface - - Action: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information - - In wait + + Cancel - + Add file - + Add folder - + Move file(s) - + Move folder - + Copy file(s) - + Copy folder diff --git a/plugins-alternative/Themes/Windows/Languages/ko/translation.ts b/plugins-alternative/Themes/Windows/Languages/ko/translation.ts index 41627dea..8e69313e 100644 --- a/plugins-alternative/Themes/Windows/Languages/ko/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/ko/translation.ts @@ -4,25 +4,96 @@ InterfacePlugin - - %1/%2 files, %3/%4 - %1/%2 파일, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting + interface - - Action: - 실행: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information + - - In wait - 대기중 + + Cancel + - + Add file 파일 추가 diff --git a/plugins-alternative/Themes/Windows/Languages/nl/translation.qm b/plugins-alternative/Themes/Windows/Languages/nl/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/nl/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/nl/translation.ts b/plugins-alternative/Themes/Windows/Languages/nl/translation.ts index 81df74ea..707ec91a 100644 --- a/plugins-alternative/Themes/Windows/Languages/nl/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/nl/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting interface - - Action: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information - - In wait + + Cancel - + Add file - + Add folder - + Move file(s) - + Move folder - + Copy file(s) - + Copy folder diff --git a/plugins-alternative/Themes/Windows/Languages/no/translation.qm b/plugins-alternative/Themes/Windows/Languages/no/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/no/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/no/translation.ts b/plugins-alternative/Themes/Windows/Languages/no/translation.ts index 81df74ea..707ec91a 100644 --- a/plugins-alternative/Themes/Windows/Languages/no/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/no/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting interface - - Action: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information - - In wait + + Cancel - + Add file - + Add folder - + Move file(s) - + Move folder - + Copy file(s) - + Copy folder diff --git a/plugins-alternative/Themes/Windows/Languages/pl/translation.qm b/plugins-alternative/Themes/Windows/Languages/pl/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/pl/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/pl/translation.ts b/plugins-alternative/Themes/Windows/Languages/pl/translation.ts index 81df74ea..707ec91a 100644 --- a/plugins-alternative/Themes/Windows/Languages/pl/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/pl/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting interface - - Action: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information - - In wait + + Cancel - + Add file - + Add folder - + Move file(s) - + Move folder - + Copy file(s) - + Copy folder diff --git a/plugins-alternative/Themes/Windows/Languages/ru/translation.qm b/plugins-alternative/Themes/Windows/Languages/ru/translation.qm new file mode 100644 index 00000000..16876b9f Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/ru/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/ru/translation.ts b/plugins-alternative/Themes/Windows/Languages/ru/translation.ts index 5f83874a..70390a1b 100644 --- a/plugins-alternative/Themes/Windows/Languages/ru/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/ru/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 - %1/%2 файлы, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting + interface - - Action: - Действие: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information + - - In wait - В ожидании + + Cancel + - + Add file Добавить файл - + Add folder Добавить папку - + Move file(s) Перемещение файла (ов) - + Move folder Перемещение папки - + Copy file(s) Копировать файл (ы) - + Copy folder Копировать папку diff --git a/plugins-alternative/Themes/Windows/Languages/th/translation.qm b/plugins-alternative/Themes/Windows/Languages/th/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/th/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/th/translation.ts b/plugins-alternative/Themes/Windows/Languages/th/translation.ts index 81df74ea..707ec91a 100644 --- a/plugins-alternative/Themes/Windows/Languages/th/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/th/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting interface - - Action: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information - - In wait + + Cancel - + Add file - + Add folder - + Move file(s) - + Move folder - + Copy file(s) - + Copy folder diff --git a/plugins-alternative/Themes/Windows/Languages/tr/translation.qm b/plugins-alternative/Themes/Windows/Languages/tr/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/tr/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/tr/translation.ts b/plugins-alternative/Themes/Windows/Languages/tr/translation.ts index 81df74ea..707ec91a 100644 --- a/plugins-alternative/Themes/Windows/Languages/tr/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/tr/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting interface - - Action: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information - - In wait + + Cancel - + Add file - + Add folder - + Move file(s) - + Move folder - + Copy file(s) - + Copy folder diff --git a/plugins-alternative/Themes/Windows/Languages/zh/translation.qm b/plugins-alternative/Themes/Windows/Languages/zh/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins-alternative/Themes/Windows/Languages/zh/translation.qm differ diff --git a/plugins-alternative/Themes/Windows/Languages/zh/translation.ts b/plugins-alternative/Themes/Windows/Languages/zh/translation.ts index 81df74ea..707ec91a 100644 --- a/plugins-alternative/Themes/Windows/Languages/zh/translation.ts +++ b/plugins-alternative/Themes/Windows/Languages/zh/translation.ts @@ -4,50 +4,121 @@ InterfacePlugin - - %1/%2 files, %3/%4 + + + Unknown remaining time + + + + + Transferring %1 items (%2) + + + + + Transferring %1 item (%2) + + + + + Copying %1 items (%2) + + + + + Copying %1 item (%2) + + + + + Moving %1 items (%2) + + + + + Moving %1 item (%2) + + + + + from <b>%1</b> (%2) to <b>%3</b> (%4)<br />%5 + + + + + In waiting interface - - Action: + + Name: + + + + + From: + + + + + To: + + + + + Time remaining: + + + + + Items remaining: + + + + + Speed: + + + + + More information - - In wait + + Cancel - + Add file - + Add folder - + Move file(s) - + Move folder - + Copy file(s) - + Copy folder diff --git a/plugins-alternative/Themes/Windows/Variable.h b/plugins-alternative/Themes/Windows/Variable.h index 8179c938..963d0c81 100644 --- a/plugins-alternative/Themes/Windows/Variable.h +++ b/plugins-alternative/Themes/Windows/Variable.h @@ -1,8 +1,7 @@ /** \file Variable.h \brief Define the environment variable \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef VARIABLE_H #define VARIABLE_H diff --git a/plugins-alternative/Themes/Windows/factory.cpp b/plugins-alternative/Themes/Windows/factory.cpp index 1894cdbc..11e3d3aa 100644 --- a/plugins-alternative/Themes/Windows/factory.cpp +++ b/plugins-alternative/Themes/Windows/factory.cpp @@ -4,8 +4,6 @@ \version 0.3 \date 2010 */ -#include - #include "factory.h" QRegularExpression Factory::slashEnd; diff --git a/plugins-alternative/Themes/Windows/factory.h b/plugins-alternative/Themes/Windows/factory.h index 559550d7..3e974d4f 100644 --- a/plugins-alternative/Themes/Windows/factory.h +++ b/plugins-alternative/Themes/Windows/factory.h @@ -1,8 +1,7 @@ /** \file factory.h \brief Define the factory, to create instance of the interface \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef FACTORY_H #define FACTORY_H diff --git a/plugins-alternative/Themes/Windows/interface.cpp b/plugins-alternative/Themes/Windows/interface.cpp index 437d5390..c4abf390 100644 --- a/plugins-alternative/Themes/Windows/interface.cpp +++ b/plugins-alternative/Themes/Windows/interface.cpp @@ -4,8 +4,6 @@ \version 0.3 \date 2010 */ -#include - #include "interface.h" #include "factory.h" #include "ui_interface.h" diff --git a/plugins-alternative/Themes/Windows/interface.h b/plugins-alternative/Themes/Windows/interface.h index 724c5b62..6df4638a 100644 --- a/plugins-alternative/Themes/Windows/interface.h +++ b/plugins-alternative/Themes/Windows/interface.h @@ -1,8 +1,7 @@ /** \file interface.h \brief Define the interface \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef INTERFACE_TEST_H #define INTERFACE_TEST_H diff --git a/plugins/CopyEngine/Ultracopier/AvancedQFile.h b/plugins/CopyEngine/Ultracopier/AvancedQFile.h index 284cf02c..ca25b63e 100644 --- a/plugins/CopyEngine/Ultracopier/AvancedQFile.h +++ b/plugins/CopyEngine/Ultracopier/AvancedQFile.h @@ -1,8 +1,7 @@ /** \file AvancedQFile.h \brief Define the QFile herited class to set file date/time \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef AVANCEDQFILE_H #define AVANCEDQFILE_H diff --git a/plugins/CopyEngine/Ultracopier/DebugEngineMacro.h b/plugins/CopyEngine/Ultracopier/DebugEngineMacro.h index ad08d4fa..076e8ff0 100644 --- a/plugins/CopyEngine/Ultracopier/DebugEngineMacro.h +++ b/plugins/CopyEngine/Ultracopier/DebugEngineMacro.h @@ -1,8 +1,7 @@ /** \file DebugEngineMacro.h \brief Define the macro for the debug \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef DEBUGENGINEMACRO_H #define DEBUGENGINEMACRO_H diff --git a/plugins/CopyEngine/Ultracopier/Environment.h b/plugins/CopyEngine/Ultracopier/Environment.h index 7ac6f16e..34db2a22 100644 --- a/plugins/CopyEngine/Ultracopier/Environment.h +++ b/plugins/CopyEngine/Ultracopier/Environment.h @@ -1,8 +1,7 @@ /** \file Environment.h \brief Define the environment variable and global function \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include "Variable.h" /// \brief The global include diff --git a/plugins/CopyEngine/Ultracopier/Languages/ar/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/ar/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/ar/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/de/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/de/translation.qm new file mode 100644 index 00000000..8d111b54 Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/de/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/el/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/el/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/el/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/es/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/es/translation.qm new file mode 100644 index 00000000..ef62ae4c Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/es/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/fr/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/fr/translation.qm new file mode 100644 index 00000000..b46e1b30 Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/fr/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/fr/translation.ts b/plugins/CopyEngine/Ultracopier/Languages/fr/translation.ts index 56e23734..4f5c087c 100644 --- a/plugins/CopyEngine/Ultracopier/Languages/fr/translation.ts +++ b/plugins/CopyEngine/Ultracopier/Languages/fr/translation.ts @@ -723,7 +723,7 @@ Auto start the transfer - Démmarer automatiquement le transfert + Démarrer automatiquement le transfert diff --git a/plugins/CopyEngine/Ultracopier/Languages/hi/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/hi/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/hi/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/id/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/id/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/id/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/it/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/it/translation.qm new file mode 100644 index 00000000..d598ccfe Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/it/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/ja/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/ja/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/ja/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/ko/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/ko/translation.qm new file mode 100644 index 00000000..1a6efeb1 Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/ko/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/nl/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/nl/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/nl/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/no/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/no/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/no/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/pl/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/pl/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/pl/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/pt/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/pt/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/pt/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/ru/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/ru/translation.qm new file mode 100644 index 00000000..45732440 Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/ru/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/th/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/th/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/th/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/tr/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/tr/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/tr/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/Languages/zh/translation.qm b/plugins/CopyEngine/Ultracopier/Languages/zh/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/CopyEngine/Ultracopier/Languages/zh/translation.qm differ diff --git a/plugins/CopyEngine/Ultracopier/ListThread.h b/plugins/CopyEngine/Ultracopier/ListThread.h index 899178cb..240444ed 100755 --- a/plugins/CopyEngine/Ultracopier/ListThread.h +++ b/plugins/CopyEngine/Ultracopier/ListThread.h @@ -1,8 +1,7 @@ /** \file ListThread.h \brief Define the list thread, and management to the action to do \author alpha_one_x86 -\version 0.3 -\date 2011 */ +\licence GPL3, see the file COPYING */ #ifndef LISTTHREAD_H #define LISTTHREAD_H diff --git a/plugins/CopyEngine/Ultracopier/MkPath.h b/plugins/CopyEngine/Ultracopier/MkPath.h index 5d00d600..5b422ea9 100644 --- a/plugins/CopyEngine/Ultracopier/MkPath.h +++ b/plugins/CopyEngine/Ultracopier/MkPath.h @@ -1,8 +1,7 @@ /** \file MkPath.h \brief Make the path given as queued mkpath \author alpha_one_x86 -\version 0.3 -\date 2011 */ +\licence GPL3, see the file COPYING */ #ifndef MKPATH_H #define MKPATH_H diff --git a/plugins/CopyEngine/Ultracopier/ReadThread.h b/plugins/CopyEngine/Ultracopier/ReadThread.h index 5037049c..836ed79f 100644 --- a/plugins/CopyEngine/Ultracopier/ReadThread.h +++ b/plugins/CopyEngine/Ultracopier/ReadThread.h @@ -1,8 +1,7 @@ /** \file ReadThread.h \brief Thread changed to open/close and read the source file \author alpha_one_x86 -\version 0.3 -\date 2011 */ +\licence GPL3, see the file COPYING */ #ifndef READTHREAD_H #define READTHREAD_H diff --git a/plugins/CopyEngine/Ultracopier/RmPath.h b/plugins/CopyEngine/Ultracopier/RmPath.h index 5eca5e1f..dafdc939 100644 --- a/plugins/CopyEngine/Ultracopier/RmPath.h +++ b/plugins/CopyEngine/Ultracopier/RmPath.h @@ -1,8 +1,7 @@ /** \file RmPath.h \brief Remove the path given as queued rmpath \author alpha_one_x86 -\version 0.3 -\date 2011 */ +\licence GPL3, see the file COPYING */ #ifndef RMPATH_H #define RMPATH_H diff --git a/plugins/CopyEngine/Ultracopier/StructEnumDefinition_CopyEngine.h b/plugins/CopyEngine/Ultracopier/StructEnumDefinition_CopyEngine.h index e5384db2..4f024b3b 100644 --- a/plugins/CopyEngine/Ultracopier/StructEnumDefinition_CopyEngine.h +++ b/plugins/CopyEngine/Ultracopier/StructEnumDefinition_CopyEngine.h @@ -1,8 +1,7 @@ /** \file StructEnumDefinition_CopyEngine.h \brief Define the structure and enumeration used in the copy engine \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include #include diff --git a/plugins/CopyEngine/Ultracopier/TransferThread.h b/plugins/CopyEngine/Ultracopier/TransferThread.h index c32ccf3b..def54d89 100644 --- a/plugins/CopyEngine/Ultracopier/TransferThread.h +++ b/plugins/CopyEngine/Ultracopier/TransferThread.h @@ -1,8 +1,7 @@ /** \file TransferThread.h \brief Thread changed to manage the inode operation, the signals, canceling, pre and post operations \author alpha_one_x86 -\version 0.3 -\date 2011 */ +\licence GPL3, see the file COPYING */ #ifndef TRANSFERTHREAD_H #define TRANSFERTHREAD_H diff --git a/plugins/CopyEngine/Ultracopier/Variable.h b/plugins/CopyEngine/Ultracopier/Variable.h index f39b8a64..23c226cb 100644 --- a/plugins/CopyEngine/Ultracopier/Variable.h +++ b/plugins/CopyEngine/Ultracopier/Variable.h @@ -1,8 +1,7 @@ /** \file Variable.h \brief Define the environment variable \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef VARIABLE_H #define VARIABLE_H diff --git a/plugins/CopyEngine/Ultracopier/WriteThread.h b/plugins/CopyEngine/Ultracopier/WriteThread.h index 4b824e2d..782636f9 100644 --- a/plugins/CopyEngine/Ultracopier/WriteThread.h +++ b/plugins/CopyEngine/Ultracopier/WriteThread.h @@ -1,8 +1,7 @@ /** \file WriteThread.h \brief Thread changed to open/close and write the destination file \author alpha_one_x86 -\version 0.3 -\date 2011 */ +\licence GPL3, see the file COPYING */ #ifndef WRITETHREAD_H #define WRITETHREAD_H diff --git a/plugins/CopyEngine/Ultracopier/copyEngine-collision-and-error.cpp b/plugins/CopyEngine/Ultracopier/copyEngine-collision-and-error.cpp index 7711b39c..0a5a2ab6 100644 --- a/plugins/CopyEngine/Ultracopier/copyEngine-collision-and-error.cpp +++ b/plugins/CopyEngine/Ultracopier/copyEngine-collision-and-error.cpp @@ -4,7 +4,6 @@ \version 0.3 \date 2010 */ -#include #include #include @@ -15,405 +14,405 @@ /// \note Can be call without queue because all call will be serialized void copyEngine::fileAlreadyExistsSlot(QFileInfo source,QFileInfo destination,bool isSame,TransferThread * thread) { - fileAlreadyExistsSlot(source,destination,isSame,thread); + fileAlreadyExists(source,destination,isSame,thread); } /// \note Can be call without queue because all call will be serialized void copyEngine::errorOnFileSlot(QFileInfo fileInfo,QString errorString,TransferThread * thread) { - errorOnFileSlot(fileInfo,errorString,thread); + errorOnFile(fileInfo,errorString,thread); } /// \note Can be call without queue because all call will be serialized void copyEngine::folderAlreadyExistsSlot(QFileInfo source,QFileInfo destination,bool isSame,scanFileOrFolder * thread) { - folderAlreadyExistsSlot(source,destination,isSame,thread); + folderAlreadyExists(source,destination,isSame,thread); } /// \note Can be call without queue because all call will be serialized void copyEngine::errorOnFolderSlot(QFileInfo fileInfo,QString errorString,scanFileOrFolder * thread) { - errorOnFolderSlot(fileInfo,errorString,thread); + errorOnFolder(fileInfo,errorString,thread); } //mkpath event void copyEngine::mkPathErrorOnFolderSlot(QFileInfo folder,QString error) { - mkPathErrorOnFolderSlot(folder,error); + mkPathErrorOnFolder(folder,error); } //rmpath event void copyEngine::rmPathErrorOnFolderSlot(QFileInfo folder,QString error) { - rmPathErrorOnFolderSlot(folder,error); + rmPathErrorOnFolder(folder,error); } /// \note Can be call without queue because all call will be serialized void copyEngine::fileAlreadyExists(QFileInfo source,QFileInfo destination,bool isSame,TransferThread * thread,bool isCalledByShowOneNewDialog) { - if(stopIt) - return; - if(thread==NULL) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to locate the thread"); - return; - } - //load the action - if(isSame) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"file is same: "+source.absoluteFilePath()); - tempFileExistsAction=alwaysDoThisActionForFileExists; - if(tempFileExistsAction==FileExists_Overwrite || tempFileExistsAction==FileExists_OverwriteIfNewer || tempFileExistsAction==FileExists_OverwriteIfNotSameModificationDate) - tempFileExistsAction=FileExists_NotSet; - switch(tempFileExistsAction) - { - case FileExists_Skip: - case FileExists_Rename: - thread->setFileExistsAction(tempFileExistsAction); - break; - default: - if(dialogIsOpen) - { - alreadyExistsQueueItem newItem; - newItem.source=source; - newItem.destination=destination; - newItem.isSame=isSame; - newItem.transfer=thread; - newItem.scan=NULL; - alreadyExistsQueue << newItem; - return; - } - dialogIsOpen=true; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); - fileIsSameDialog dialog(interface,source,firstRenamingRule,otherRenamingRule); - emit isInPause(true); - dialog.exec();/// \bug crash when external close - FileExistsAction newAction=dialog.getAction(); - emit isInPause(false); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); - if(newAction==FileExists_Cancel) - { - emit cancelAll(); - return; - } - if(dialog.getAlways() && newAction!=alwaysDoThisActionForFileExists) - { - alwaysDoThisActionForFileExists=newAction; - listThread->setAlwaysFileExistsAction(alwaysDoThisActionForFileExists); - switch(newAction) - { - default: - case FileExists_Skip: - emit newCollisionAction("skip"); - break; - case FileExists_Rename: - emit newCollisionAction("rename"); - break; - } - } - if(dialog.getAlways() || newAction!=FileExists_Rename) - thread->setFileExistsAction(newAction); - else - thread->setFileRename(dialog.getNewName()); - dialogIsOpen=false; - if(!isCalledByShowOneNewDialog) - emit queryOneNewDialog(); - return; - break; - } - } - else - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"file already exists: "+source.absoluteFilePath()+", destination: "+destination.absoluteFilePath()); - tempFileExistsAction=alwaysDoThisActionForFileExists; - switch(tempFileExistsAction) - { - case FileExists_Skip: - case FileExists_Rename: - case FileExists_Overwrite: - case FileExists_OverwriteIfNewer: - case FileExists_OverwriteIfNotSameModificationDate: - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"always do this action: "+QString::number(tempFileExistsAction)); - thread->setFileExistsAction(tempFileExistsAction); - break; - default: - if(dialogIsOpen) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("dialog open, put in queue: %1 %2") - .arg(source.absoluteFilePath()) - .arg(destination.absoluteFilePath()) - ); - alreadyExistsQueueItem newItem; - newItem.source=source; - newItem.destination=destination; - newItem.isSame=isSame; - newItem.transfer=thread; - newItem.scan=NULL; - alreadyExistsQueue << newItem; - return; - } - dialogIsOpen=true; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); - fileExistsDialog dialog(interface,source,destination,firstRenamingRule,otherRenamingRule); - emit isInPause(true); - dialog.exec();/// \bug crash when external close - FileExistsAction newAction=dialog.getAction(); - emit isInPause(false); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); - if(newAction==FileExists_Cancel) - { - emit cancelAll(); - return; - } - if(dialog.getAlways() && newAction!=alwaysDoThisActionForFileExists) - { - alwaysDoThisActionForFileExists=newAction; - listThread->setAlwaysFileExistsAction(alwaysDoThisActionForFileExists); - switch(newAction) - { - default: - case FileExists_Skip: - emit newCollisionAction("skip"); - break; - case FileExists_Rename: - emit newCollisionAction("rename"); - break; - case FileExists_Overwrite: - emit newCollisionAction("overwrite"); - break; - case FileExists_OverwriteIfNewer: - emit newCollisionAction("overwriteIfNewer"); - break; - case FileExists_OverwriteIfNotSameModificationDate: - emit newCollisionAction("overwriteIfNotSameModificationDate"); - break; - } - } - if(dialog.getAlways() || newAction!=FileExists_Rename) - thread->setFileExistsAction(newAction); - else - thread->setFileRename(dialog.getNewName()); - dialogIsOpen=false; - if(!isCalledByShowOneNewDialog) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"emit queryOneNewDialog()"); - emit queryOneNewDialog(); - } - return; - break; - } - } - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"stop"); + if(stopIt) + return; + if(thread==NULL) + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to locate the thread"); + return; + } + //load the action + if(isSame) + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"file is same: "+source.absoluteFilePath()); + tempFileExistsAction=alwaysDoThisActionForFileExists; + if(tempFileExistsAction==FileExists_Overwrite || tempFileExistsAction==FileExists_OverwriteIfNewer || tempFileExistsAction==FileExists_OverwriteIfNotSameModificationDate) + tempFileExistsAction=FileExists_NotSet; + switch(tempFileExistsAction) + { + case FileExists_Skip: + case FileExists_Rename: + thread->setFileExistsAction(tempFileExistsAction); + break; + default: + if(dialogIsOpen) + { + alreadyExistsQueueItem newItem; + newItem.source=source; + newItem.destination=destination; + newItem.isSame=isSame; + newItem.transfer=thread; + newItem.scan=NULL; + alreadyExistsQueue << newItem; + return; + } + dialogIsOpen=true; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); + fileIsSameDialog dialog(interface,source,firstRenamingRule,otherRenamingRule); + emit isInPause(true); + dialog.exec();/// \bug crash when external close + FileExistsAction newAction=dialog.getAction(); + emit isInPause(false); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); + if(newAction==FileExists_Cancel) + { + emit cancelAll(); + return; + } + if(dialog.getAlways() && newAction!=alwaysDoThisActionForFileExists) + { + alwaysDoThisActionForFileExists=newAction; + listThread->setAlwaysFileExistsAction(alwaysDoThisActionForFileExists); + switch(newAction) + { + default: + case FileExists_Skip: + emit newCollisionAction("skip"); + break; + case FileExists_Rename: + emit newCollisionAction("rename"); + break; + } + } + if(dialog.getAlways() || newAction!=FileExists_Rename) + thread->setFileExistsAction(newAction); + else + thread->setFileRename(dialog.getNewName()); + dialogIsOpen=false; + if(!isCalledByShowOneNewDialog) + emit queryOneNewDialog(); + return; + break; + } + } + else + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"file already exists: "+source.absoluteFilePath()+", destination: "+destination.absoluteFilePath()); + tempFileExistsAction=alwaysDoThisActionForFileExists; + switch(tempFileExistsAction) + { + case FileExists_Skip: + case FileExists_Rename: + case FileExists_Overwrite: + case FileExists_OverwriteIfNewer: + case FileExists_OverwriteIfNotSameModificationDate: + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"always do this action: "+QString::number(tempFileExistsAction)); + thread->setFileExistsAction(tempFileExistsAction); + break; + default: + if(dialogIsOpen) + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("dialog open, put in queue: %1 %2") + .arg(source.absoluteFilePath()) + .arg(destination.absoluteFilePath()) + ); + alreadyExistsQueueItem newItem; + newItem.source=source; + newItem.destination=destination; + newItem.isSame=isSame; + newItem.transfer=thread; + newItem.scan=NULL; + alreadyExistsQueue << newItem; + return; + } + dialogIsOpen=true; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); + fileExistsDialog dialog(interface,source,destination,firstRenamingRule,otherRenamingRule); + emit isInPause(true); + dialog.exec();/// \bug crash when external close + FileExistsAction newAction=dialog.getAction(); + emit isInPause(false); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); + if(newAction==FileExists_Cancel) + { + emit cancelAll(); + return; + } + if(dialog.getAlways() && newAction!=alwaysDoThisActionForFileExists) + { + alwaysDoThisActionForFileExists=newAction; + listThread->setAlwaysFileExistsAction(alwaysDoThisActionForFileExists); + switch(newAction) + { + default: + case FileExists_Skip: + emit newCollisionAction("skip"); + break; + case FileExists_Rename: + emit newCollisionAction("rename"); + break; + case FileExists_Overwrite: + emit newCollisionAction("overwrite"); + break; + case FileExists_OverwriteIfNewer: + emit newCollisionAction("overwriteIfNewer"); + break; + case FileExists_OverwriteIfNotSameModificationDate: + emit newCollisionAction("overwriteIfNotSameModificationDate"); + break; + } + } + if(dialog.getAlways() || newAction!=FileExists_Rename) + thread->setFileExistsAction(newAction); + else + thread->setFileRename(dialog.getNewName()); + dialogIsOpen=false; + if(!isCalledByShowOneNewDialog) + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"emit queryOneNewDialog()"); + emit queryOneNewDialog(); + } + return; + break; + } + } + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"stop"); } /// \note Can be call without queue because all call will be serialized void copyEngine::errorOnFile(QFileInfo fileInfo,QString errorString,TransferThread * thread,bool isCalledByShowOneNewDialog) { - if(stopIt) - return; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"file have error: "+fileInfo.absoluteFilePath()+", error: "+errorString); - if(thread==NULL) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to locate the thread"); - return; - } - //load the action - tempFileErrorAction=alwaysDoThisActionForFileError; - switch(tempFileErrorAction) - { - case FileError_Skip: - thread->skip(); - return; - case FileError_Retry: - thread->retryAfterError(); - return; - case FileError_PutToEndOfTheList: - /// \todo do the read transfer locator and put at the end - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"todo list item not found"); - return; - default: - if(dialogIsOpen) - { - errorQueueItem newItem; - newItem.errorString=errorString; - newItem.inode=fileInfo; - newItem.mkPath=false; - newItem.rmPath=false; - newItem.scan=NULL; - newItem.transfer=thread; - errorQueue << newItem; - return; - } - dialogIsOpen=true; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); - emit error(fileInfo.absoluteFilePath(),fileInfo.size(),fileInfo.lastModified(),errorString); - fileErrorDialog dialog(interface,fileInfo,errorString); - emit isInPause(true); - dialog.exec();/// \bug crash when external close - FileErrorAction newAction=dialog.getAction(); - emit isInPause(false); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); - if(newAction==FileError_Cancel) - { - emit cancelAll(); - return; - } - if(dialog.getAlways() && newAction!=alwaysDoThisActionForFileError) - { - alwaysDoThisActionForFileError=newAction; - switch(newAction) - { - default: - case FileError_Skip: - emit newErrorAction("skip"); - break; - case FileError_PutToEndOfTheList: - emit newErrorAction("putToEndOfTheList"); - break; - } - } - switch(newAction) - { - case FileError_Skip: - thread->skip(); - break; - case FileError_Retry: - thread->retryAfterError(); - break; - case FileError_PutToEndOfTheList: - thread->putAtBottom(); - /// \todo do the read transfer locator and put at the end + if(stopIt) + return; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"file have error: "+fileInfo.absoluteFilePath()+", error: "+errorString); + if(thread==NULL) + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to locate the thread"); + return; + } + //load the action + tempFileErrorAction=alwaysDoThisActionForFileError; + switch(tempFileErrorAction) + { + case FileError_Skip: + thread->skip(); + return; + case FileError_Retry: + thread->retryAfterError(); + return; + case FileError_PutToEndOfTheList: + /// \todo do the read transfer locator and put at the end + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"todo list item not found"); + return; + default: + if(dialogIsOpen) + { + errorQueueItem newItem; + newItem.errorString=errorString; + newItem.inode=fileInfo; + newItem.mkPath=false; + newItem.rmPath=false; + newItem.scan=NULL; + newItem.transfer=thread; + errorQueue << newItem; + return; + } + dialogIsOpen=true; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); + emit error(fileInfo.absoluteFilePath(),fileInfo.size(),fileInfo.lastModified(),errorString); + fileErrorDialog dialog(interface,fileInfo,errorString); + emit isInPause(true); + dialog.exec();/// \bug crash when external close + FileErrorAction newAction=dialog.getAction(); + emit isInPause(false); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); + if(newAction==FileError_Cancel) + { + emit cancelAll(); + return; + } + if(dialog.getAlways() && newAction!=alwaysDoThisActionForFileError) + { + alwaysDoThisActionForFileError=newAction; + switch(newAction) + { + default: + case FileError_Skip: + emit newErrorAction("skip"); + break; + case FileError_PutToEndOfTheList: + emit newErrorAction("putToEndOfTheList"); + break; + } + } + switch(newAction) + { + case FileError_Skip: + thread->skip(); + break; + case FileError_Retry: + thread->retryAfterError(); + break; + case FileError_PutToEndOfTheList: + thread->putAtBottom(); + /// \todo do the read transfer locator and put at the end ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"todo"); - break; - default: - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"file error action wrong"); - break; - } - dialogIsOpen=false; - if(!isCalledByShowOneNewDialog) - emit queryOneNewDialog(); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"isCalledByShowOneNewDialog==true then not show other dial"); - return; - break; - } - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"stop"); + break; + default: + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"file error action wrong"); + break; + } + dialogIsOpen=false; + if(!isCalledByShowOneNewDialog) + emit queryOneNewDialog(); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"isCalledByShowOneNewDialog==true then not show other dial"); + return; + break; + } + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"stop"); } /// \note Can be call without queue because all call will be serialized void copyEngine::folderAlreadyExists(QFileInfo source,QFileInfo destination,bool isSame,scanFileOrFolder * thread,bool isCalledByShowOneNewDialog) { - if(stopIt) - return; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"folder already exists: "+source.absoluteFilePath()+", destination: "+destination.absoluteFilePath()); - if(thread==NULL) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to locate the thread"); - return; - } - //load the always action - tempFolderExistsAction=alwaysDoThisActionForFolderExists; - switch(tempFolderExistsAction) - { - case FolderExists_Skip: - case FolderExists_Rename: - case FolderExists_Merge: - thread->setFolderExistsAction(tempFolderExistsAction); - break; - default: - if(dialogIsOpen) - { - alreadyExistsQueueItem newItem; - newItem.source=source; - newItem.destination=destination; - newItem.isSame=isSame; - newItem.transfer=NULL; - newItem.scan=thread; - alreadyExistsQueue << newItem; - return; - } - dialogIsOpen=true; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); - folderExistsDialog dialog(interface,source,isSame,destination,firstRenamingRule,otherRenamingRule); - dialog.exec();/// \bug crash when external close - FolderExistsAction newAction=dialog.getAction(); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); - if(newAction==FolderExists_Cancel) - { - emit cancelAll(); - return; - } - if(dialog.getAlways() && newAction!=alwaysDoThisActionForFolderExists) - setComboBoxFolderColision(newAction); - if(!dialog.getAlways() && newAction==FolderExists_Rename) - thread->setFolderExistsAction(newAction,dialog.getNewName()); - else - thread->setFolderExistsAction(newAction); - dialogIsOpen=false; - if(!isCalledByShowOneNewDialog) - emit queryOneNewDialog(); - return; - break; - } + if(stopIt) + return; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"folder already exists: "+source.absoluteFilePath()+", destination: "+destination.absoluteFilePath()); + if(thread==NULL) + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to locate the thread"); + return; + } + //load the always action + tempFolderExistsAction=alwaysDoThisActionForFolderExists; + switch(tempFolderExistsAction) + { + case FolderExists_Skip: + case FolderExists_Rename: + case FolderExists_Merge: + thread->setFolderExistsAction(tempFolderExistsAction); + break; + default: + if(dialogIsOpen) + { + alreadyExistsQueueItem newItem; + newItem.source=source; + newItem.destination=destination; + newItem.isSame=isSame; + newItem.transfer=NULL; + newItem.scan=thread; + alreadyExistsQueue << newItem; + return; + } + dialogIsOpen=true; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); + folderExistsDialog dialog(interface,source,isSame,destination,firstRenamingRule,otherRenamingRule); + dialog.exec();/// \bug crash when external close + FolderExistsAction newAction=dialog.getAction(); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); + if(newAction==FolderExists_Cancel) + { + emit cancelAll(); + return; + } + if(dialog.getAlways() && newAction!=alwaysDoThisActionForFolderExists) + setComboBoxFolderColision(newAction); + if(!dialog.getAlways() && newAction==FolderExists_Rename) + thread->setFolderExistsAction(newAction,dialog.getNewName()); + else + thread->setFolderExistsAction(newAction); + dialogIsOpen=false; + if(!isCalledByShowOneNewDialog) + emit queryOneNewDialog(); + return; + break; + } } /// \note Can be call without queue because all call will be serialized /// \todo all this part void copyEngine::errorOnFolder(QFileInfo fileInfo,QString errorString,scanFileOrFolder * thread,bool isCalledByShowOneNewDialog) { - if(stopIt) - return; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"file have error: "+fileInfo.absoluteFilePath()+", error: "+errorString); - if(thread==NULL) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to locate the thread"); - return; - } - //load the always action - tempFileErrorAction=alwaysDoThisActionForFolderError; - switch(tempFileErrorAction) - { - case FileError_Skip: - case FileError_Retry: - case FileError_PutToEndOfTheList: - thread->setFolderErrorAction(tempFileErrorAction); - break; - default: - if(dialogIsOpen) - { - errorQueueItem newItem; - newItem.errorString=errorString; - newItem.inode=fileInfo; - newItem.mkPath=false; - newItem.rmPath=false; - newItem.scan=thread; - newItem.transfer=NULL; - errorQueue << newItem; - return; - } - dialogIsOpen=true; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); - emit error(fileInfo.absoluteFilePath(),fileInfo.size(),fileInfo.lastModified(),errorString); - fileErrorDialog dialog(interface,fileInfo,errorString); - dialog.exec();/// \bug crash when external close - FileErrorAction newAction=dialog.getAction(); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); - if(newAction==FileError_Cancel) - { - emit cancelAll(); - return; - } - if(dialog.getAlways() && newAction!=alwaysDoThisActionForFileError) - setComboBoxFolderError(newAction); - dialogIsOpen=false; - thread->setFolderErrorAction(newAction); - if(!isCalledByShowOneNewDialog) - emit queryOneNewDialog(); - return; - break; - } - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"stop"); + if(stopIt) + return; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"file have error: "+fileInfo.absoluteFilePath()+", error: "+errorString); + if(thread==NULL) + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to locate the thread"); + return; + } + //load the always action + tempFileErrorAction=alwaysDoThisActionForFolderError; + switch(tempFileErrorAction) + { + case FileError_Skip: + case FileError_Retry: + case FileError_PutToEndOfTheList: + thread->setFolderErrorAction(tempFileErrorAction); + break; + default: + if(dialogIsOpen) + { + errorQueueItem newItem; + newItem.errorString=errorString; + newItem.inode=fileInfo; + newItem.mkPath=false; + newItem.rmPath=false; + newItem.scan=thread; + newItem.transfer=NULL; + errorQueue << newItem; + return; + } + dialogIsOpen=true; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); + emit error(fileInfo.absoluteFilePath(),fileInfo.size(),fileInfo.lastModified(),errorString); + fileErrorDialog dialog(interface,fileInfo,errorString); + dialog.exec();/// \bug crash when external close + FileErrorAction newAction=dialog.getAction(); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); + if(newAction==FileError_Cancel) + { + emit cancelAll(); + return; + } + if(dialog.getAlways() && newAction!=alwaysDoThisActionForFileError) + setComboBoxFolderError(newAction); + dialogIsOpen=false; + thread->setFolderErrorAction(newAction); + if(!isCalledByShowOneNewDialog) + emit queryOneNewDialog(); + return; + break; + } + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"stop"); } // ----------------------------------------------------- @@ -421,183 +420,183 @@ void copyEngine::errorOnFolder(QFileInfo fileInfo,QString errorString,scanFileOr //mkpath event void copyEngine::mkPathErrorOnFolder(QFileInfo folder,QString errorString,bool isCalledByShowOneNewDialog) { - if(stopIt) - return; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"file have error: "+folder.absoluteFilePath()+", error: "+errorString); - //load the always action - tempFileErrorAction=alwaysDoThisActionForFolderError; - error_index=0; - switch(tempFileErrorAction) - { - case FileError_Skip: - listThread->mkPathQueue.skip(); - return; - case FileError_Retry: - listThread->mkPathQueue.retry(); - return; - default: - if(dialogIsOpen) - { - errorQueueItem newItem; - newItem.errorString=errorString; - newItem.inode=folder; - newItem.mkPath=true; - newItem.rmPath=false; - newItem.scan=NULL; - newItem.transfer=NULL; - errorQueue << newItem; - return; - } - dialogIsOpen=true; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); - emit error(folder.absoluteFilePath(),folder.size(),folder.lastModified(),errorString); - fileErrorDialog dialog(interface,folder,errorString,false); - dialog.exec();/// \bug crash when external close - FileErrorAction newAction=dialog.getAction(); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); - if(newAction==FileError_Cancel) - { - emit cancelAll(); - return; - } - if(dialog.getAlways() && newAction!=alwaysDoThisActionForFileError) - { - setComboBoxFolderError(newAction); - alwaysDoThisActionForFolderError=newAction; - } - dialogIsOpen=false; - switch(newAction) - { - case FileError_Skip: - listThread->mkPathQueue.skip(); - break; - case FileError_Retry: - listThread->mkPathQueue.retry(); - break; - default: - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"Unknow switch case: "+QString::number(newAction)); - break; - } - if(!isCalledByShowOneNewDialog) - emit queryOneNewDialog(); - return; - break; - } - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"stop"); + if(stopIt) + return; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"file have error: "+folder.absoluteFilePath()+", error: "+errorString); + //load the always action + tempFileErrorAction=alwaysDoThisActionForFolderError; + error_index=0; + switch(tempFileErrorAction) + { + case FileError_Skip: + listThread->mkPathQueue.skip(); + return; + case FileError_Retry: + listThread->mkPathQueue.retry(); + return; + default: + if(dialogIsOpen) + { + errorQueueItem newItem; + newItem.errorString=errorString; + newItem.inode=folder; + newItem.mkPath=true; + newItem.rmPath=false; + newItem.scan=NULL; + newItem.transfer=NULL; + errorQueue << newItem; + return; + } + dialogIsOpen=true; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); + emit error(folder.absoluteFilePath(),folder.size(),folder.lastModified(),errorString); + fileErrorDialog dialog(interface,folder,errorString,false); + dialog.exec();/// \bug crash when external close + FileErrorAction newAction=dialog.getAction(); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); + if(newAction==FileError_Cancel) + { + emit cancelAll(); + return; + } + if(dialog.getAlways() && newAction!=alwaysDoThisActionForFileError) + { + setComboBoxFolderError(newAction); + alwaysDoThisActionForFolderError=newAction; + } + dialogIsOpen=false; + switch(newAction) + { + case FileError_Skip: + listThread->mkPathQueue.skip(); + break; + case FileError_Retry: + listThread->mkPathQueue.retry(); + break; + default: + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"Unknow switch case: "+QString::number(newAction)); + break; + } + if(!isCalledByShowOneNewDialog) + emit queryOneNewDialog(); + return; + break; + } + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"stop"); } //rmpath event void copyEngine::rmPathErrorOnFolder(QFileInfo folder,QString errorString,bool isCalledByShowOneNewDialog) { - if(stopIt) - return; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"file have error: "+folder.absoluteFilePath()+", error: "+errorString); - //load the always action - tempFileErrorAction=alwaysDoThisActionForFolderError; - error_index=0; - switch(tempFileErrorAction) - { - case FileError_Skip: - listThread->rmPathQueue.skip(); - return; - case FileError_Retry: - listThread->rmPathQueue.retry(); - return; - default: - if(dialogIsOpen) - { - errorQueueItem newItem; - newItem.errorString=errorString; - newItem.inode=folder; - newItem.mkPath=false; - newItem.rmPath=true; - newItem.scan=NULL; - newItem.transfer=NULL; - errorQueue << newItem; - return; - } - dialogIsOpen=true; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); - emit error(folder.absoluteFilePath(),folder.size(),folder.lastModified(),errorString); - fileErrorDialog dialog(interface,folder,errorString,false); - dialog.exec();/// \bug crash when external close - FileErrorAction newAction=dialog.getAction(); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); - if(newAction==FileError_Cancel) - { - emit cancelAll(); - return; - } - if(dialog.getAlways() && newAction!=alwaysDoThisActionForFileError) - { - setComboBoxFolderError(newAction); - alwaysDoThisActionForFolderError=newAction; - } - dialogIsOpen=false; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"do the action"); - switch(newAction) - { - case FileError_Skip: - listThread->rmPathQueue.skip(); - break; - case FileError_Retry: - listThread->rmPathQueue.retry(); - break; - default: - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"Unknow switch case: "+QString::number(newAction)); - break; - } - if(!isCalledByShowOneNewDialog) - emit queryOneNewDialog(); - return; - break; - } - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"stop"); + if(stopIt) + return; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"file have error: "+folder.absoluteFilePath()+", error: "+errorString); + //load the always action + tempFileErrorAction=alwaysDoThisActionForFolderError; + error_index=0; + switch(tempFileErrorAction) + { + case FileError_Skip: + listThread->rmPathQueue.skip(); + return; + case FileError_Retry: + listThread->rmPathQueue.retry(); + return; + default: + if(dialogIsOpen) + { + errorQueueItem newItem; + newItem.errorString=errorString; + newItem.inode=folder; + newItem.mkPath=false; + newItem.rmPath=true; + newItem.scan=NULL; + newItem.transfer=NULL; + errorQueue << newItem; + return; + } + dialogIsOpen=true; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"show dialog"); + emit error(folder.absoluteFilePath(),folder.size(),folder.lastModified(),errorString); + fileErrorDialog dialog(interface,folder,errorString,false); + dialog.exec();/// \bug crash when external close + FileErrorAction newAction=dialog.getAction(); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"close dialog: "+QString::number(newAction)); + if(newAction==FileError_Cancel) + { + emit cancelAll(); + return; + } + if(dialog.getAlways() && newAction!=alwaysDoThisActionForFileError) + { + setComboBoxFolderError(newAction); + alwaysDoThisActionForFolderError=newAction; + } + dialogIsOpen=false; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"do the action"); + switch(newAction) + { + case FileError_Skip: + listThread->rmPathQueue.skip(); + break; + case FileError_Retry: + listThread->rmPathQueue.retry(); + break; + default: + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"Unknow switch case: "+QString::number(newAction)); + break; + } + if(!isCalledByShowOneNewDialog) + emit queryOneNewDialog(); + return; + break; + } + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"stop"); } //show one new dialog if needed void copyEngine::showOneNewDialog() { - if(stopIt) - return; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"alreadyExistsQueue.size(): "+QString::number(alreadyExistsQueue.size())); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"errorQueue.size(): "+QString::number(errorQueue.size())); - loop_size=alreadyExistsQueue.size(); - while(loop_size>0) - { - if(alreadyExistsQueue.first().transfer!=NULL) - { - fileAlreadyExists(alreadyExistsQueue.first().source, - alreadyExistsQueue.first().destination, - alreadyExistsQueue.first().isSame, - alreadyExistsQueue.first().transfer, - true); - } - else if(alreadyExistsQueue.first().scan!=NULL) - folderAlreadyExists(alreadyExistsQueue.first().source, - alreadyExistsQueue.first().destination, - alreadyExistsQueue.first().isSame, - alreadyExistsQueue.first().scan, - true); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"bug, no thread actived"); - alreadyExistsQueue.removeFirst(); - loop_size--; - } - loop_size=errorQueue.size(); - while(errorQueue.size()>0) - { - if(errorQueue.first().transfer!=NULL) - errorOnFile(errorQueue.first().inode,errorQueue.first().errorString,errorQueue.first().transfer,true); - else if(errorQueue.first().scan!=NULL) - errorOnFolder(errorQueue.first().inode,errorQueue.first().errorString,errorQueue.first().scan,true); - else if(errorQueue.first().mkPath) - mkPathErrorOnFolder(errorQueue.first().inode,errorQueue.first().errorString,true); - else if(errorQueue.first().rmPath) - rmPathErrorOnFolder(errorQueue.first().inode,errorQueue.first().errorString,true); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"bug, no thread actived"); - errorQueue.removeFirst(); - loop_size--; - } + if(stopIt) + return; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"alreadyExistsQueue.size(): "+QString::number(alreadyExistsQueue.size())); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"errorQueue.size(): "+QString::number(errorQueue.size())); + loop_size=alreadyExistsQueue.size(); + while(loop_size>0) + { + if(alreadyExistsQueue.first().transfer!=NULL) + { + fileAlreadyExists(alreadyExistsQueue.first().source, + alreadyExistsQueue.first().destination, + alreadyExistsQueue.first().isSame, + alreadyExistsQueue.first().transfer, + true); + } + else if(alreadyExistsQueue.first().scan!=NULL) + folderAlreadyExists(alreadyExistsQueue.first().source, + alreadyExistsQueue.first().destination, + alreadyExistsQueue.first().isSame, + alreadyExistsQueue.first().scan, + true); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"bug, no thread actived"); + alreadyExistsQueue.removeFirst(); + loop_size--; + } + loop_size=errorQueue.size(); + while(errorQueue.size()>0) + { + if(errorQueue.first().transfer!=NULL) + errorOnFile(errorQueue.first().inode,errorQueue.first().errorString,errorQueue.first().transfer,true); + else if(errorQueue.first().scan!=NULL) + errorOnFolder(errorQueue.first().inode,errorQueue.first().errorString,errorQueue.first().scan,true); + else if(errorQueue.first().mkPath) + mkPathErrorOnFolder(errorQueue.first().inode,errorQueue.first().errorString,true); + else if(errorQueue.first().rmPath) + rmPathErrorOnFolder(errorQueue.first().inode,errorQueue.first().errorString,true); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"bug, no thread actived"); + errorQueue.removeFirst(); + loop_size--; + } } diff --git a/plugins/CopyEngine/Ultracopier/copyEngine.cpp b/plugins/CopyEngine/Ultracopier/copyEngine.cpp index 7743e8ba..17ce6c03 100755 --- a/plugins/CopyEngine/Ultracopier/copyEngine.cpp +++ b/plugins/CopyEngine/Ultracopier/copyEngine.cpp @@ -4,7 +4,6 @@ \version 0.3 \date 2010 */ -#include #include #include @@ -13,773 +12,777 @@ #include "../../../interface/PluginInterface_CopyEngine.h" copyEngine::copyEngine(FacilityInterface * facilityEngine) : - ui(new Ui::options()) + ui(new Ui::options()) { - listThread=new ListThread(facilityEngine); - this->facilityEngine=facilityEngine; - filters=NULL; - renamingRules=NULL; + listThread=new ListThread(facilityEngine); + this->facilityEngine=facilityEngine; + filters=NULL; + renamingRules=NULL; - interface = NULL; - tempWidget = NULL; - uiIsInstalled = false; - dialogIsOpen = false; - maxSpeed = 0; - alwaysDoThisActionForFileExists = FileExists_NotSet; - alwaysDoThisActionForFileError = FileError_NotSet; - checkDestinationFolderExists = false; - stopIt = false; - size_for_speed = 0; - forcedMode = false; + interface = NULL; + tempWidget = NULL; + uiIsInstalled = false; + dialogIsOpen = false; + maxSpeed = 0; + alwaysDoThisActionForFileExists = FileExists_NotSet; + alwaysDoThisActionForFileError = FileError_NotSet; + checkDestinationFolderExists = false; + stopIt = false; + size_for_speed = 0; + forcedMode = false; - //implement the SingleShot in this class - //timerActionDone.setSingleShot(true); - timerActionDone.setInterval(ULTRACOPIER_PLUGIN_TIME_UPDATE_TRASNFER_LIST); - //timerProgression.setSingleShot(true); - timerProgression.setInterval(ULTRACOPIER_PLUGIN_TIME_UPDATE_PROGRESSION); + //implement the SingleShot in this class + //timerActionDone.setSingleShot(true); + timerActionDone.setInterval(ULTRACOPIER_PLUGIN_TIME_UPDATE_TRASNFER_LIST); + //timerProgression.setSingleShot(true); + timerProgression.setInterval(ULTRACOPIER_PLUGIN_TIME_UPDATE_PROGRESSION); } copyEngine::~copyEngine() { - /*if(filters!=NULL) - delete filters; - if(renamingRules!=NULL) - delete renamingRules; - destroyed by the widget parent, here the interface - */ - stopIt=true; - delete listThread; + /*if(filters!=NULL) + delete filters; + if(renamingRules!=NULL) + delete renamingRules; + destroyed by the widget parent, here the interface + */ + stopIt=true; + delete listThread; delete ui; } void copyEngine::connectTheSignalsSlots() { - #ifdef ULTRACOPIER_PLUGIN_DEBUG_WINDOW - debugDialogWindow.show(); - #endif - if(!connect(listThread,&ListThread::actionInProgess, this,©Engine::actionInProgess, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect actionInProgess()"); - if(!connect(listThread,&ListThread::actionInProgess, this,©Engine::newActionInProgess, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect actionInProgess() to slot"); - if(!connect(listThread,&ListThread::newFolderListing, this,©Engine::newFolderListing, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect newFolderListing()"); - if(!connect(listThread,&ListThread::newCollisionAction, this,©Engine::newCollisionAction, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect newCollisionAction()"); - if(!connect(listThread,&ListThread::newErrorAction, this,©Engine::newErrorAction, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect newErrorAction()"); - if(!connect(listThread,&ListThread::isInPause, this,©Engine::isInPause, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect isInPause()"); - if(!connect(listThread,&ListThread::error, this,©Engine::error, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect error()"); - if(!connect(listThread,&ListThread::rmPath, this,©Engine::rmPath, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect rmPath()"); - if(!connect(listThread,&ListThread::mkPath, this,©Engine::mkPath, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect mkPath()"); - if(!connect(listThread,&ListThread::newActionOnList, this,©Engine::newActionOnList, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect newActionOnList()"); - if(!connect(listThread,&ListThread::pushFileProgression, this,©Engine::pushFileProgression, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect pushFileProgression()"); - if(!connect(listThread,&ListThread::pushGeneralProgression, this,©Engine::pushGeneralProgression, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect pushGeneralProgression()"); - if(!connect(listThread,&ListThread::syncReady, this,©Engine::syncReady, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect syncReady()"); - if(!connect(listThread,&ListThread::canBeDeleted, this,©Engine::canBeDeleted, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect canBeDeleted()"); - #ifdef ULTRACOPIER_PLUGIN_DEBUG_WINDOW - if(!connect(listThread,&ListThread::debugInformation, this,©Engine::debugInformation, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect debugInformation()"); - #endif - - if(!connect(listThread,&ListThread::send_fileAlreadyExists, this,©Engine::fileAlreadyExistsSlot, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_fileAlreadyExists()"); - if(!connect(listThread,&ListThread::send_errorOnFile, this,©Engine::errorOnFileSlot, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_errorOnFile()"); - if(!connect(listThread,&ListThread::send_folderAlreadyExists, this,©Engine::folderAlreadyExistsSlot, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_folderAlreadyExists()"); - if(!connect(listThread,&ListThread::send_errorOnFolder, this,©Engine::errorOnFolderSlot, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_errorOnFolder()"); - if(!connect(listThread,&ListThread::updateTheDebugInfo, this,©Engine::updateTheDebugInfo, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect updateTheDebugInfo()"); - if(!connect(listThread,&ListThread::errorTransferList, this,©Engine::errorTransferList, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect errorTransferList()"); - if(!connect(listThread,&ListThread::warningTransferList, this,©Engine::warningTransferList, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect warningTransferList()"); - if(!connect(listThread,&ListThread::mkPathErrorOnFolder, this,©Engine::mkPathErrorOnFolderSlot, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect mkPathErrorOnFolder()"); - if(!connect(listThread,&ListThread::rmPathErrorOnFolder, this,©Engine::rmPathErrorOnFolderSlot, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect rmPathErrorOnFolder()"); - if(!connect(listThread,&ListThread::send_realBytesTransfered, this,©Engine::get_realBytesTransfered, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_realBytesTransfered()"); - - if(!connect(this,©Engine::tryCancel, listThread,&ListThread::tryCancel, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect tryCancel()"); - if(!connect(this,©Engine::signal_pause, listThread,&ListThread::pause, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_pause()"); - if(!connect(this,©Engine::signal_resume, listThread,&ListThread::resume, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_resume()"); - if(!connect(this,©Engine::signal_skip, listThread,&ListThread::skip, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_skip()"); - if(!connect(this,©Engine::signal_setCollisionAction, listThread,&ListThread::setAlwaysFileExistsAction, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_setCollisionAction()"); - if(!connect(this,©Engine::signal_setFolderColision, listThread,&ListThread::setFolderColision, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_setFolderColision()"); - if(!connect(this,©Engine::signal_removeItems, listThread,&ListThread::removeItems, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_removeItems()"); - if(!connect(this,©Engine::signal_moveItemsOnTop, listThread,&ListThread::moveItemsOnTop, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_moveItemsOnTop()"); - if(!connect(this,©Engine::signal_moveItemsUp, listThread,&ListThread::moveItemsUp, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_moveItemsUp()"); - if(!connect(this,©Engine::signal_moveItemsDown, listThread,&ListThread::moveItemsDown, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_moveItemsDown()"); - if(!connect(this,©Engine::signal_moveItemsOnBottom, listThread,&ListThread::moveItemsOnBottom, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_moveItemsOnBottom()"); - if(!connect(this,©Engine::signal_exportTransferList, listThread,&ListThread::exportTransferList, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_exportTransferList()"); - if(!connect(this,©Engine::signal_importTransferList, listThread,&ListThread::importTransferList, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_importTransferList()"); - if(!connect(this,©Engine::signal_forceMode, listThread,&ListThread::forceMode, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_forceMode()"); - if(!connect(this,©Engine::send_osBufferLimit, listThread,&ListThread::set_osBufferLimit, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_osBufferLimit()"); - if(!connect(this,©Engine::send_setFilters,listThread,&ListThread::set_setFilters, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_setFilters()"); - if(!connect(this,©Engine::send_sendNewRenamingRules,listThread,&ListThread::set_sendNewRenamingRules, Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_sendNewRenamingRules()"); - if(!connect(&timerActionDone,&QTimer::timeout, listThread,&ListThread::sendActionDone)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect timerActionDone"); - if(!connect(&timerProgression,&QTimer::timeout, listThread,&ListThread::sendProgression)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect timerProgression"); - - if(!connect(this,©Engine::queryOneNewDialog,this,©Engine::showOneNewDialog,Qt::QueuedConnection)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect queryOneNewDialog()"); + #ifdef ULTRACOPIER_PLUGIN_DEBUG_WINDOW + debugDialogWindow.show(); + #endif + if(!connect(listThread,&ListThread::actionInProgess, this,©Engine::actionInProgess, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect actionInProgess()"); + if(!connect(listThread,&ListThread::actionInProgess, this,©Engine::newActionInProgess, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect actionInProgess() to slot"); + if(!connect(listThread,&ListThread::newFolderListing, this,©Engine::newFolderListing, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect newFolderListing()"); + if(!connect(listThread,&ListThread::newCollisionAction, this,©Engine::newCollisionAction, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect newCollisionAction()"); + if(!connect(listThread,&ListThread::newErrorAction, this,©Engine::newErrorAction, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect newErrorAction()"); + if(!connect(listThread,&ListThread::isInPause, this,©Engine::isInPause, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect isInPause()"); + if(!connect(listThread,&ListThread::error, this,©Engine::error, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect error()"); + if(!connect(listThread,&ListThread::rmPath, this,©Engine::rmPath, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect rmPath()"); + if(!connect(listThread,&ListThread::mkPath, this,©Engine::mkPath, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect mkPath()"); + if(!connect(listThread,&ListThread::newActionOnList, this,©Engine::newActionOnList, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect newActionOnList()"); + if(!connect(listThread,&ListThread::pushFileProgression, this,©Engine::pushFileProgression, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect pushFileProgression()"); + if(!connect(listThread,&ListThread::pushGeneralProgression, this,©Engine::pushGeneralProgression, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect pushGeneralProgression()"); + if(!connect(listThread,&ListThread::syncReady, this,©Engine::syncReady, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect syncReady()"); + if(!connect(listThread,&ListThread::canBeDeleted, this,©Engine::canBeDeleted, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect canBeDeleted()"); + #ifdef ULTRACOPIER_PLUGIN_DEBUG_WINDOW + if(!connect(listThread,&ListThread::debugInformation, this,©Engine::debugInformation, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect debugInformation()"); + #endif + + if(!connect(listThread,&ListThread::send_fileAlreadyExists, this,©Engine::fileAlreadyExistsSlot, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_fileAlreadyExists()"); + if(!connect(listThread,&ListThread::send_errorOnFile, this,©Engine::errorOnFileSlot, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_errorOnFile()"); + if(!connect(listThread,&ListThread::send_folderAlreadyExists, this,©Engine::folderAlreadyExistsSlot, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_folderAlreadyExists()"); + if(!connect(listThread,&ListThread::send_errorOnFolder, this,©Engine::errorOnFolderSlot, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_errorOnFolder()"); + if(!connect(listThread,&ListThread::updateTheDebugInfo, this,©Engine::updateTheDebugInfo, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect updateTheDebugInfo()"); + if(!connect(listThread,&ListThread::errorTransferList, this,©Engine::errorTransferList, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect errorTransferList()"); + if(!connect(listThread,&ListThread::warningTransferList, this,©Engine::warningTransferList, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect warningTransferList()"); + if(!connect(listThread,&ListThread::mkPathErrorOnFolder, this,©Engine::mkPathErrorOnFolderSlot, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect mkPathErrorOnFolder()"); + if(!connect(listThread,&ListThread::rmPathErrorOnFolder, this,©Engine::rmPathErrorOnFolderSlot, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect rmPathErrorOnFolder()"); + if(!connect(listThread,&ListThread::send_realBytesTransfered, this,©Engine::get_realBytesTransfered, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_realBytesTransfered()"); + + if(!connect(this,©Engine::tryCancel, listThread,&ListThread::tryCancel, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect tryCancel()"); + if(!connect(this,©Engine::signal_pause, listThread,&ListThread::pause, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_pause()"); + if(!connect(this,©Engine::signal_resume, listThread,&ListThread::resume, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_resume()"); + if(!connect(this,©Engine::signal_skip, listThread,&ListThread::skip, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_skip()"); + if(!connect(this,©Engine::signal_setCollisionAction, listThread,&ListThread::setAlwaysFileExistsAction, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_setCollisionAction()"); + if(!connect(this,©Engine::signal_setFolderColision, listThread,&ListThread::setFolderColision, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_setFolderColision()"); + if(!connect(this,©Engine::signal_removeItems, listThread,&ListThread::removeItems, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_removeItems()"); + if(!connect(this,©Engine::signal_moveItemsOnTop, listThread,&ListThread::moveItemsOnTop, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_moveItemsOnTop()"); + if(!connect(this,©Engine::signal_moveItemsUp, listThread,&ListThread::moveItemsUp, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_moveItemsUp()"); + if(!connect(this,©Engine::signal_moveItemsDown, listThread,&ListThread::moveItemsDown, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_moveItemsDown()"); + if(!connect(this,©Engine::signal_moveItemsOnBottom, listThread,&ListThread::moveItemsOnBottom, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_moveItemsOnBottom()"); + if(!connect(this,©Engine::signal_exportTransferList, listThread,&ListThread::exportTransferList, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_exportTransferList()"); + if(!connect(this,©Engine::signal_importTransferList, listThread,&ListThread::importTransferList, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_importTransferList()"); + if(!connect(this,©Engine::signal_forceMode, listThread,&ListThread::forceMode, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect signal_forceMode()"); + if(!connect(this,©Engine::send_osBufferLimit, listThread,&ListThread::set_osBufferLimit, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_osBufferLimit()"); + if(!connect(this,©Engine::send_setFilters,listThread,&ListThread::set_setFilters, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_setFilters()"); + if(!connect(this,©Engine::send_sendNewRenamingRules,listThread,&ListThread::set_sendNewRenamingRules, Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect send_sendNewRenamingRules()"); + if(!connect(&timerActionDone,&QTimer::timeout, listThread,&ListThread::sendActionDone)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect timerActionDone"); + if(!connect(&timerProgression,&QTimer::timeout, listThread,&ListThread::sendProgression)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect timerProgression"); + + if(!connect(this,©Engine::queryOneNewDialog,this,©Engine::showOneNewDialog,Qt::QueuedConnection)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect queryOneNewDialog()"); } #ifdef ULTRACOPIER_PLUGIN_DEBUG_WINDOW void copyEngine::updateTheDebugInfo(QStringList newList,QStringList newList2,int numberOfInodeOperation) { - debugDialogWindow.setTransferThreadList(newList); - debugDialogWindow.setTransferList(newList2); - debugDialogWindow.setInodeUsage(numberOfInodeOperation); + debugDialogWindow.setTransferThreadList(newList); + debugDialogWindow.setTransferList(newList2); + debugDialogWindow.setInodeUsage(numberOfInodeOperation); } #endif //to send the options panel bool copyEngine::getOptionsEngine(QWidget * tempWidget) { - this->tempWidget=tempWidget; - ui->setupUi(tempWidget); - connect(tempWidget, &QWidget::destroyed, this, ©Engine::resetTempWidget); - //conect the ui widget + this->tempWidget=tempWidget; + ui->setupUi(tempWidget); + connect(tempWidget, &QWidget::destroyed, this, ©Engine::resetTempWidget); + //conect the ui widget /* connect(ui->doRightTransfer, &QCheckBox::toggled, &threadOfTheTransfer, ©Engine::setRightTransfer); - connect(ui->keepDate, &QCheckBox::toggled, &threadOfTheTransfer, ©Engine::setKeepDate); - connect(ui->blockSize, &QCheckBox::valueChanged, &threadOfTheTransfer, ©Engine::setBlockSize);*/ - connect(ui->autoStart, &QCheckBox::toggled, this, ©Engine::setAutoStart); - connect(ui->checkBoxDestinationFolderExists, &QCheckBox::toggled,this, ©Engine::setCheckDestinationFolderExists); - uiIsInstalled=true; - setRightTransfer(doRightTransfer); - setKeepDate(keepDate); - setSpeedLimitation(maxSpeed); - setBlockSize(blockSize); - setAutoStart(autoStart); - setCheckDestinationFolderExists(checkDestinationFolderExists); - set_doChecksum(doChecksum); - set_checksumIgnoreIfImpossible(checksumIgnoreIfImpossible); - set_checksumOnlyOnError(checksumOnlyOnError); - set_osBuffer(osBuffer); - set_osBufferLimited(osBufferLimited); - set_osBufferLimit(osBufferLimit); - return true; + connect(ui->keepDate, &QCheckBox::toggled, &threadOfTheTransfer, ©Engine::setKeepDate); + connect(ui->blockSize, &QCheckBox::valueChanged, &threadOfTheTransfer, ©Engine::setBlockSize);*/ + connect(ui->autoStart, &QCheckBox::toggled, this, ©Engine::setAutoStart); + connect(ui->checkBoxDestinationFolderExists, &QCheckBox::toggled,this, ©Engine::setCheckDestinationFolderExists); + uiIsInstalled=true; + setRightTransfer(doRightTransfer); + setKeepDate(keepDate); + setSpeedLimitation(maxSpeed); + setBlockSize(blockSize); + setAutoStart(autoStart); + setCheckDestinationFolderExists(checkDestinationFolderExists); + set_doChecksum(doChecksum); + set_checksumIgnoreIfImpossible(checksumIgnoreIfImpossible); + set_checksumOnlyOnError(checksumOnlyOnError); + set_osBuffer(osBuffer); + set_osBufferLimited(osBufferLimited); + set_osBufferLimit(osBufferLimit); + return true; } //to have interface widget to do modal dialog void copyEngine::setInterfacePointer(QWidget * interface) { - this->interface=interface; - filters=new Filters(tempWidget); - renamingRules=new RenamingRules(tempWidget); + this->interface=interface; + filters=new Filters(tempWidget); + renamingRules=new RenamingRules(tempWidget); - if(uiIsInstalled) - { - connect(ui->doRightTransfer, &QCheckBox::toggled, this,©Engine::setRightTransfer); - connect(ui->keepDate, &QCheckBox::toggled, this,©Engine::setKeepDate); - connect(ui->blockSize, static_cast(&QSpinBox::valueChanged), this,©Engine::setBlockSize); - connect(ui->autoStart, &QCheckBox::toggled, this,©Engine::setAutoStart); - connect(ui->doChecksum, &QCheckBox::toggled, this,©Engine::doChecksum_toggled); - connect(ui->checksumIgnoreIfImpossible, &QCheckBox::toggled, this,©Engine::checksumIgnoreIfImpossible_toggled); - connect(ui->checksumOnlyOnError, &QCheckBox::toggled, this,©Engine::checksumOnlyOnError_toggled); - connect(ui->osBuffer, &QCheckBox::toggled, this,©Engine::osBuffer_toggled); - connect(ui->osBufferLimited, &QCheckBox::toggled, this,©Engine::osBufferLimited_toggled); - connect(ui->osBufferLimit, &QSpinBox::editingFinished, this,©Engine::osBufferLimit_editingFinished); + if(uiIsInstalled) + { + connect(ui->doRightTransfer, &QCheckBox::toggled, this,©Engine::setRightTransfer); + connect(ui->keepDate, &QCheckBox::toggled, this,©Engine::setKeepDate); + connect(ui->blockSize, static_cast(&QSpinBox::valueChanged), this,©Engine::setBlockSize); + connect(ui->autoStart, &QCheckBox::toggled, this,©Engine::setAutoStart); + connect(ui->doChecksum, &QCheckBox::toggled, this,©Engine::doChecksum_toggled); + connect(ui->checksumIgnoreIfImpossible, &QCheckBox::toggled, this,©Engine::checksumIgnoreIfImpossible_toggled); + connect(ui->checksumOnlyOnError, &QCheckBox::toggled, this,©Engine::checksumOnlyOnError_toggled); + connect(ui->osBuffer, &QCheckBox::toggled, this,©Engine::osBuffer_toggled); + connect(ui->osBufferLimited, &QCheckBox::toggled, this,©Engine::osBufferLimited_toggled); + connect(ui->osBufferLimit, &QSpinBox::editingFinished, this,©Engine::osBufferLimit_editingFinished); - connect(filters,&Filters::haveNewFilters,this,©Engine::sendNewFilters); - connect(ui->filters,&QPushButton::clicked,this,©Engine::showFilterDialog); + connect(filters,&Filters::haveNewFilters,this,©Engine::sendNewFilters); + connect(ui->filters,&QPushButton::clicked,this,©Engine::showFilterDialog); - if(!connect(renamingRules,&RenamingRules::sendNewRenamingRules,this,©Engine::sendNewRenamingRules)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect sendNewRenamingRules()"); - if(!connect(ui->renamingRules,&QPushButton::clicked,this,©Engine::showRenamingRules)) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect renamingRules.clicked()"); - } + if(!connect(renamingRules,&RenamingRules::sendNewRenamingRules,this,©Engine::sendNewRenamingRules)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect sendNewRenamingRules()"); + if(!connect(ui->renamingRules,&QPushButton::clicked,this,©Engine::showRenamingRules)) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"unable to connect renamingRules.clicked()"); + } - filters->setFilters(includeStrings,includeOptions,excludeStrings,excludeOptions); - set_setFilters(includeStrings,includeOptions,excludeStrings,excludeOptions); + filters->setFilters(includeStrings,includeOptions,excludeStrings,excludeOptions); + set_setFilters(includeStrings,includeOptions,excludeStrings,excludeOptions); - renamingRules->setRenamingRules(firstRenamingRule,otherRenamingRule); - emit send_sendNewRenamingRules(firstRenamingRule,otherRenamingRule); + renamingRules->setRenamingRules(firstRenamingRule,otherRenamingRule); + emit send_sendNewRenamingRules(firstRenamingRule,otherRenamingRule); } bool copyEngine::haveSameSource(const QStringList &sources) { - return listThread->haveSameSource(sources); + return listThread->haveSameSource(sources); } bool copyEngine::haveSameDestination(const QString &destination) { - return listThread->haveSameDestination(destination); + return listThread->haveSameDestination(destination); } bool copyEngine::newCopy(const QStringList &sources) { - if(forcedMode && mode!=Copy) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"The engine is forced to move, you can't copy with it"); - QMessageBox::critical(NULL,facilityEngine->translateText("Internal error"),tr("The engine is forced to move, you can't copy with it")); - return false; - } - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - QString destination = QFileDialog::getExistingDirectory(interface,facilityEngine->translateText("Select destination directory"),"",QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); - if(destination.isEmpty() || destination.isNull() || destination=="") - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"Canceled by the user"); - return false; - } - return listThread->newCopy(sources,destination); + if(forcedMode && mode!=Copy) + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"The engine is forced to move, you can't copy with it"); + QMessageBox::critical(NULL,facilityEngine->translateText("Internal error"),tr("The engine is forced to move, you can't copy with it")); + return false; + } + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + QString destination = QFileDialog::getExistingDirectory(interface,facilityEngine->translateText("Select destination directory"),"",QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); + if(destination.isEmpty() || destination.isNull() || destination=="") + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"Canceled by the user"); + return false; + } + return listThread->newCopy(sources,destination); } bool copyEngine::newCopy(const QStringList &sources,const QString &destination) { - if(forcedMode && mode!=Copy) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"The engine is forced to move, you can't copy with it"); - QMessageBox::critical(NULL,facilityEngine->translateText("Internal error"),tr("The engine is forced to move, you can't copy with it")); - return false; - } - return listThread->newCopy(sources,destination); + if(forcedMode && mode!=Copy) + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"The engine is forced to move, you can't copy with it"); + QMessageBox::critical(NULL,facilityEngine->translateText("Internal error"),tr("The engine is forced to move, you can't copy with it")); + return false; + } + return listThread->newCopy(sources,destination); } bool copyEngine::newMove(const QStringList &sources) { - if(forcedMode && mode!=Move) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"The engine is forced to copy, you can't move with it"); - QMessageBox::critical(NULL,facilityEngine->translateText("Internal error"),tr("The engine is forced to copy, you can't move with it")); - return false; - } - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - QString destination = QFileDialog::getExistingDirectory(interface,facilityEngine->translateText("Select destination directory"),"",QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); - if(destination.isEmpty() || destination.isNull() || destination=="") - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"Canceled by the user"); - return false; - } - return listThread->newMove(sources,destination); + if(forcedMode && mode!=Move) + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"The engine is forced to copy, you can't move with it"); + QMessageBox::critical(NULL,facilityEngine->translateText("Internal error"),tr("The engine is forced to copy, you can't move with it")); + return false; + } + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + QString destination = QFileDialog::getExistingDirectory(interface,facilityEngine->translateText("Select destination directory"),"",QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); + if(destination.isEmpty() || destination.isNull() || destination=="") + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"Canceled by the user"); + return false; + } + return listThread->newMove(sources,destination); } bool copyEngine::newMove(const QStringList &sources,const QString &destination) { - if(forcedMode && mode!=Move) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"The engine is forced to copy, you can't move with it"); - QMessageBox::critical(NULL,facilityEngine->translateText("Internal error"),tr("The engine is forced to copy, you can't move with it")); - return false; - } - return listThread->newMove(sources,destination); + if(forcedMode && mode!=Move) + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"The engine is forced to copy, you can't move with it"); + QMessageBox::critical(NULL,facilityEngine->translateText("Internal error"),tr("The engine is forced to copy, you can't move with it")); + return false; + } + return listThread->newMove(sources,destination); } void copyEngine::newTransferList(const QString &file) { - emit signal_importTransferList(file); + emit signal_importTransferList(file); } //because direct access to list thread into the main thread can't be do quint64 copyEngine::realByteTransfered() { - return size_for_speed; + return size_for_speed; } //speed limitation qint64 copyEngine::getSpeedLimitation() { - return listThread->getSpeedLimitation(); + return listThread->getSpeedLimitation(); } //get collision action QList > copyEngine::getCollisionAction() { - QPair tempItem; - QList > list; - tempItem.first=facilityEngine->translateText("Ask");tempItem.second="ask";list << tempItem; - tempItem.first=facilityEngine->translateText("Skip");tempItem.second="skip";list << tempItem; - tempItem.first=facilityEngine->translateText("Overwrite");tempItem.second="overwrite";list << tempItem; - tempItem.first=facilityEngine->translateText("Overwrite if newer");tempItem.second="overwriteIfNewer";list << tempItem; - tempItem.first=facilityEngine->translateText("Overwrite if the last modification dates are different");tempItem.second="overwriteIfNotSameModificationDate";list << tempItem; - tempItem.first=facilityEngine->translateText("Rename");tempItem.second="rename";list << tempItem; - return list; + QPair tempItem; + QList > list; + tempItem.first=facilityEngine->translateText("Ask");tempItem.second="ask";list << tempItem; + tempItem.first=facilityEngine->translateText("Skip");tempItem.second="skip";list << tempItem; + tempItem.first=facilityEngine->translateText("Overwrite");tempItem.second="overwrite";list << tempItem; + tempItem.first=facilityEngine->translateText("Overwrite if newer");tempItem.second="overwriteIfNewer";list << tempItem; + tempItem.first=facilityEngine->translateText("Overwrite if the last modification dates are different");tempItem.second="overwriteIfNotSameModificationDate";list << tempItem; + tempItem.first=facilityEngine->translateText("Rename");tempItem.second="rename";list << tempItem; + return list; } QList > copyEngine::getErrorAction() { - QPair tempItem; - QList > list; - tempItem.first=facilityEngine->translateText("Ask");tempItem.second="ask";list << tempItem; - tempItem.first=facilityEngine->translateText("Skip");tempItem.second="skip";list << tempItem; - tempItem.first=facilityEngine->translateText("Put to end of the list");tempItem.second="putToEndOfTheList";list << tempItem; - return list; + QPair tempItem; + QList > list; + tempItem.first=facilityEngine->translateText("Ask");tempItem.second="ask";list << tempItem; + tempItem.first=facilityEngine->translateText("Skip");tempItem.second="skip";list << tempItem; + tempItem.first=facilityEngine->translateText("Put to end of the list");tempItem.second="putToEndOfTheList";list << tempItem; + return list; } void copyEngine::setDrive(const QStringList &drives) { - listThread->setDrive(drives); + listThread->setDrive(drives); } /** \brief to sync the transfer list * Used when the interface is changed, useful to minimize the memory size */ void copyEngine::syncTransferList() { - listThread->syncTransferList(); + listThread->syncTransferList(); } void copyEngine::set_doChecksum(bool doChecksum) { - listThread->set_doChecksum(doChecksum); - if(uiIsInstalled) - ui->doChecksum->setChecked(doChecksum); - this->doChecksum=doChecksum; + listThread->set_doChecksum(doChecksum); + if(uiIsInstalled) + ui->doChecksum->setChecked(doChecksum); + this->doChecksum=doChecksum; } void copyEngine::set_checksumIgnoreIfImpossible(bool checksumIgnoreIfImpossible) { - listThread->set_checksumIgnoreIfImpossible(checksumIgnoreIfImpossible); - if(uiIsInstalled) - ui->checksumIgnoreIfImpossible->setChecked(checksumIgnoreIfImpossible); - this->checksumIgnoreIfImpossible=checksumIgnoreIfImpossible; + listThread->set_checksumIgnoreIfImpossible(checksumIgnoreIfImpossible); + if(uiIsInstalled) + ui->checksumIgnoreIfImpossible->setChecked(checksumIgnoreIfImpossible); + this->checksumIgnoreIfImpossible=checksumIgnoreIfImpossible; } void copyEngine::set_checksumOnlyOnError(bool checksumOnlyOnError) { - listThread->set_checksumOnlyOnError(checksumOnlyOnError); - if(uiIsInstalled) - ui->checksumOnlyOnError->setChecked(checksumOnlyOnError); - this->checksumOnlyOnError=checksumOnlyOnError; + listThread->set_checksumOnlyOnError(checksumOnlyOnError); + if(uiIsInstalled) + ui->checksumOnlyOnError->setChecked(checksumOnlyOnError); + this->checksumOnlyOnError=checksumOnlyOnError; } void copyEngine::set_osBuffer(bool osBuffer) { - listThread->set_osBuffer(osBuffer); - if(uiIsInstalled) - ui->osBuffer->setChecked(osBuffer); - this->osBuffer=osBuffer; + listThread->set_osBuffer(osBuffer); + if(uiIsInstalled) + { + ui->osBuffer->setChecked(osBuffer); + ui->checksumOnlyOnError->setEnabled(ui->doChecksum->isChecked()); + ui->checksumIgnoreIfImpossible->setEnabled(ui->doChecksum->isChecked()); + } + this->osBuffer=osBuffer; } void copyEngine::set_osBufferLimited(bool osBufferLimited) { - listThread->set_osBufferLimited(osBufferLimited); - if(uiIsInstalled) - ui->osBufferLimited->setChecked(osBufferLimited); - this->osBufferLimited=osBufferLimited; + listThread->set_osBufferLimited(osBufferLimited); + if(uiIsInstalled) + ui->osBufferLimited->setChecked(osBufferLimited); + this->osBufferLimited=osBufferLimited; } void copyEngine::set_osBufferLimit(unsigned int osBufferLimit) { - emit send_osBufferLimit(osBufferLimit); - if(uiIsInstalled) - ui->osBufferLimit->setValue(osBufferLimit); - this->osBufferLimit=osBufferLimit; + emit send_osBufferLimit(osBufferLimit); + if(uiIsInstalled) + ui->osBufferLimit->setValue(osBufferLimit); + this->osBufferLimit=osBufferLimit; } void copyEngine::set_setFilters(QStringList includeStrings,QStringList includeOptions,QStringList excludeStrings,QStringList excludeOptions) { - if(filters!=NULL) - { - filters->setFilters(includeStrings,includeOptions,excludeStrings,excludeOptions); - emit send_setFilters(filters->getInclude(),filters->getExclude()); - } - this->includeStrings=includeStrings; - this->includeOptions=includeOptions; - this->excludeStrings=excludeStrings; - this->excludeOptions=excludeOptions; + if(filters!=NULL) + { + filters->setFilters(includeStrings,includeOptions,excludeStrings,excludeOptions); + emit send_setFilters(filters->getInclude(),filters->getExclude()); + } + this->includeStrings=includeStrings; + this->includeOptions=includeOptions; + this->excludeStrings=excludeStrings; + this->excludeOptions=excludeOptions; } void copyEngine::setRenamingRules(QString firstRenamingRule,QString otherRenamingRule) { - sendNewRenamingRules(firstRenamingRule,otherRenamingRule); + sendNewRenamingRules(firstRenamingRule,otherRenamingRule); } bool copyEngine::userAddFolder(const CopyMode &mode) { - QString source = QFileDialog::getExistingDirectory(interface,facilityEngine->translateText("Select source directory"),"",QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); - if(source.isEmpty() || source.isNull() || source=="") - return false; - if(mode==Copy) - return newCopy(QStringList() << source); - else - return newMove(QStringList() << source); + QString source = QFileDialog::getExistingDirectory(interface,facilityEngine->translateText("Select source directory"),"",QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); + if(source.isEmpty() || source.isNull() || source=="") + return false; + if(mode==Copy) + return newCopy(QStringList() << source); + else + return newMove(QStringList() << source); } bool copyEngine::userAddFile(const CopyMode &mode) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - QStringList sources = QFileDialog::getOpenFileNames( - interface, - facilityEngine->translateText("Select one or more files to open"), - "", - facilityEngine->translateText("All files")+" (*)"); - if(sources.isEmpty()) - return false; - if(mode==Copy) - return newCopy(sources); - else - return newMove(sources); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + QStringList sources = QFileDialog::getOpenFileNames( + interface, + facilityEngine->translateText("Select one or more files to open"), + "", + facilityEngine->translateText("All files")+" (*)"); + if(sources.isEmpty()) + return false; + if(mode==Copy) + return newCopy(sources); + else + return newMove(sources); } void copyEngine::pause() { - emit signal_pause(); + emit signal_pause(); } void copyEngine::resume() { - emit signal_resume(); + emit signal_resume(); } void copyEngine::skip(const quint64 &id) { - emit signal_skip(id); + emit signal_skip(id); } void copyEngine::cancel() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); - stopIt=true; - timerProgression.stop(); - timerActionDone.stop(); - emit tryCancel(); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start"); + stopIt=true; + timerProgression.stop(); + timerActionDone.stop(); + emit tryCancel(); } void copyEngine::removeItems(const QList &ids) { - emit signal_removeItems(ids); + emit signal_removeItems(ids); } void copyEngine::moveItemsOnTop(const QList &ids) { - emit signal_moveItemsOnTop(ids); + emit signal_moveItemsOnTop(ids); } void copyEngine::moveItemsUp(const QList &ids) { - emit signal_moveItemsUp(ids); + emit signal_moveItemsUp(ids); } void copyEngine::moveItemsDown(const QList &ids) { - emit signal_moveItemsDown(ids); + emit signal_moveItemsDown(ids); } void copyEngine::moveItemsOnBottom(const QList &ids) { - emit signal_moveItemsOnBottom(ids); + emit signal_moveItemsOnBottom(ids); } /** \brief give the forced mode, to export/import transfer list */ void copyEngine::forceMode(const CopyMode &mode) { - if(forcedMode) - { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,QString("Mode forced previously")); - QMessageBox::critical(NULL,facilityEngine->translateText("Internal error"),tr("The mode have been forced previously, it's internal error, please report it")); - return; - } - if(mode==Copy) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("Force mode to copy")); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("Force mode to move")); - this->mode=mode; - forcedMode=true; - emit signal_forceMode(mode); + if(forcedMode) + { + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,QString("Mode forced previously")); + QMessageBox::critical(NULL,facilityEngine->translateText("Internal error"),tr("The mode have been forced previously, it's internal error, please report it")); + return; + } + if(mode==Copy) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("Force mode to copy")); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,QString("Force mode to move")); + this->mode=mode; + forcedMode=true; + emit signal_forceMode(mode); } void copyEngine::exportTransferList() { - QString fileName = QFileDialog::getSaveFileName(NULL,facilityEngine->translateText("Save transfer list"),"transfer-list.lst",facilityEngine->translateText("Transfer list")+" (*.lst)"); - if(fileName.isEmpty()) - return; - emit signal_exportTransferList(fileName); + QString fileName = QFileDialog::getSaveFileName(NULL,facilityEngine->translateText("Save transfer list"),"transfer-list.lst",facilityEngine->translateText("Transfer list")+" (*.lst)"); + if(fileName.isEmpty()) + return; + emit signal_exportTransferList(fileName); } void copyEngine::importTransferList() { - QString fileName = QFileDialog::getOpenFileName(NULL,facilityEngine->translateText("Open transfer list"),"transfer-list.lst",facilityEngine->translateText("Transfer list")+" (*.lst)"); - if(fileName.isEmpty()) - return; - emit signal_importTransferList(fileName); + QString fileName = QFileDialog::getOpenFileName(NULL,facilityEngine->translateText("Open transfer list"),"transfer-list.lst",facilityEngine->translateText("Transfer list")+" (*.lst)"); + if(fileName.isEmpty()) + return; + emit signal_importTransferList(fileName); } void copyEngine::warningTransferList(const QString &warning) { - QMessageBox::warning(interface,facilityEngine->translateText("Error"),warning); + QMessageBox::warning(interface,facilityEngine->translateText("Error"),warning); } void copyEngine::errorTransferList(const QString &error) { - QMessageBox::critical(interface,facilityEngine->translateText("Error"),error); + QMessageBox::critical(interface,facilityEngine->translateText("Error"),error); } bool copyEngine::setSpeedLimitation(const qint64 &speedLimitation) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"maxSpeed: "+QString::number(speedLimitation)); - maxSpeed=speedLimitation; - return listThread->setSpeedLimitation(speedLimitation); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"maxSpeed: "+QString::number(speedLimitation)); + maxSpeed=speedLimitation; + return listThread->setSpeedLimitation(speedLimitation); } void copyEngine::setCollisionAction(const QString &action) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"action: "+action); - if(action=="skip") - alwaysDoThisActionForFileExists=FileExists_Skip; - else if(action=="overwrite") - alwaysDoThisActionForFileExists=FileExists_Overwrite; - else if(action=="overwriteIfNewer") - alwaysDoThisActionForFileExists=FileExists_OverwriteIfNewer; - else if(action=="overwriteIfNotSameModificationDate") - alwaysDoThisActionForFileExists=FileExists_OverwriteIfNotSameModificationDate; - else if(action=="rename") - alwaysDoThisActionForFileExists=FileExists_Rename; - else - alwaysDoThisActionForFileExists=FileExists_NotSet; - emit signal_setCollisionAction(alwaysDoThisActionForFileExists); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"action: "+action); + if(action=="skip") + alwaysDoThisActionForFileExists=FileExists_Skip; + else if(action=="overwrite") + alwaysDoThisActionForFileExists=FileExists_Overwrite; + else if(action=="overwriteIfNewer") + alwaysDoThisActionForFileExists=FileExists_OverwriteIfNewer; + else if(action=="overwriteIfNotSameModificationDate") + alwaysDoThisActionForFileExists=FileExists_OverwriteIfNotSameModificationDate; + else if(action=="rename") + alwaysDoThisActionForFileExists=FileExists_Rename; + else + alwaysDoThisActionForFileExists=FileExists_NotSet; + emit signal_setCollisionAction(alwaysDoThisActionForFileExists); } void copyEngine::setErrorAction(const QString &action) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"action: "+action); - if(action=="skip") - alwaysDoThisActionForFileError=FileError_Skip; - else if(action=="putToEndOfTheList") - alwaysDoThisActionForFileError=FileError_PutToEndOfTheList; - else - alwaysDoThisActionForFileError=FileError_NotSet; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"action: "+action); + if(action=="skip") + alwaysDoThisActionForFileError=FileError_Skip; + else if(action=="putToEndOfTheList") + alwaysDoThisActionForFileError=FileError_PutToEndOfTheList; + else + alwaysDoThisActionForFileError=FileError_NotSet; } void copyEngine::setRightTransfer(const bool doRightTransfer) { - this->doRightTransfer=doRightTransfer; - if(uiIsInstalled) - ui->doRightTransfer->setChecked(doRightTransfer); - listThread->setRightTransfer(doRightTransfer); + this->doRightTransfer=doRightTransfer; + if(uiIsInstalled) + ui->doRightTransfer->setChecked(doRightTransfer); + listThread->setRightTransfer(doRightTransfer); } //set keep date void copyEngine::setKeepDate(const bool keepDate) { - this->keepDate=keepDate; - if(uiIsInstalled) - ui->keepDate->setChecked(keepDate); - listThread->setKeepDate(keepDate); + this->keepDate=keepDate; + if(uiIsInstalled) + ui->keepDate->setChecked(keepDate); + listThread->setKeepDate(keepDate); } //set block size in KB void copyEngine::setBlockSize(const int blockSize) { - this->blockSize=blockSize; - if(uiIsInstalled) - ui->blockSize->setValue(blockSize); - listThread->setBlockSize(blockSize); + this->blockSize=blockSize; + if(uiIsInstalled) + ui->blockSize->setValue(blockSize); + listThread->setBlockSize(blockSize); } //set auto start void copyEngine::setAutoStart(const bool autoStart) { - this->autoStart=autoStart; - if(uiIsInstalled) - ui->autoStart->setChecked(autoStart); - listThread->setAutoStart(autoStart); + this->autoStart=autoStart; + if(uiIsInstalled) + ui->autoStart->setChecked(autoStart); + listThread->setAutoStart(autoStart); } //set check destination folder void copyEngine::setCheckDestinationFolderExists(const bool checkDestinationFolderExists) { - this->checkDestinationFolderExists=checkDestinationFolderExists; - if(uiIsInstalled) - ui->checkBoxDestinationFolderExists->setChecked(checkDestinationFolderExists); - listThread->setCheckDestinationFolderExists(checkDestinationFolderExists); + this->checkDestinationFolderExists=checkDestinationFolderExists; + if(uiIsInstalled) + ui->checkBoxDestinationFolderExists->setChecked(checkDestinationFolderExists); + listThread->setCheckDestinationFolderExists(checkDestinationFolderExists); } //reset widget void copyEngine::resetTempWidget() { - tempWidget=NULL; + tempWidget=NULL; } void copyEngine::on_comboBoxFolderColision_currentIndexChanged(int index) { - switch(index) - { - case 0: - setComboBoxFolderColision(FolderExists_NotSet,false); - break; - case 1: - setComboBoxFolderColision(FolderExists_Merge,false); - break; - case 2: - setComboBoxFolderColision(FolderExists_Skip,false); - break; - case 3: - setComboBoxFolderColision(FolderExists_Rename,false); - break; - } + switch(index) + { + case 0: + setComboBoxFolderColision(FolderExists_NotSet,false); + break; + case 1: + setComboBoxFolderColision(FolderExists_Merge,false); + break; + case 2: + setComboBoxFolderColision(FolderExists_Skip,false); + break; + case 3: + setComboBoxFolderColision(FolderExists_Rename,false); + break; + } } void copyEngine::on_comboBoxFolderError_currentIndexChanged(int index) { - switch(index) - { - case 0: - setComboBoxFolderError(FileError_NotSet,false); - break; - case 1: - setComboBoxFolderError(FileError_Skip,false); - break; - } + switch(index) + { + case 0: + setComboBoxFolderError(FileError_NotSet,false); + break; + case 1: + setComboBoxFolderError(FileError_Skip,false); + break; + } } //set the translate void copyEngine::newLanguageLoaded() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start, retranslate the widget options"); - if(tempWidget!=NULL) - ui->retranslateUi(tempWidget); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"ui not loaded!"); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start, retranslate the widget options"); + if(tempWidget!=NULL) + ui->retranslateUi(tempWidget); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"ui not loaded!"); } void copyEngine::setComboBoxFolderColision(FolderExistsAction action,bool changeComboBox) { - alwaysDoThisActionForFolderExists=action; - emit signal_setFolderColision(alwaysDoThisActionForFolderExists); - if(!changeComboBox || !uiIsInstalled) - return; - switch(action) - { - case FolderExists_Merge: - ui->comboBoxFolderColision->setCurrentIndex(1); - break; - case FolderExists_Skip: - ui->comboBoxFolderColision->setCurrentIndex(2); - break; - case FolderExists_Rename: - ui->comboBoxFolderColision->setCurrentIndex(3); - break; - default: - ui->comboBoxFolderColision->setCurrentIndex(0); - break; - } + alwaysDoThisActionForFolderExists=action; + emit signal_setFolderColision(alwaysDoThisActionForFolderExists); + if(!changeComboBox || !uiIsInstalled) + return; + switch(action) + { + case FolderExists_Merge: + ui->comboBoxFolderColision->setCurrentIndex(1); + break; + case FolderExists_Skip: + ui->comboBoxFolderColision->setCurrentIndex(2); + break; + case FolderExists_Rename: + ui->comboBoxFolderColision->setCurrentIndex(3); + break; + default: + ui->comboBoxFolderColision->setCurrentIndex(0); + break; + } } void copyEngine::setComboBoxFolderError(FileErrorAction action,bool changeComboBox) { - alwaysDoThisActionForFileError=action; - if(!changeComboBox || !uiIsInstalled) - return; - switch(action) - { - case FileError_Skip: - ui->comboBoxFolderError->setCurrentIndex(1); - break; - default: - ui->comboBoxFolderError->setCurrentIndex(0); - break; - } + alwaysDoThisActionForFileError=action; + if(!changeComboBox || !uiIsInstalled) + return; + switch(action) + { + case FileError_Skip: + ui->comboBoxFolderError->setCurrentIndex(1); + break; + default: + ui->comboBoxFolderError->setCurrentIndex(0); + break; + } } void copyEngine::doChecksum_toggled(bool doChecksum) { - listThread->set_doChecksum(doChecksum); + listThread->set_doChecksum(doChecksum); } void copyEngine::checksumOnlyOnError_toggled(bool checksumOnlyOnError) { - listThread->set_checksumOnlyOnError(checksumOnlyOnError); + listThread->set_checksumOnlyOnError(checksumOnlyOnError); } void copyEngine::checksumIgnoreIfImpossible_toggled(bool checksumIgnoreIfImpossible) { - listThread->set_checksumIgnoreIfImpossible(checksumIgnoreIfImpossible); + listThread->set_checksumIgnoreIfImpossible(checksumIgnoreIfImpossible); } void copyEngine::osBuffer_toggled(bool osBuffer) { - listThread->set_osBuffer(osBuffer); - ui->osBufferLimit->setEnabled(ui->osBuffer->isChecked() && ui->osBufferLimited->isChecked()); + listThread->set_osBuffer(osBuffer); + ui->osBufferLimit->setEnabled(ui->osBuffer->isChecked() && ui->osBufferLimited->isChecked()); } void copyEngine::osBufferLimited_toggled(bool osBufferLimited) { - listThread->set_osBufferLimited(osBufferLimited); - ui->osBufferLimit->setEnabled(ui->osBuffer->isChecked() && ui->osBufferLimited->isChecked()); + listThread->set_osBufferLimited(osBufferLimited); + ui->osBufferLimit->setEnabled(ui->osBuffer->isChecked() && ui->osBufferLimited->isChecked()); } void copyEngine::osBufferLimit_editingFinished() { - emit send_osBufferLimit(ui->osBufferLimit->value()); + emit send_osBufferLimit(ui->osBufferLimit->value()); } void copyEngine::showFilterDialog() { - if(filters!=NULL) - filters->exec(); + if(filters!=NULL) + filters->exec(); } void copyEngine::sendNewFilters() { - if(filters!=NULL) - emit send_setFilters(filters->getInclude(),filters->getExclude()); + if(filters!=NULL) + emit send_setFilters(filters->getInclude(),filters->getExclude()); } void copyEngine::sendNewRenamingRules(QString firstRenamingRule,QString otherRenamingRule) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"new filter"); - this->firstRenamingRule=firstRenamingRule; - this->otherRenamingRule=otherRenamingRule; - emit send_sendNewRenamingRules(firstRenamingRule,otherRenamingRule); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"new filter"); + this->firstRenamingRule=firstRenamingRule; + this->otherRenamingRule=otherRenamingRule; + emit send_sendNewRenamingRules(firstRenamingRule,otherRenamingRule); } void copyEngine::showRenamingRules() { - if(renamingRules==NULL) - { - QMessageBox::critical(NULL,tr("Options error"),tr("Options engine is not loaded, can't access to the filters")); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"options not loaded"); - return; - } - renamingRules->exec(); + if(renamingRules==NULL) + { + QMessageBox::critical(NULL,tr("Options error"),tr("Options engine is not loaded, can't access to the filters")); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"options not loaded"); + return; + } + renamingRules->exec(); } void copyEngine::get_realBytesTransfered(quint64 realBytesTransfered) { - size_for_speed=realBytesTransfered; + size_for_speed=realBytesTransfered; } void copyEngine::newActionInProgess(EngineActionInProgress action) { - if(action==Idle) - { - timerProgression.stop(); - timerActionDone.stop(); - } - else - { - timerProgression.start(); - timerActionDone.start(); - } + if(action==Idle) + { + timerProgression.stop(); + timerActionDone.stop(); + } + else + { + timerProgression.start(); + timerActionDone.start(); + } } diff --git a/plugins/CopyEngine/Ultracopier/copyEngine.h b/plugins/CopyEngine/Ultracopier/copyEngine.h index 097cd271..ab0c1cb7 100755 --- a/plugins/CopyEngine/Ultracopier/copyEngine.h +++ b/plugins/CopyEngine/Ultracopier/copyEngine.h @@ -1,8 +1,7 @@ /** \file copyEngine.h \brief Define the copy engine \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include #include diff --git a/plugins/CopyEngine/Ultracopier/debugDialog.h b/plugins/CopyEngine/Ultracopier/debugDialog.h index 3d488576..9f547b8e 100644 --- a/plugins/CopyEngine/Ultracopier/debugDialog.h +++ b/plugins/CopyEngine/Ultracopier/debugDialog.h @@ -1,8 +1,7 @@ /** \file debugDialog.h \brief Define the dialog to have debug information \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef DEBUGDAILOG_H #define DEBUGDAILOG_H diff --git a/plugins/CopyEngine/Ultracopier/factory.cpp b/plugins/CopyEngine/Ultracopier/factory.cpp index 3a9c1ad8..e6d1cbf7 100644 --- a/plugins/CopyEngine/Ultracopier/factory.cpp +++ b/plugins/CopyEngine/Ultracopier/factory.cpp @@ -4,254 +4,256 @@ \version 0.3 \date 2010 */ -#include #include #include "factory.h" Factory::Factory() : - ui(new Ui::options()) + ui(new Ui::options()) { - qRegisterMetaType("TransferThread *"); - qRegisterMetaType("scanFileOrFolder *"); - qRegisterMetaType("EngineActionInProgress"); - qRegisterMetaType("DebugLevel"); - qRegisterMetaType("FileExistsAction"); - qRegisterMetaType("FolderExistsAction"); - qRegisterMetaType >("QList"); - qRegisterMetaType >("QList"); - qRegisterMetaType("CopyMode"); - qRegisterMetaType >("QList"); - qRegisterMetaType >("QList"); - - tempWidget=new QWidget(); - ui->setupUi(tempWidget); - errorFound=false; - optionsEngine=NULL; - filters=new Filters(tempWidget); - renamingRules=new RenamingRules(tempWidget); - #if defined (Q_OS_WIN32) - QFileInfoList temp=QDir::drives(); - for (int i = 0; i < temp.size(); ++i) { - mountSysPoint<(&QProcess::error), this,&Factory::error); - connect(&mount,static_cast(&QProcess::finished), this,&Factory::finished); - connect(&mount,&QProcess::readyReadStandardOutput, this,&Factory::readyReadStandardOutput); - connect(&mount,&QProcess::readyReadStandardError, this,&Factory::readyReadStandardError); - mount.start("mount"); - #endif - connect(ui->doRightTransfer, &QCheckBox::toggled, this,&Factory::setDoRightTransfer); - connect(ui->keepDate, &QCheckBox::toggled, this,&Factory::setKeepDate); - connect(ui->blockSize, static_cast(&QSpinBox::valueChanged), this,&Factory::setBlockSize); - connect(ui->autoStart, &QCheckBox::toggled, this,&Factory::setAutoStart); - connect(ui->doChecksum, &QCheckBox::toggled, this,&Factory::doChecksum_toggled); - connect(ui->checksumIgnoreIfImpossible, &QCheckBox::toggled, this,&Factory::checksumIgnoreIfImpossible_toggled); - connect(ui->checksumOnlyOnError, &QCheckBox::toggled, this,&Factory::checksumOnlyOnError_toggled); - connect(ui->osBuffer, &QCheckBox::toggled, this,&Factory::osBuffer_toggled); - connect(ui->osBufferLimited, &QCheckBox::toggled, this,&Factory::osBufferLimited_toggled); - connect(ui->osBufferLimit, &QSpinBox::editingFinished, this,&Factory::osBufferLimit_editingFinished); - - connect(filters,&Filters::sendNewFilters,this,&Factory::sendNewFilters); - connect(ui->filters,&QPushButton::clicked,this,&Factory::showFilterDialog); - connect(renamingRules,&RenamingRules::sendNewRenamingRules,this,&Factory::sendNewRenamingRules); - connect(ui->renamingRules,&QPushButton::clicked,this,&Factory::showRenamingRules); - - ui->osBufferLimit->setEnabled(ui->osBuffer->isChecked() && ui->osBufferLimited->isChecked()); + qRegisterMetaType("TransferThread *"); + qRegisterMetaType("scanFileOrFolder *"); + qRegisterMetaType("EngineActionInProgress"); + qRegisterMetaType("DebugLevel"); + qRegisterMetaType("FileExistsAction"); + qRegisterMetaType("FolderExistsAction"); + qRegisterMetaType >("QList"); + qRegisterMetaType >("QList"); + qRegisterMetaType("CopyMode"); + qRegisterMetaType >("QList"); + qRegisterMetaType >("QList"); + + tempWidget=new QWidget(); + ui->setupUi(tempWidget); + errorFound=false; + optionsEngine=NULL; + filters=new Filters(tempWidget); + renamingRules=new RenamingRules(tempWidget); + #if defined (Q_OS_WIN32) + QFileInfoList temp=QDir::drives(); + for (int i = 0; i < temp.size(); ++i) { + mountSysPoint<(&QProcess::error), this,&Factory::error); + connect(&mount,static_cast(&QProcess::finished), this,&Factory::finished); + connect(&mount,&QProcess::readyReadStandardOutput, this,&Factory::readyReadStandardOutput); + connect(&mount,&QProcess::readyReadStandardError, this,&Factory::readyReadStandardError); + mount.start("mount"); + #endif + connect(ui->doRightTransfer, &QCheckBox::toggled, this,&Factory::setDoRightTransfer); + connect(ui->keepDate, &QCheckBox::toggled, this,&Factory::setKeepDate); + connect(ui->blockSize, static_cast(&QSpinBox::valueChanged), this,&Factory::setBlockSize); + connect(ui->autoStart, &QCheckBox::toggled, this,&Factory::setAutoStart); + connect(ui->doChecksum, &QCheckBox::toggled, this,&Factory::doChecksum_toggled); + connect(ui->checksumIgnoreIfImpossible, &QCheckBox::toggled, this,&Factory::checksumIgnoreIfImpossible_toggled); + connect(ui->checksumOnlyOnError, &QCheckBox::toggled, this,&Factory::checksumOnlyOnError_toggled); + connect(ui->osBuffer, &QCheckBox::toggled, this,&Factory::osBuffer_toggled); + connect(ui->osBufferLimited, &QCheckBox::toggled, this,&Factory::osBufferLimited_toggled); + connect(ui->osBufferLimit, &QSpinBox::editingFinished, this,&Factory::osBufferLimit_editingFinished); + + connect(filters,&Filters::sendNewFilters,this,&Factory::sendNewFilters); + connect(ui->filters,&QPushButton::clicked,this,&Factory::showFilterDialog); + connect(renamingRules,&RenamingRules::sendNewRenamingRules,this,&Factory::sendNewRenamingRules); + connect(ui->renamingRules,&QPushButton::clicked,this,&Factory::showRenamingRules); + + ui->osBufferLimit->setEnabled(ui->osBuffer->isChecked() && ui->osBufferLimited->isChecked()); } Factory::~Factory() { - delete renamingRules; - delete filters; - delete ui; + delete renamingRules; + delete filters; + delete ui; } PluginInterface_CopyEngine * Factory::getInstance() { - copyEngine *realObject=new copyEngine(facilityEngine); - #ifdef ULTRACOPIER_PLUGIN_DEBUG - connect(realObject,©Engine::debugInformation,this,&Factory::debugInformation); - #endif - realObject->connectTheSignalsSlots(); - realObject->setDrive(mountSysPoint); - PluginInterface_CopyEngine * newTransferEngine=realObject; - connect(this,&Factory::reloadLanguage,realObject,©Engine::newLanguageLoaded); - realObject->setRightTransfer( optionsEngine->getOptionValue("doRightTransfer").toBool()); - realObject->setKeepDate( optionsEngine->getOptionValue("keepDate").toBool()); - realObject->setBlockSize( optionsEngine->getOptionValue("blockSize").toInt()); - realObject->setAutoStart( optionsEngine->getOptionValue("autoStart").toBool()); - realObject->on_comboBoxFolderColision_currentIndexChanged(ui->comboBoxFolderColision->currentIndex()); - realObject->on_comboBoxFolderError_currentIndexChanged(ui->comboBoxFolderError->currentIndex()); - realObject->setCheckDestinationFolderExists( optionsEngine->getOptionValue("checkDestinationFolder").toBool()); - - realObject->set_doChecksum(optionsEngine->getOptionValue("doChecksum").toBool()); - realObject->set_checksumIgnoreIfImpossible(optionsEngine->getOptionValue("checksumIgnoreIfImpossible").toBool()); - realObject->set_checksumOnlyOnError(optionsEngine->getOptionValue("checksumOnlyOnError").toBool()); - realObject->set_osBuffer(optionsEngine->getOptionValue("osBuffer").toBool()); - realObject->set_osBufferLimited(optionsEngine->getOptionValue("osBufferLimited").toBool()); - realObject->set_osBufferLimit(optionsEngine->getOptionValue("osBufferLimit").toUInt()); - realObject->set_setFilters(optionsEngine->getOptionValue("includeStrings").toStringList(), - optionsEngine->getOptionValue("includeOptions").toStringList(), - optionsEngine->getOptionValue("excludeStrings").toStringList(), - optionsEngine->getOptionValue("excludeOptions").toStringList() - ); - realObject->setRenamingRules(optionsEngine->getOptionValue("firstRenamingRule").toString(),optionsEngine->getOptionValue("otherRenamingRule").toString()); - return newTransferEngine; + copyEngine *realObject=new copyEngine(facilityEngine); + #ifdef ULTRACOPIER_PLUGIN_DEBUG + connect(realObject,©Engine::debugInformation,this,&Factory::debugInformation); + #endif + realObject->connectTheSignalsSlots(); + realObject->setDrive(mountSysPoint); + PluginInterface_CopyEngine * newTransferEngine=realObject; + connect(this,&Factory::reloadLanguage,realObject,©Engine::newLanguageLoaded); + realObject->setRightTransfer( optionsEngine->getOptionValue("doRightTransfer").toBool()); + realObject->setKeepDate( optionsEngine->getOptionValue("keepDate").toBool()); + realObject->setBlockSize( optionsEngine->getOptionValue("blockSize").toInt()); + realObject->setAutoStart( optionsEngine->getOptionValue("autoStart").toBool()); + realObject->on_comboBoxFolderColision_currentIndexChanged(ui->comboBoxFolderColision->currentIndex()); + realObject->on_comboBoxFolderError_currentIndexChanged(ui->comboBoxFolderError->currentIndex()); + realObject->setCheckDestinationFolderExists( optionsEngine->getOptionValue("checkDestinationFolder").toBool()); + + realObject->set_doChecksum(optionsEngine->getOptionValue("doChecksum").toBool()); + realObject->set_checksumIgnoreIfImpossible(optionsEngine->getOptionValue("checksumIgnoreIfImpossible").toBool()); + realObject->set_checksumOnlyOnError(optionsEngine->getOptionValue("checksumOnlyOnError").toBool()); + realObject->set_osBuffer(optionsEngine->getOptionValue("osBuffer").toBool()); + realObject->set_osBufferLimited(optionsEngine->getOptionValue("osBufferLimited").toBool()); + realObject->set_osBufferLimit(optionsEngine->getOptionValue("osBufferLimit").toUInt()); + realObject->set_setFilters(optionsEngine->getOptionValue("includeStrings").toStringList(), + optionsEngine->getOptionValue("includeOptions").toStringList(), + optionsEngine->getOptionValue("excludeStrings").toStringList(), + optionsEngine->getOptionValue("excludeOptions").toStringList() + ); + realObject->setRenamingRules(optionsEngine->getOptionValue("firstRenamingRule").toString(),optionsEngine->getOptionValue("otherRenamingRule").toString()); + return newTransferEngine; } void Factory::setResources(OptionInterface * options,const QString &writePath,const QString &pluginPath,FacilityInterface * facilityInterface,const bool &portableVersion) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start, writePath: "+writePath+", pluginPath:"+pluginPath); - this->facilityEngine=facilityInterface; - Q_UNUSED(portableVersion); - #ifndef ULTRACOPIER_PLUGIN_DEBUG - Q_UNUSED(writePath); - Q_UNUSED(pluginPath); - #endif - #if ! defined (Q_CC_GNU) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"Unable to change date time of files, only gcc is supported"); - #endif - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,COMPILERINFO); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"MAX BUFFER BLOCK: "+QString::number(ULTRACOPIER_PLUGIN_MAXBUFFERBLOCK)); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"MIN TIMER INTERVAL: "+QString::number(ULTRACOPIER_PLUGIN_MINTIMERINTERVAL)); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"MAX TIMER INTERVAL: "+QString::number(ULTRACOPIER_PLUGIN_MAXTIMERINTERVAL)); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"NUM SEM SPEED MANAGEMENT: "+QString::number(ULTRACOPIER_PLUGIN_NUMSEMSPEEDMANAGEMENT)); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"MAX PARALLEL INODE OPT: "+QString::number(ULTRACOPIER_PLUGIN_MAXPARALLELINODEOPT)); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"MAX PARALLEL TRANFER: "+QString::number(ULTRACOPIER_PLUGIN_MAXPARALLELTRANFER)); - #if defined (ULTRACOPIER_PLUGIN_CHECKLISTTYPE) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"CHECK LIST TYPE set"); - #else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"CHECK LIST TYPE not set"); - #endif - if(options!=NULL) - { - optionsEngine=options; - //load the options - QList > KeysList; - KeysList.append(qMakePair(QString("doRightTransfer"),QVariant(true))); - KeysList.append(qMakePair(QString("keepDate"),QVariant(true))); - KeysList.append(qMakePair(QString("blockSize"),QVariant(1024)));//1024KB as default - KeysList.append(qMakePair(QString("autoStart"),QVariant(true))); - KeysList.append(qMakePair(QString("folderError"),QVariant(0))); - KeysList.append(qMakePair(QString("folderColision"),QVariant(0))); - KeysList.append(qMakePair(QString("checkDestinationFolder"),QVariant(true))); - KeysList.append(qMakePair(QString("includeStrings"),QVariant(QStringList()))); - KeysList.append(qMakePair(QString("includeOptions"),QVariant(QStringList()))); - KeysList.append(qMakePair(QString("excludeStrings"),QVariant(QStringList()))); - KeysList.append(qMakePair(QString("excludeOptions"),QVariant(QStringList()))); - KeysList.append(qMakePair(QString("doChecksum"),QVariant(true))); - KeysList.append(qMakePair(QString("checksumIgnoreIfImpossible"),QVariant(true))); - KeysList.append(qMakePair(QString("checksumOnlyOnError"),QVariant(true))); - KeysList.append(qMakePair(QString("osBuffer"),QVariant(true))); - KeysList.append(qMakePair(QString("firstRenamingRule"),QVariant(""))); - KeysList.append(qMakePair(QString("otherRenamingRule"),QVariant(""))); - #ifdef Q_OS_WIN32 - KeysList.append(qMakePair(QString("osBufferLimited"),QVariant(true))); - #else - KeysList.append(qMakePair(QString("osBufferLimited"),QVariant(false))); - #endif - KeysList.append(qMakePair(QString("osBufferLimit"),QVariant(512))); - optionsEngine->addOptionGroup(KeysList); - #if ! defined (Q_CC_GNU) - ui->keepDate->setEnabled(false); - ui->keepDate->setToolTip("Not supported with this compiler"); - #endif - ui->doRightTransfer->setChecked(optionsEngine->getOptionValue("doRightTransfer").toBool()); - ui->keepDate->setChecked(optionsEngine->getOptionValue("keepDate").toBool()); - ui->blockSize->setValue(optionsEngine->getOptionValue("blockSize").toUInt()); - ui->autoStart->setChecked(optionsEngine->getOptionValue("autoStart").toBool()); - ui->comboBoxFolderError->setCurrentIndex(optionsEngine->getOptionValue("folderError").toUInt()); - ui->comboBoxFolderColision->setCurrentIndex(optionsEngine->getOptionValue("folderColision").toUInt()); - ui->checkBoxDestinationFolderExists->setChecked(optionsEngine->getOptionValue("checkDestinationFolder").toBool()); - ui->doChecksum->setChecked(optionsEngine->getOptionValue("doChecksum").toBool()); - ui->checksumIgnoreIfImpossible->setChecked(optionsEngine->getOptionValue("checksumIgnoreIfImpossible").toBool()); - ui->checksumOnlyOnError->setChecked(optionsEngine->getOptionValue("checksumOnlyOnError").toBool()); - ui->osBuffer->setChecked(optionsEngine->getOptionValue("osBuffer").toBool()); - ui->osBufferLimited->setChecked(optionsEngine->getOptionValue("osBufferLimited").toBool()); - ui->osBufferLimit->setValue(optionsEngine->getOptionValue("osBufferLimit").toUInt()); - filters->setFilters(optionsEngine->getOptionValue("includeStrings").toStringList(), - optionsEngine->getOptionValue("includeOptions").toStringList(), - optionsEngine->getOptionValue("excludeStrings").toStringList(), - optionsEngine->getOptionValue("excludeOptions").toStringList() - ); - renamingRules->setRenamingRules(optionsEngine->getOptionValue("firstRenamingRule").toString(),optionsEngine->getOptionValue("otherRenamingRule").toString()); - } + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start, writePath: "+writePath+", pluginPath:"+pluginPath); + this->facilityEngine=facilityInterface; + Q_UNUSED(portableVersion); + #ifndef ULTRACOPIER_PLUGIN_DEBUG + Q_UNUSED(writePath); + Q_UNUSED(pluginPath); + #endif + #if ! defined (Q_CC_GNU) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"Unable to change date time of files, only gcc is supported"); + #endif + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,COMPILERINFO); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"MAX BUFFER BLOCK: "+QString::number(ULTRACOPIER_PLUGIN_MAXBUFFERBLOCK)); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"MIN TIMER INTERVAL: "+QString::number(ULTRACOPIER_PLUGIN_MINTIMERINTERVAL)); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"MAX TIMER INTERVAL: "+QString::number(ULTRACOPIER_PLUGIN_MAXTIMERINTERVAL)); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"NUM SEM SPEED MANAGEMENT: "+QString::number(ULTRACOPIER_PLUGIN_NUMSEMSPEEDMANAGEMENT)); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"MAX PARALLEL INODE OPT: "+QString::number(ULTRACOPIER_PLUGIN_MAXPARALLELINODEOPT)); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"MAX PARALLEL TRANFER: "+QString::number(ULTRACOPIER_PLUGIN_MAXPARALLELTRANFER)); + #if defined (ULTRACOPIER_PLUGIN_CHECKLISTTYPE) + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"CHECK LIST TYPE set"); + #else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Information,"CHECK LIST TYPE not set"); + #endif + if(options!=NULL) + { + optionsEngine=options; + //load the options + QList > KeysList; + KeysList.append(qMakePair(QString("doRightTransfer"),QVariant(false))); + KeysList.append(qMakePair(QString("keepDate"),QVariant(false))); + KeysList.append(qMakePair(QString("blockSize"),QVariant(1024)));//1024KB as default + KeysList.append(qMakePair(QString("autoStart"),QVariant(true))); + KeysList.append(qMakePair(QString("folderError"),QVariant(0))); + KeysList.append(qMakePair(QString("folderColision"),QVariant(0))); + KeysList.append(qMakePair(QString("checkDestinationFolder"),QVariant(true))); + KeysList.append(qMakePair(QString("includeStrings"),QVariant(QStringList()))); + KeysList.append(qMakePair(QString("includeOptions"),QVariant(QStringList()))); + KeysList.append(qMakePair(QString("excludeStrings"),QVariant(QStringList()))); + KeysList.append(qMakePair(QString("excludeOptions"),QVariant(QStringList()))); + KeysList.append(qMakePair(QString("doChecksum"),QVariant(false))); + KeysList.append(qMakePair(QString("checksumIgnoreIfImpossible"),QVariant(true))); + KeysList.append(qMakePair(QString("checksumOnlyOnError"),QVariant(true))); + KeysList.append(qMakePair(QString("osBuffer"),QVariant(true))); + KeysList.append(qMakePair(QString("firstRenamingRule"),QVariant(""))); + KeysList.append(qMakePair(QString("otherRenamingRule"),QVariant(""))); + #ifdef Q_OS_WIN32 + KeysList.append(qMakePair(QString("osBufferLimited"),QVariant(true))); + #else + KeysList.append(qMakePair(QString("osBufferLimited"),QVariant(false))); + #endif + KeysList.append(qMakePair(QString("osBufferLimit"),QVariant(512))); + optionsEngine->addOptionGroup(KeysList); + #if ! defined (Q_CC_GNU) + ui->keepDate->setEnabled(false); + ui->keepDate->setToolTip("Not supported with this compiler"); + #endif + ui->doRightTransfer->setChecked(optionsEngine->getOptionValue("doRightTransfer").toBool()); + ui->keepDate->setChecked(optionsEngine->getOptionValue("keepDate").toBool()); + ui->blockSize->setValue(optionsEngine->getOptionValue("blockSize").toUInt()); + ui->autoStart->setChecked(optionsEngine->getOptionValue("autoStart").toBool()); + ui->comboBoxFolderError->setCurrentIndex(optionsEngine->getOptionValue("folderError").toUInt()); + ui->comboBoxFolderColision->setCurrentIndex(optionsEngine->getOptionValue("folderColision").toUInt()); + ui->checkBoxDestinationFolderExists->setChecked(optionsEngine->getOptionValue("checkDestinationFolder").toBool()); + ui->doChecksum->setChecked(optionsEngine->getOptionValue("doChecksum").toBool()); + ui->checksumIgnoreIfImpossible->setChecked(optionsEngine->getOptionValue("checksumIgnoreIfImpossible").toBool()); + ui->checksumOnlyOnError->setChecked(optionsEngine->getOptionValue("checksumOnlyOnError").toBool()); + ui->osBuffer->setChecked(optionsEngine->getOptionValue("osBuffer").toBool()); + ui->osBufferLimited->setChecked(optionsEngine->getOptionValue("osBufferLimited").toBool()); + ui->osBufferLimit->setValue(optionsEngine->getOptionValue("osBufferLimit").toUInt()); + //ui->autoStart->setChecked(optionsEngine->getOptionValue("autoStart").toBool());//moved from options(), wrong previous place + filters->setFilters(optionsEngine->getOptionValue("includeStrings").toStringList(), + optionsEngine->getOptionValue("includeOptions").toStringList(), + optionsEngine->getOptionValue("excludeStrings").toStringList(), + optionsEngine->getOptionValue("excludeOptions").toStringList() + ); + renamingRules->setRenamingRules(optionsEngine->getOptionValue("firstRenamingRule").toString(),optionsEngine->getOptionValue("otherRenamingRule").toString()); + ui->checksumOnlyOnError->setEnabled(ui->doChecksum->isChecked()); + ui->checksumIgnoreIfImpossible->setEnabled(ui->doChecksum->isChecked()); + } } QStringList Factory::supportedProtocolsForTheSource() { - return QStringList() << "file"; + return QStringList() << "file"; } QStringList Factory::supportedProtocolsForTheDestination() { - return QStringList() << "file"; + return QStringList() << "file"; } CopyType Factory::getCopyType() { - return FileAndFolder; + return FileAndFolder; } TransferListOperation Factory::getTransferListOperation() { - return TransferListOperation_ImportExport; + return TransferListOperation_ImportExport; } bool Factory::canDoOnlyCopy() { - return false; + return false; } void Factory::error(QProcess::ProcessError error) { - #ifndef ULTRACOPIER_PLUGIN_DEBUG - Q_UNUSED(error) - #endif - errorFound=true; - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"have detected error: "+QString::number(error)); + #ifndef ULTRACOPIER_PLUGIN_DEBUG + Q_UNUSED(error) + #endif + errorFound=true; + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"have detected error: "+QString::number(error)); } void Factory::finished(int exitCode, QProcess::ExitStatus exitStatus) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"exitCode: "+QString::number(exitCode)+", exitStatus: "+QString::number(exitStatus)); - #ifndef ULTRACOPIER_PLUGIN_DEBUG - Q_UNUSED(exitCode) - Q_UNUSED(exitStatus) - #endif - if(!StandardError.isEmpty()) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"have finished with text on error output: "+StandardError); - else if(errorFound) - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Warning,"have finished with error and no text"); - { - QStringList tempList=StandardOutput.split(QRegularExpression("[\n\r]+")); - int index=0; - while(indexautoStart->setChecked(optionsEngine->getOptionValue("autoStart").toBool()); - return tempWidget; + + return tempWidget; } void Factory::setDoRightTransfer(bool doRightTransfer) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); - if(optionsEngine!=NULL) - optionsEngine->setOptionValue("doRightTransfer",doRightTransfer); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue("doRightTransfer",doRightTransfer); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); } void Factory::setKeepDate(bool keepDate) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); - if(optionsEngine!=NULL) - optionsEngine->setOptionValue("keepDate",keepDate); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue("keepDate",keepDate); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); } void Factory::setBlockSize(int blockSize) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); - if(optionsEngine!=NULL) - optionsEngine->setOptionValue("blockSize",blockSize); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue("blockSize",blockSize); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); } void Factory::setAutoStart(bool autoStart) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); - if(optionsEngine!=NULL) - optionsEngine->setOptionValue("autoStart",autoStart); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue("autoStart",autoStart); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); } void Factory::newLanguageLoaded() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start, retranslate the widget options"); - ui->retranslateUi(tempWidget); - if(optionsEngine!=NULL) - { - filters->newLanguageLoaded(); - renamingRules->newLanguageLoaded(); - } - emit reloadLanguage(); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start, retranslate the widget options"); + ui->retranslateUi(tempWidget); + if(optionsEngine!=NULL) + { + filters->newLanguageLoaded(); + renamingRules->newLanguageLoaded(); + } + emit reloadLanguage(); } void Factory::doChecksum_toggled(bool doChecksum) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); - if(optionsEngine!=NULL) - optionsEngine->setOptionValue("doChecksum",doChecksum); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue("doChecksum",doChecksum); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); } void Factory::checksumOnlyOnError_toggled(bool checksumOnlyOnError) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); - if(optionsEngine!=NULL) - optionsEngine->setOptionValue("checksumOnlyOnError",checksumOnlyOnError); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue("checksumOnlyOnError",checksumOnlyOnError); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); } void Factory::osBuffer_toggled(bool osBuffer) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); - if(optionsEngine!=NULL) - optionsEngine->setOptionValue("osBuffer",osBuffer); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); - ui->osBufferLimit->setEnabled(ui->osBuffer->isChecked() && ui->osBufferLimited->isChecked()); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue("osBuffer",osBuffer); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + ui->osBufferLimit->setEnabled(ui->osBuffer->isChecked() && ui->osBufferLimited->isChecked()); } void Factory::osBufferLimited_toggled(bool osBufferLimited) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); - if(optionsEngine!=NULL) - optionsEngine->setOptionValue("osBufferLimited",osBufferLimited); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); - ui->osBufferLimit->setEnabled(ui->osBuffer->isChecked() && ui->osBufferLimited->isChecked()); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue("osBufferLimited",osBufferLimited); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + ui->osBufferLimit->setEnabled(ui->osBuffer->isChecked() && ui->osBufferLimited->isChecked()); } void Factory::osBufferLimit_editingFinished() { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the spinbox have changed"); - if(optionsEngine!=NULL) - optionsEngine->setOptionValue("osBufferLimit",ui->osBufferLimit->value()); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the spinbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue("osBufferLimit",ui->osBufferLimit->value()); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); } void Factory::showFilterDialog() { - if(optionsEngine==NULL) - { - QMessageBox::critical(NULL,tr("Options error"),tr("Options engine is not loaded, can't access to the filters")); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"options not loaded"); - return; - } - filters->exec(); + if(optionsEngine==NULL) + { + QMessageBox::critical(NULL,tr("Options error"),tr("Options engine is not loaded, can't access to the filters")); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"options not loaded"); + return; + } + filters->exec(); } void Factory::sendNewFilters(const QStringList &includeStrings,const QStringList &includeOptions,const QStringList &excludeStrings,const QStringList &excludeOptions) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"new filter"); - if(optionsEngine!=NULL) - { - optionsEngine->setOptionValue("includeStrings",includeStrings); - optionsEngine->setOptionValue("includeOptions",includeOptions); - optionsEngine->setOptionValue("excludeStrings",excludeStrings); - optionsEngine->setOptionValue("excludeOptions",excludeOptions); - } - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"new filter"); + if(optionsEngine!=NULL) + { + optionsEngine->setOptionValue("includeStrings",includeStrings); + optionsEngine->setOptionValue("includeOptions",includeOptions); + optionsEngine->setOptionValue("excludeStrings",excludeStrings); + optionsEngine->setOptionValue("excludeOptions",excludeOptions); + } + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); } void Factory::sendNewRenamingRules(QString firstRenamingRule,QString otherRenamingRule) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"new filter"); - if(optionsEngine!=NULL) - { - optionsEngine->setOptionValue("firstRenamingRule",firstRenamingRule); - optionsEngine->setOptionValue("otherRenamingRule",otherRenamingRule); - } - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"new filter"); + if(optionsEngine!=NULL) + { + optionsEngine->setOptionValue("firstRenamingRule",firstRenamingRule); + optionsEngine->setOptionValue("otherRenamingRule",otherRenamingRule); + } + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); } void Factory::showRenamingRules() { - if(optionsEngine==NULL) - { - QMessageBox::critical(NULL,tr("Options error"),tr("Options engine is not loaded, can't access to the filters")); - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"options not loaded"); - return; - } - renamingRules->exec(); + if(optionsEngine==NULL) + { + QMessageBox::critical(NULL,tr("Options error"),tr("Options engine is not loaded, can't access to the filters")); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"options not loaded"); + return; + } + renamingRules->exec(); } void Factory::checksumIgnoreIfImpossible_toggled(bool checksumIgnoreIfImpossible) { - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); - if(optionsEngine!=NULL) - optionsEngine->setOptionValue("checksumIgnoreIfImpossible",checksumIgnoreIfImpossible); - else - ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"the checkbox have changed"); + if(optionsEngine!=NULL) + optionsEngine->setOptionValue("checksumIgnoreIfImpossible",checksumIgnoreIfImpossible); + else + ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Critical,"internal error, crash prevented"); } diff --git a/plugins/CopyEngine/Ultracopier/factory.h b/plugins/CopyEngine/Ultracopier/factory.h index ae5d987c..6c08daec 100644 --- a/plugins/CopyEngine/Ultracopier/factory.h +++ b/plugins/CopyEngine/Ultracopier/factory.h @@ -1,8 +1,7 @@ /** \file factory.h \brief Define the factory to create new instance \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include #include @@ -22,71 +21,71 @@ #define FACTORY_H namespace Ui { - class options; + class options; } /** \brief to generate copy engine instance */ class Factory : public PluginInterface_CopyEngineFactory { - Q_OBJECT - Q_PLUGIN_METADATA(IID "first-world.info.ultracopier.PluginInterface.CopyEngineFactory/0.4.0.0" FILE "plugin.json") - Q_INTERFACES(PluginInterface_CopyEngineFactory) + Q_OBJECT + Q_PLUGIN_METADATA(IID "first-world.info.ultracopier.PluginInterface.CopyEngineFactory/0.4.0.0" FILE "plugin.json") + Q_INTERFACES(PluginInterface_CopyEngineFactory) public: - Factory(); - ~Factory(); - /// \brief to return the instance of the copy engine - PluginInterface_CopyEngine * getInstance(); - /// \brief set the resources, to store options, to have facilityInterface - void setResources(OptionInterface * options,const QString &writePath,const QString &pluginPath,FacilityInterface * facilityInterface,const bool &portableVersion); - //get mode allowed - /// \brief define if can copy file, folder or both - CopyType getCopyType(); - /// \brief to return which kind of transfer list operation is supported - TransferListOperation getTransferListOperation(); - /// \brief define if can only copy, or copy and move - bool canDoOnlyCopy(); - /// \brief to get the supported protocols for the source - QStringList supportedProtocolsForTheSource(); - /// \brief to get the supported protocols for the destination - QStringList supportedProtocolsForTheDestination(); - /// \brief to get the options of the copy engine - QWidget * options(); + Factory(); + ~Factory(); + /// \brief to return the instance of the copy engine + PluginInterface_CopyEngine * getInstance(); + /// \brief set the resources, to store options, to have facilityInterface + void setResources(OptionInterface * options,const QString &writePath,const QString &pluginPath,FacilityInterface * facilityInterface,const bool &portableVersion); + //get mode allowed + /// \brief define if can copy file, folder or both + CopyType getCopyType(); + /// \brief to return which kind of transfer list operation is supported + TransferListOperation getTransferListOperation(); + /// \brief define if can only copy, or copy and move + bool canDoOnlyCopy(); + /// \brief to get the supported protocols for the source + QStringList supportedProtocolsForTheSource(); + /// \brief to get the supported protocols for the destination + QStringList supportedProtocolsForTheDestination(); + /// \brief to get the options of the copy engine + QWidget * options(); private: - Ui::options *ui; - QWidget* tempWidget; - OptionInterface * optionsEngine; - QStringList mountSysPoint; - QProcess mount; - QString StandardError; - QString StandardOutput; - bool errorFound; - FacilityInterface * facilityEngine; - Filters *filters; - RenamingRules *renamingRules; + Ui::options *ui; + QWidget* tempWidget; + OptionInterface * optionsEngine; + QStringList mountSysPoint; + QProcess mount; + QString StandardError; + QString StandardOutput; + bool errorFound; + FacilityInterface * facilityEngine; + Filters *filters; + RenamingRules *renamingRules; private slots: - void error(QProcess::ProcessError error); - void finished(int exitCode, QProcess::ExitStatus exitStatus); - void readyReadStandardError(); - void readyReadStandardOutput(); - void setDoRightTransfer(bool doRightTransfer); - void setKeepDate(bool keepDate); - void setBlockSize(int blockSize); - void setAutoStart(bool autoStart); - void showFilterDialog(); - void sendNewFilters(const QStringList &includeStrings,const QStringList &includeOptions,const QStringList &excludeStrings,const QStringList &excludeOptions); - void doChecksum_toggled(bool); - void checksumOnlyOnError_toggled(bool); - void osBuffer_toggled(bool); - void osBufferLimited_toggled(bool); - void osBufferLimit_editingFinished(); - void checksumIgnoreIfImpossible_toggled(bool); - void sendNewRenamingRules(QString firstRenamingRule,QString otherRenamingRule); - void showRenamingRules(); + void error(QProcess::ProcessError error); + void finished(int exitCode, QProcess::ExitStatus exitStatus); + void readyReadStandardError(); + void readyReadStandardOutput(); + void setDoRightTransfer(bool doRightTransfer); + void setKeepDate(bool keepDate); + void setBlockSize(int blockSize); + void setAutoStart(bool autoStart); + void showFilterDialog(); + void sendNewFilters(const QStringList &includeStrings,const QStringList &includeOptions,const QStringList &excludeStrings,const QStringList &excludeOptions); + void doChecksum_toggled(bool); + void checksumOnlyOnError_toggled(bool); + void osBuffer_toggled(bool); + void osBufferLimited_toggled(bool); + void osBufferLimit_editingFinished(); + void checksumIgnoreIfImpossible_toggled(bool); + void sendNewRenamingRules(QString firstRenamingRule,QString otherRenamingRule); + void showRenamingRules(); public slots: - void resetOptions(); - void newLanguageLoaded(); + void resetOptions(); + void newLanguageLoaded(); signals: - void reloadLanguage(); + void reloadLanguage(); }; #endif // FACTORY_H diff --git a/plugins/CopyEngine/Ultracopier/fileErrorDialog.h b/plugins/CopyEngine/Ultracopier/fileErrorDialog.h index b14fe875..c255beab 100644 --- a/plugins/CopyEngine/Ultracopier/fileErrorDialog.h +++ b/plugins/CopyEngine/Ultracopier/fileErrorDialog.h @@ -1,8 +1,7 @@ /** \file fileErrorDialog.h \brief Define the dialog error on the file \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include #include diff --git a/plugins/CopyEngine/Ultracopier/fileExistsDialog.h b/plugins/CopyEngine/Ultracopier/fileExistsDialog.h index 75af1902..ff394aa5 100644 --- a/plugins/CopyEngine/Ultracopier/fileExistsDialog.h +++ b/plugins/CopyEngine/Ultracopier/fileExistsDialog.h @@ -1,8 +1,7 @@ /** \file fileExistsDialog.h \brief Define the dialog when file already exists \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include #include diff --git a/plugins/CopyEngine/Ultracopier/fileIsSameDialog.h b/plugins/CopyEngine/Ultracopier/fileIsSameDialog.h index fa487557..4429b901 100644 --- a/plugins/CopyEngine/Ultracopier/fileIsSameDialog.h +++ b/plugins/CopyEngine/Ultracopier/fileIsSameDialog.h @@ -1,8 +1,7 @@ /** \file fileIsSameDialog.h \brief Define the dialog when file is same \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include #include diff --git a/plugins/CopyEngine/Ultracopier/folderExistsDialog.h b/plugins/CopyEngine/Ultracopier/folderExistsDialog.h index 6d612f1c..6947c385 100644 --- a/plugins/CopyEngine/Ultracopier/folderExistsDialog.h +++ b/plugins/CopyEngine/Ultracopier/folderExistsDialog.h @@ -1,8 +1,7 @@ /** \file folderExistsDialog.h \brief Define the dialog when file exists \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef FOLDERISSAMEDIALOG_H #define FOLDERISSAMEDIALOG_H diff --git a/plugins/CopyEngine/Ultracopier/options.ui b/plugins/CopyEngine/Ultracopier/options.ui index 21d4d7f4..3cb678f8 100644 --- a/plugins/CopyEngine/Ultracopier/options.ui +++ b/plugins/CopyEngine/Ultracopier/options.ui @@ -129,17 +129,10 @@ - - - false - - + - - false - Only after error @@ -147,23 +140,20 @@ - - false - Ignore if impossible - - - false - - + - + + + true + + diff --git a/plugins/CopyEngine/Ultracopier/scanFileOrFolder.h b/plugins/CopyEngine/Ultracopier/scanFileOrFolder.h index 0e4c5843..0188da2a 100644 --- a/plugins/CopyEngine/Ultracopier/scanFileOrFolder.h +++ b/plugins/CopyEngine/Ultracopier/scanFileOrFolder.h @@ -1,8 +1,7 @@ /** \file scanFileOrFolder.h \brief Thread changed to list recursively the folder \author alpha_one_x86 -\version 0.3 -\date 2011 */ +\licence GPL3, see the file COPYING */ #include #include diff --git a/plugins/Listener/catchcopy-v0002/DebugEngineMacro.h b/plugins/Listener/catchcopy-v0002/DebugEngineMacro.h index a3dd6484..3cb0aaef 100644 --- a/plugins/Listener/catchcopy-v0002/DebugEngineMacro.h +++ b/plugins/Listener/catchcopy-v0002/DebugEngineMacro.h @@ -1,8 +1,7 @@ /** \file DebugEngineMacro.h \brief Define the macro for the debug \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef DEBUGENGINEMACRO_H #define DEBUGENGINEMACRO_H diff --git a/plugins/Listener/catchcopy-v0002/Environment.h b/plugins/Listener/catchcopy-v0002/Environment.h index 94fd1049..265a5a69 100644 --- a/plugins/Listener/catchcopy-v0002/Environment.h +++ b/plugins/Listener/catchcopy-v0002/Environment.h @@ -1,8 +1,7 @@ /** \file Environment.h \brief Define the environment variable and global function \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include "Variable.h" /// \brief The global include diff --git a/plugins/Listener/catchcopy-v0002/Variable.h b/plugins/Listener/catchcopy-v0002/Variable.h index 8179c938..963d0c81 100644 --- a/plugins/Listener/catchcopy-v0002/Variable.h +++ b/plugins/Listener/catchcopy-v0002/Variable.h @@ -1,8 +1,7 @@ /** \file Variable.h \brief Define the environment variable \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef VARIABLE_H #define VARIABLE_H diff --git a/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ClientCatchcopy.h b/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ClientCatchcopy.h index 278b0cd0..4c15890d 100755 --- a/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ClientCatchcopy.h +++ b/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ClientCatchcopy.h @@ -1,8 +1,7 @@ /** \file ClientCatchcopy.h \brief Define the catchcopy client \author alpha_one_x86 -\version 0002 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef CLIENTCATCHCOPY_H #define CLIENTCATCHCOPY_H diff --git a/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.h b/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.h index 623c668d..2321a14b 100755 --- a/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.h +++ b/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.h @@ -1,8 +1,7 @@ /** \file ExtraSocketCatchcopy.h \brief Define the socket of catchcopy \author alpha_one_x86 -\version 0002 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef EXTRASOCKETCATCHCOPY_H #define EXTRASOCKETCATCHCOPY_H diff --git a/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ServerCatchcopy.h b/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ServerCatchcopy.h index 123f835e..f2c41ade 100755 --- a/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ServerCatchcopy.h +++ b/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ServerCatchcopy.h @@ -1,8 +1,7 @@ /** \file ServerCatchcopy.h \brief Define the server of catchcopy \author alpha_one_x86 -\version 0002 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef SERVERCATCHCOPY_H #define SERVERCATCHCOPY_H diff --git a/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/VariablesCatchcopy.h b/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/VariablesCatchcopy.h index ce73aeec..135c087a 100755 --- a/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/VariablesCatchcopy.h +++ b/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/VariablesCatchcopy.h @@ -1,8 +1,7 @@ /** \file VariablesCatchcopy.h \brief Define the variable for catchcopy \author alpha_one_x86 -\version 0002 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef VARIABLECATCHCOPY_H #define VARIABLECATCHCOPY_H diff --git a/plugins/Listener/catchcopy-v0002/listener.cpp b/plugins/Listener/catchcopy-v0002/listener.cpp index 856483f9..1ac66288 100755 --- a/plugins/Listener/catchcopy-v0002/listener.cpp +++ b/plugins/Listener/catchcopy-v0002/listener.cpp @@ -1,5 +1,3 @@ -#include - #include "listener.h" CatchCopyPlugin::CatchCopyPlugin() diff --git a/plugins/Listener/catchcopy-v0002/listener.h b/plugins/Listener/catchcopy-v0002/listener.h index 08babfb0..8d2b2fbf 100755 --- a/plugins/Listener/catchcopy-v0002/listener.h +++ b/plugins/Listener/catchcopy-v0002/listener.h @@ -1,8 +1,7 @@ /** \file listener.h \brief Define the server compatible with Ultracopier interface \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef SERVER_H #define SERVER_H diff --git a/plugins/Listener/dbus/DebugEngineMacro.h b/plugins/Listener/dbus/DebugEngineMacro.h index a3dd6484..3cb0aaef 100644 --- a/plugins/Listener/dbus/DebugEngineMacro.h +++ b/plugins/Listener/dbus/DebugEngineMacro.h @@ -1,8 +1,7 @@ /** \file DebugEngineMacro.h \brief Define the macro for the debug \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef DEBUGENGINEMACRO_H #define DEBUGENGINEMACRO_H diff --git a/plugins/Listener/dbus/Environment.h b/plugins/Listener/dbus/Environment.h index 94fd1049..265a5a69 100644 --- a/plugins/Listener/dbus/Environment.h +++ b/plugins/Listener/dbus/Environment.h @@ -1,8 +1,7 @@ /** \file Environment.h \brief Define the environment variable and global function \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include "Variable.h" /// \brief The global include diff --git a/plugins/Listener/dbus/Variable.h b/plugins/Listener/dbus/Variable.h index 8179c938..963d0c81 100644 --- a/plugins/Listener/dbus/Variable.h +++ b/plugins/Listener/dbus/Variable.h @@ -1,8 +1,7 @@ /** \file Variable.h \brief Define the environment variable \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef VARIABLE_H #define VARIABLE_H diff --git a/plugins/Listener/dbus/listener.cpp b/plugins/Listener/dbus/listener.cpp index 1fe6c19c..7d04190b 100755 --- a/plugins/Listener/dbus/listener.cpp +++ b/plugins/Listener/dbus/listener.cpp @@ -1,5 +1,3 @@ -#include - #include "listener.h" CatchCopyPlugin::CatchCopyPlugin() diff --git a/plugins/Listener/dbus/listener.h b/plugins/Listener/dbus/listener.h index 7c408b69..6c487110 100755 --- a/plugins/Listener/dbus/listener.h +++ b/plugins/Listener/dbus/listener.h @@ -1,8 +1,7 @@ /** \file listener.h \brief Define the server compatible with Ultracopier interface \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef SERVER_H #define SERVER_H diff --git a/plugins/PluginLoader/catchcopy-v0002/DebugEngineMacro.h b/plugins/PluginLoader/catchcopy-v0002/DebugEngineMacro.h index ad08d4fa..076e8ff0 100755 --- a/plugins/PluginLoader/catchcopy-v0002/DebugEngineMacro.h +++ b/plugins/PluginLoader/catchcopy-v0002/DebugEngineMacro.h @@ -1,8 +1,7 @@ /** \file DebugEngineMacro.h \brief Define the macro for the debug \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef DEBUGENGINEMACRO_H #define DEBUGENGINEMACRO_H diff --git a/plugins/PluginLoader/catchcopy-v0002/Environment.h b/plugins/PluginLoader/catchcopy-v0002/Environment.h index 94fd1049..265a5a69 100755 --- a/plugins/PluginLoader/catchcopy-v0002/Environment.h +++ b/plugins/PluginLoader/catchcopy-v0002/Environment.h @@ -1,8 +1,7 @@ /** \file Environment.h \brief Define the environment variable and global function \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include "Variable.h" /// \brief The global include diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/ar/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/ar/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/ar/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/de/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/de/translation.qm new file mode 100644 index 00000000..2f1d7e19 Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/de/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/el/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/el/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/el/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/es/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/es/translation.qm new file mode 100644 index 00000000..543b9c06 Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/es/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/fr/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/fr/translation.qm new file mode 100644 index 00000000..a4a861e5 Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/fr/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/hi/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/hi/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/hi/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/id/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/id/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/id/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/it/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/it/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/it/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/ja/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/ja/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/ja/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/ko/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/ko/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/ko/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/nl/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/nl/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/nl/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/no/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/no/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/no/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/pl/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/pl/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/pl/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/pt/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/pt/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/pt/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/ru/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/ru/translation.qm new file mode 100644 index 00000000..00c97030 Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/ru/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/th/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/th/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/th/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/tr/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/tr/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/tr/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Languages/zh/translation.qm b/plugins/PluginLoader/catchcopy-v0002/Languages/zh/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/PluginLoader/catchcopy-v0002/Languages/zh/translation.qm differ diff --git a/plugins/PluginLoader/catchcopy-v0002/Variable.h b/plugins/PluginLoader/catchcopy-v0002/Variable.h index 8179c938..963d0c81 100755 --- a/plugins/PluginLoader/catchcopy-v0002/Variable.h +++ b/plugins/PluginLoader/catchcopy-v0002/Variable.h @@ -1,8 +1,7 @@ /** \file Variable.h \brief Define the environment variable \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef VARIABLE_H #define VARIABLE_H diff --git a/plugins/PluginLoader/catchcopy-v0002/pluginLoader.h b/plugins/PluginLoader/catchcopy-v0002/pluginLoader.h index 91add70f..35d2dbe4 100755 --- a/plugins/PluginLoader/catchcopy-v0002/pluginLoader.h +++ b/plugins/PluginLoader/catchcopy-v0002/pluginLoader.h @@ -1,14 +1,12 @@ /** \file pluginLoader.h \brief Define the plugin loader \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef PLUGIN_LOADER_TEST_H #define PLUGIN_LOADER_TEST_H #include -#include #include #include diff --git a/plugins/SessionLoader/KDE4/DebugEngineMacro.h b/plugins/SessionLoader/KDE4/DebugEngineMacro.h index a3dd6484..3cb0aaef 100644 --- a/plugins/SessionLoader/KDE4/DebugEngineMacro.h +++ b/plugins/SessionLoader/KDE4/DebugEngineMacro.h @@ -1,8 +1,7 @@ /** \file DebugEngineMacro.h \brief Define the macro for the debug \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef DEBUGENGINEMACRO_H #define DEBUGENGINEMACRO_H diff --git a/plugins/SessionLoader/KDE4/Environment.h b/plugins/SessionLoader/KDE4/Environment.h index 94fd1049..265a5a69 100644 --- a/plugins/SessionLoader/KDE4/Environment.h +++ b/plugins/SessionLoader/KDE4/Environment.h @@ -1,8 +1,7 @@ /** \file Environment.h \brief Define the environment variable and global function \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include "Variable.h" /// \brief The global include diff --git a/plugins/SessionLoader/KDE4/Variable.h b/plugins/SessionLoader/KDE4/Variable.h index 8179c938..963d0c81 100644 --- a/plugins/SessionLoader/KDE4/Variable.h +++ b/plugins/SessionLoader/KDE4/Variable.h @@ -1,8 +1,7 @@ /** \file Variable.h \brief Define the environment variable \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef VARIABLE_H #define VARIABLE_H diff --git a/plugins/SessionLoader/KDE4/sessionLoader.cpp b/plugins/SessionLoader/KDE4/sessionLoader.cpp index 1ae7c3e2..d3c294ec 100644 --- a/plugins/SessionLoader/KDE4/sessionLoader.cpp +++ b/plugins/SessionLoader/KDE4/sessionLoader.cpp @@ -4,7 +4,6 @@ \version 0.3 \date 2010 */ -#include #include #include diff --git a/plugins/SessionLoader/KDE4/sessionLoader.h b/plugins/SessionLoader/KDE4/sessionLoader.h index 85c09df8..eb3a3c9f 100644 --- a/plugins/SessionLoader/KDE4/sessionLoader.h +++ b/plugins/SessionLoader/KDE4/sessionLoader.h @@ -1,8 +1,7 @@ /** \file sessionLoader.h \brief Define the session loader \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef SESSION_LOADER_PLUGIN_H #define SESSION_LOADER_PLUGIN_H diff --git a/plugins/SessionLoader/Windows/DebugEngineMacro.h b/plugins/SessionLoader/Windows/DebugEngineMacro.h index a3dd6484..3cb0aaef 100644 --- a/plugins/SessionLoader/Windows/DebugEngineMacro.h +++ b/plugins/SessionLoader/Windows/DebugEngineMacro.h @@ -1,8 +1,7 @@ /** \file DebugEngineMacro.h \brief Define the macro for the debug \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef DEBUGENGINEMACRO_H #define DEBUGENGINEMACRO_H diff --git a/plugins/SessionLoader/Windows/Environment.h b/plugins/SessionLoader/Windows/Environment.h index 94fd1049..265a5a69 100644 --- a/plugins/SessionLoader/Windows/Environment.h +++ b/plugins/SessionLoader/Windows/Environment.h @@ -1,8 +1,7 @@ /** \file Environment.h \brief Define the environment variable and global function \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include "Variable.h" /// \brief The global include diff --git a/plugins/SessionLoader/Windows/Variable.h b/plugins/SessionLoader/Windows/Variable.h index 8179c938..963d0c81 100644 --- a/plugins/SessionLoader/Windows/Variable.h +++ b/plugins/SessionLoader/Windows/Variable.h @@ -1,8 +1,7 @@ /** \file Variable.h \brief Define the environment variable \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef VARIABLE_H #define VARIABLE_H diff --git a/plugins/SessionLoader/Windows/sessionLoader.cpp b/plugins/SessionLoader/Windows/sessionLoader.cpp index 222e23e5..72d0d2f5 100755 --- a/plugins/SessionLoader/Windows/sessionLoader.cpp +++ b/plugins/SessionLoader/Windows/sessionLoader.cpp @@ -4,8 +4,6 @@ \version 0.3 \date 2010 */ -#include - #if defined (Q_OS_WIN32) #include #else diff --git a/plugins/SessionLoader/Windows/sessionLoader.h b/plugins/SessionLoader/Windows/sessionLoader.h index 16b1cb9a..ebe067b1 100755 --- a/plugins/SessionLoader/Windows/sessionLoader.h +++ b/plugins/SessionLoader/Windows/sessionLoader.h @@ -1,8 +1,7 @@ /** \file sessionLoader.h \brief Define the session loader \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef SESSION_LOADER_H #define SESSION_LOADER_H diff --git a/plugins/Themes/Oxygen/DebugEngineMacro.h b/plugins/Themes/Oxygen/DebugEngineMacro.h index a3dd6484..3cb0aaef 100644 --- a/plugins/Themes/Oxygen/DebugEngineMacro.h +++ b/plugins/Themes/Oxygen/DebugEngineMacro.h @@ -1,8 +1,7 @@ /** \file DebugEngineMacro.h \brief Define the macro for the debug \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef DEBUGENGINEMACRO_H #define DEBUGENGINEMACRO_H diff --git a/plugins/Themes/Oxygen/Environment.h b/plugins/Themes/Oxygen/Environment.h index 94fd1049..265a5a69 100644 --- a/plugins/Themes/Oxygen/Environment.h +++ b/plugins/Themes/Oxygen/Environment.h @@ -1,8 +1,7 @@ /** \file Environment.h \brief Define the environment variable and global function \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #include "Variable.h" /// \brief The global include diff --git a/plugins/Themes/Oxygen/Languages/ar/translation.qm b/plugins/Themes/Oxygen/Languages/ar/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/ar/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/de/translation.qm b/plugins/Themes/Oxygen/Languages/de/translation.qm new file mode 100644 index 00000000..be7e83d7 Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/de/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/el/translation.qm b/plugins/Themes/Oxygen/Languages/el/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/el/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/es/translation.qm b/plugins/Themes/Oxygen/Languages/es/translation.qm new file mode 100644 index 00000000..64bfe00f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/es/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/fr/translation.qm b/plugins/Themes/Oxygen/Languages/fr/translation.qm new file mode 100644 index 00000000..c0a6bbf1 Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/fr/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/hi/translation.qm b/plugins/Themes/Oxygen/Languages/hi/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/hi/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/id/translation.qm b/plugins/Themes/Oxygen/Languages/id/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/id/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/it/translation.qm b/plugins/Themes/Oxygen/Languages/it/translation.qm new file mode 100644 index 00000000..c3e600ed Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/it/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/ja/translation.qm b/plugins/Themes/Oxygen/Languages/ja/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/ja/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/ko/translation.qm b/plugins/Themes/Oxygen/Languages/ko/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/ko/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/nl/translation.qm b/plugins/Themes/Oxygen/Languages/nl/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/nl/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/no/translation.qm b/plugins/Themes/Oxygen/Languages/no/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/no/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/pl/translation.qm b/plugins/Themes/Oxygen/Languages/pl/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/pl/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/pt/translation.qm b/plugins/Themes/Oxygen/Languages/pt/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/pt/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/ru/translation.qm b/plugins/Themes/Oxygen/Languages/ru/translation.qm new file mode 100644 index 00000000..bdbfe741 Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/ru/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/th/translation.qm b/plugins/Themes/Oxygen/Languages/th/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/th/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/tr/translation.qm b/plugins/Themes/Oxygen/Languages/tr/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/tr/translation.qm differ diff --git a/plugins/Themes/Oxygen/Languages/zh/translation.qm b/plugins/Themes/Oxygen/Languages/zh/translation.qm new file mode 100644 index 00000000..3738845f Binary files /dev/null and b/plugins/Themes/Oxygen/Languages/zh/translation.qm differ diff --git a/plugins/Themes/Oxygen/Variable.h b/plugins/Themes/Oxygen/Variable.h index 8179c938..963d0c81 100644 --- a/plugins/Themes/Oxygen/Variable.h +++ b/plugins/Themes/Oxygen/Variable.h @@ -1,8 +1,7 @@ /** \file Variable.h \brief Define the environment variable \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef VARIABLE_H #define VARIABLE_H diff --git a/plugins/Themes/Oxygen/factory.cpp b/plugins/Themes/Oxygen/factory.cpp index 5be1add2..1d0f4ebf 100644 --- a/plugins/Themes/Oxygen/factory.cpp +++ b/plugins/Themes/Oxygen/factory.cpp @@ -4,8 +4,6 @@ \version 0.3 \date 2010 */ -#include - #include "factory.h" Factory::Factory() diff --git a/plugins/Themes/Oxygen/factory.h b/plugins/Themes/Oxygen/factory.h index 8f0c9441..5b24b62d 100644 --- a/plugins/Themes/Oxygen/factory.h +++ b/plugins/Themes/Oxygen/factory.h @@ -1,8 +1,7 @@ /** \file factory.h \brief Define the factory, to create instance of the interface \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef FACTORY_H #define FACTORY_H diff --git a/plugins/Themes/Oxygen/interface.cpp b/plugins/Themes/Oxygen/interface.cpp index a5ead2ea..61549360 100755 --- a/plugins/Themes/Oxygen/interface.cpp +++ b/plugins/Themes/Oxygen/interface.cpp @@ -4,7 +4,6 @@ \version 0.3 \date 2010 */ -#include #include #include "interface.h" diff --git a/plugins/Themes/Oxygen/interface.h b/plugins/Themes/Oxygen/interface.h index dc50d74f..be839434 100755 --- a/plugins/Themes/Oxygen/interface.h +++ b/plugins/Themes/Oxygen/interface.h @@ -1,8 +1,7 @@ /** \file interface.h \brief Define the interface \author alpha_one_x86 -\version 0.3 -\date 2010 */ +\licence GPL3, see the file COPYING */ #ifndef INTERFACE_H #define INTERFACE_H diff --git a/resources/Languages/en/informations.xml b/resources/Languages/en/informations.xml index ce665e02..68675bb5 100644 --- a/resources/Languages/en/informations.xml +++ b/resources/Languages/en/informations.xml @@ -12,12 +12,12 @@ - 0.3.0.0 + 0.4.0.0 en