diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:50:45 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:50:45 +0200 |
commit | eca5f1c8831fd0776e57a174362b0515104174c2 (patch) | |
tree | 5cba4e6c74d1f5c78018eff1b09b1973c5b7604f /FreeFileSync.h | |
parent | 1.6 (diff) | |
download | FreeFileSync-eca5f1c8831fd0776e57a174362b0515104174c2.tar.gz FreeFileSync-eca5f1c8831fd0776e57a174362b0515104174c2.tar.bz2 FreeFileSync-eca5f1c8831fd0776e57a174362b0515104174c2.zip |
1.7
Diffstat (limited to 'FreeFileSync.h')
-rw-r--r-- | FreeFileSync.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/FreeFileSync.h b/FreeFileSync.h index f2311bc1..cf17a5d7 100644 --- a/FreeFileSync.h +++ b/FreeFileSync.h @@ -13,15 +13,15 @@ using namespace std; enum SyncDirection { - syncDirLeft, - syncDirRight, - syncDirNone + SYNC_DIR_LEFT, + SYNC_DIR_RIGHT, + SYNC_DIR_NONE }; enum CompareVariant { - compareByContent, - compareByTimeAndSize + CMP_BY_CONTENT, + CMP_BY_TIME_SIZE }; struct SyncConfiguration @@ -47,27 +47,27 @@ struct Configuration bool filterIsActive; //other options - bool useRecycleBin; //use Recycle bin when deleting or overwriting files while synchronizing + bool useRecycleBin; //use Recycle bin when deleting or overwriting files while synchronizing bool continueOnError; //hides error messages during synchronization }; struct FileInfo { - wxULongLong fileSize; + wxULongLong fileSize; //unit: bytes! wxString lastWriteTime; - wxULongLong lastWriteTimeRaw; + wxULongLong lastWriteTimeRaw; //unit: seconds! }; enum ObjectType { - isNothing, - isDirectory, - isFile + TYPE_NOTHING, + TYPE_DIRECTORY, + TYPE_FILE }; struct FileDescrLine { - FileDescrLine() : objType(isNothing) {} + FileDescrLine() : objType(TYPE_NOTHING) {} wxString filename; // == directory + relFilename wxString directory; //directory to be synced @@ -117,12 +117,12 @@ typedef set<FileDescrLine> DirectoryDescrType; enum CompareFilesResult { - fileOnLeftSideOnly, - fileOnRightSideOnly, - rightFileNewer, - leftFileNewer, - filesDifferent, - filesEqual + FILE_LEFT_SIDE_ONLY, + FILE_RIGHT_SIDE_ONLY, + FILE_RIGHT_NEWER, + FILE_LEFT_NEWER, + FILE_DIFFERENT, + FILE_EQUAL }; @@ -237,8 +237,8 @@ public: static bool isFFS_ConfigFile(const wxString& filename); - static const wxString FFS_ConfigFileID; - static const wxString FFS_LastConfigFile; + static const string FfsConfigFileID; + static const wxString FfsLastConfigFile; static void getFileInformation(FileInfo& output, const wxString& filename); @@ -266,7 +266,7 @@ class FileError //Exception class used to notify file/directory copy/delete erro public: FileError(const wxString& txt) : errorMessage(txt) {} - wxString show() + wxString show() const { return errorMessage; } |