summaryrefslogtreecommitdiff
path: root/plugins/CopyEngine/Ultracopier/StructEnumDefinition_CopyEngine.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2017-11-24 23:24:09 +0000
committerThomas Preud'homme <robotux@celest.fr>2017-11-24 23:24:09 +0000
commitb3c8bdcc0d1e4b2ab298847a7902b6d60410a5bc (patch)
tree8fce8a51adfb245db8ab2a76831661780c0c713e /plugins/CopyEngine/Ultracopier/StructEnumDefinition_CopyEngine.h
parente297dbd8052ef4e66f069e2dd1865ae7fa8af28e (diff)
New upstream version 1.2.3.6
Diffstat (limited to 'plugins/CopyEngine/Ultracopier/StructEnumDefinition_CopyEngine.h')
-rw-r--r--plugins/CopyEngine/Ultracopier/StructEnumDefinition_CopyEngine.h124
1 files changed, 124 insertions, 0 deletions
diff --git a/plugins/CopyEngine/Ultracopier/StructEnumDefinition_CopyEngine.h b/plugins/CopyEngine/Ultracopier/StructEnumDefinition_CopyEngine.h
new file mode 100644
index 0000000..0b23c29
--- /dev/null
+++ b/plugins/CopyEngine/Ultracopier/StructEnumDefinition_CopyEngine.h
@@ -0,0 +1,124 @@
+/** \file StructEnumDefinition_CopyEngine.h
+\brief Define the structure and enumeration used in the copy engine
+\author alpha_one_x86
+\licence GPL3, see the file COPYING */
+
+#include <QString>
+#include <QRegularExpression>
+
+#ifndef STRUCTDEF_COPYENGINE_H
+#define STRUCTDEF_COPYENGINE_H
+
+/// \brief Define action if file exists
+enum FileExistsAction
+{
+ FileExists_NotSet=0,
+ FileExists_Cancel=1,
+ FileExists_Skip=2,
+ FileExists_Overwrite=3,
+ FileExists_OverwriteIfNotSame=4,
+ FileExists_OverwriteIfNewer=5,
+ FileExists_OverwriteIfOlder=6,
+ FileExists_Rename=7
+};
+
+/// \brief Define action if file error
+enum FileErrorAction
+{
+ FileError_NotSet=1,
+ FileError_Cancel=2,
+ FileError_Skip=3,
+ FileError_Retry=4,
+ FileError_PutToEndOfTheList=5
+};
+
+enum TransferAlgorithm
+{
+ TransferAlgorithm_Automatic=0,
+ TransferAlgorithm_Sequential=1,
+ TransferAlgorithm_Parallel=2
+};
+
+/// \brief to have the transfer status
+enum TransferStat
+{
+ TransferStat_Idle=0,
+ TransferStat_PreOperation=1,
+ TransferStat_WaitForTheTransfer=2,
+ TransferStat_Transfer=3,
+ TransferStat_Checksum=4,
+ TransferStat_PostTransfer=5,
+ TransferStat_PostOperation=6
+};
+
+/// \brief Define overwrite mode
+/*enum OverwriteMode
+{
+ OverwriteMode_None,
+ OverwriteMode_Overwrite,
+ OverwriteMode_OverwriteIfNewer,
+ OverwriteMode_OverwriteIfNotSameModificationDate
+};*/
+
+/// \brief Define action if file exists
+enum FolderExistsAction
+{
+ FolderExists_NotSet=0,
+ FolderExists_Cancel=1,
+ FolderExists_Merge=2,
+ FolderExists_Skip=3,
+ FolderExists_Rename=4
+};
+
+enum ErrorType
+{
+ ErrorType_Normal=0,
+ ErrorType_Folder=1,
+ ErrorType_FolderWithRety=2,
+ ErrorType_Rights=3
+};
+
+enum SearchType
+{
+ SearchType_rawText=0,
+ SearchType_simpleRegex=1,
+ SearchType_perlRegex=2
+};
+
+enum ApplyOn
+{
+ ApplyOn_file=0,
+ ApplyOn_fileAndFolder=1,
+ ApplyOn_folder=2
+};
+
+/** to store into different way the filter rules to be exported */
+struct Filters_rules
+{
+ QString search_text;
+ SearchType search_type;
+ ApplyOn apply_on;
+ bool need_match_all;
+ QRegularExpression regex;
+};
+
+/// \brief get action type
+enum ActionType
+{
+ ActionType_MkPath=1,
+ ActionType_MovePath=2,
+ ActionType_RealMove=3
+ #ifdef ULTRACOPIER_PLUGIN_RSYNC
+ ,
+ ActionType_RmSync=4
+ #endif
+};
+
+struct Diskspace
+{
+ QString drive;
+ quint64 requiredSpace;
+ quint64 freeSpace;
+};
+
+#endif // STRUCTDEF_COPYENGINE_H