diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:29:28 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:29:28 +0200 |
commit | 75c07011b7c4d06acd7b45dabdcd60ab9d80f385 (patch) | |
tree | 8853c3978dd152ef377e652239448b1352320206 /algorithm.h | |
parent | 5.22 (diff) | |
download | FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.tar.gz FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.tar.bz2 FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.zip |
5.23
Diffstat (limited to 'algorithm.h')
-rw-r--r-- | algorithm.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/algorithm.h b/algorithm.h deleted file mode 100644 index 09adb5ec..00000000 --- a/algorithm.h +++ /dev/null @@ -1,68 +0,0 @@ -// ************************************************************************** -// * This file is part of the FreeFileSync project. It is distributed under * -// * GNU General Public License: http://www.gnu.org/licenses/gpl.html * -// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved * -// ************************************************************************** - -#ifndef ALGORITHM_H_INCLUDED -#define ALGORITHM_H_INCLUDED - -#include <functional> -#include "file_hierarchy.h" -#include "lib/soft_filter.h" - -namespace zen -{ -void swapGrids(const MainConfiguration& config, FolderComparison& folderCmp); - -std::vector<DirectionConfig> extractDirectionCfg(const MainConfiguration& mainCfg); - -void redetermineSyncDirection(const DirectionConfig& directConfig, BaseDirPair& baseDirectory, std::function<void(const std::wstring&)> reportWarning); -void redetermineSyncDirection(const MainConfiguration& mainCfg, FolderComparison& folderCmp, std::function<void(const std::wstring&)> reportWarning); - -void setSyncDirectionRec(SyncDirection newDirection, FileSystemObject& fsObj); //set new direction (recursively) - -bool allElementsEqual(const FolderComparison& folderCmp); - -//filtering -void applyFiltering (FolderComparison& folderCmp, const MainConfiguration& mainCfg); //full filter apply -void addHardFiltering(BaseDirPair& baseDirObj, const Zstring& excludeFilter); //exclude additional entries only -void addSoftFiltering(BaseDirPair& baseDirObj, const SoftFilter& timeSizeFilter); //exclude additional entries only - -void applyTimeSpanFilter(FolderComparison& folderCmp, const Int64& timeFrom, const Int64& timeTo); //overwrite current active/inactive settings - -void setActiveStatus(bool newStatus, FolderComparison& folderCmp); //activate or deactivate all rows -void setActiveStatus(bool newStatus, FileSystemObject& fsObj); //activate or deactivate row: (not recursively anymore) - - -//manual deletion of files on main grid -std::pair<Zstring, int> deleteFromGridAndHDPreview( //returns string with elements to be deleted and total count of selected(!) objects, NOT total files/dirs! - const std::vector<FileSystemObject*>& selectionLeft, //all pointers need to be bound! - const std::vector<FileSystemObject*>& selectionRight, // - bool deleteOnBothSides); - -struct DeleteFilesHandler -{ - virtual ~DeleteFilesHandler() {} - - enum Response - { - IGNORE_ERROR = 10, - RETRY - }; - virtual Response reportError (const std::wstring& msg) = 0; - virtual void reportWarning(const std::wstring& msg, bool& warningActive) = 0; - virtual void reportStatus (const std::wstring& msg) = 0; -}; -void deleteFromGridAndHD(const std::vector<FileSystemObject*>& rowsToDeleteOnLeft, //refresh GUI grid after deletion to remove invalid rows - const std::vector<FileSystemObject*>& rowsToDeleteOnRight, //all pointers need to be bound! - FolderComparison& folderCmp, //attention: rows will be physically deleted! - const std::vector<DirectionConfig>& directCfgs, - bool deleteOnBothSides, - bool useRecycleBin, - DeleteFilesHandler& statusHandler, - //global warnings: - bool& warningRecyclerMissing); -} - -#endif //ALGORITHM_H_INCLUDED |