diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:03:20 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:03:20 +0200 |
commit | 528635604eea1d8c679a3d038e2f00030ef72444 (patch) | |
tree | 9c3cbec29aa7d3e209939662e040b9342c9e7400 /fileHierarchy.h | |
parent | 3.1 (diff) | |
download | FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.tar.gz FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.tar.bz2 FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.zip |
3.2
Diffstat (limited to 'fileHierarchy.h')
-rw-r--r-- | fileHierarchy.h | 35 |
1 files changed, 10 insertions, 25 deletions
diff --git a/fileHierarchy.h b/fileHierarchy.h index 9f0aec4c..d26d527e 100644 --- a/fileHierarchy.h +++ b/fileHierarchy.h @@ -10,6 +10,7 @@ #include "structures.h" #include <boost/shared_ptr.hpp> #include "shared/guid.h" +#include "library/filter.h" class DirectoryBuffer; @@ -95,9 +96,8 @@ private: struct DirInformation { //filter settings (used when retrieving directory data) - bool filterActive; - Zstring includeFilter; - Zstring excludeFilter; + FilterProcess::FilterRef filter; + //hierarchical directory information DirContainer baseDirContainer; }; @@ -209,10 +209,10 @@ public: //comparison result virtual CompareFilesResult getCategory() const = 0; - virtual const wxString& getCatConflict() const = 0; //only filled if cmpResult == FILE_CONFLICT + virtual const wxString& getCatConflict() const = 0; //only filled if getCategory() == FILE_CONFLICT //sync operation SyncOperation getSyncOperation() const; - const wxString& getSyncOpConflict() const; //only filled if syncDir == SYNC_DIR_INT_CONFLICT + const wxString& getSyncOpConflict() const; //only filled if getSyncOperation() == SYNC_DIR_INT_CONFLICT SyncOperation testSyncOperation(bool selected, SyncDirection syncDir) const; //get syncOp with provided settings //sync settings @@ -367,31 +367,16 @@ class BaseDirMapping : public HierarchyObject //synchronization base directory public: BaseDirMapping(const Zstring& dirPostfixedLeft, const Zstring& dirPostfixedRight, - bool filterActive, - const Zstring& includeFilter, - const Zstring& excludeFilter) : + const FilterProcess::FilterRef& filterIn) : HierarchyObject(dirPostfixedLeft, dirPostfixedRight), - filter(filterActive, includeFilter, excludeFilter) {} - - struct FilterSettings - { - FilterSettings(bool active, - const Zstring& include, - const Zstring& exclude) : - filterActive(active), - includeFilter(include), - excludeFilter(exclude) {} - bool filterActive; - Zstring includeFilter; - Zstring excludeFilter; - }; + filter(filterIn) {} - const FilterSettings& getFilter() const; + const FilterProcess::FilterRef& getFilter() const; template <SelectedSide side> Zstring getDBFilename() const; virtual void swap(); private: - FilterSettings filter; + FilterProcess::FilterRef filter; }; @@ -834,7 +819,7 @@ void DirMapping::copyToR() inline -const BaseDirMapping::FilterSettings& BaseDirMapping::getFilter() const +const FilterProcess::FilterRef& BaseDirMapping::getFilter() const { return filter; } |