diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:55:14 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:55:14 +0200 |
commit | 222024f07e505617aec93dc4837be2be27d18856 (patch) | |
tree | c40f400baa6cf1d047205359f80c2b8f74a2b507 /algorithm.h | |
parent | 1.12 (diff) | |
download | FreeFileSync-222024f07e505617aec93dc4837be2be27d18856.tar.gz FreeFileSync-222024f07e505617aec93dc4837be2be27d18856.tar.bz2 FreeFileSync-222024f07e505617aec93dc4837be2be27d18856.zip |
1.13
Diffstat (limited to 'algorithm.h')
-rw-r--r-- | algorithm.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/algorithm.h b/algorithm.h new file mode 100644 index 00000000..93d28a9e --- /dev/null +++ b/algorithm.h @@ -0,0 +1,36 @@ +#ifndef ALGORITHM_H_INCLUDED +#define ALGORITHM_H_INCLUDED + +#include "FreeFileSync.h" + + +namespace FreeFileSync +{ + wxString formatFilesizeToShortString(const wxULongLong& filesize); + wxString formatFilesizeToShortString(const double filesize); + wxString getFormattedDirectoryName(const wxString& dirname); + + void swapGrids(FileCompareResult& grid); + + void adjustModificationTimes(const wxString& parentDirectory, const int timeInSeconds, ErrorHandler* errorHandler) throw(AbortThisProcess); + + void deleteOnGridAndHD(FileCompareResult& grid, const set<int>& rowsToDelete, ErrorHandler* errorHandler, const bool useRecycleBin) throw(AbortThisProcess); + void addSubElements(set<int>& subElements, const FileCompareResult& grid, const FileCompareLine& relevantRow); + + void filterCurrentGridData(FileCompareResult& currentGridData, const wxString& includeFilter, const wxString& excludeFilter); + void removeFilterOnCurrentGridData(FileCompareResult& currentGridData); + vector<wxString> compoundStringToFilter(const wxString& filterString); //convert compound string, separated by ';' or '\n' into formatted vector of wxStrings + + bool sameFileTime(const wxULongLong& a, const wxULongLong& b); + +#ifdef FFS_WIN +//detect if FAT/FAT32 drive needs a +-1h time shift after daylight saving time (DST) switch due to known windows bug: +//http://www.codeproject.com/KB/datetime/dstbugs.aspx + +//NO performance issue: debug build: 50 ms for 200000 files processed in for-loop + void checkForDSTChange(const FileCompareResult& gridData, const vector<FolderPair>& directoryPairsFormatted, int& timeShift, wxString& driveName); +#endif //FFS_WIN + +} + +#endif // ALGORITHM_H_INCLUDED |