From 75c07011b7c4d06acd7b45dabdcd60ab9d80f385 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:29:28 +0200 Subject: 5.23 --- algorithm.h | 68 ------------------------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 algorithm.h (limited to 'algorithm.h') 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 -#include "file_hierarchy.h" -#include "lib/soft_filter.h" - -namespace zen -{ -void swapGrids(const MainConfiguration& config, FolderComparison& folderCmp); - -std::vector extractDirectionCfg(const MainConfiguration& mainCfg); - -void redetermineSyncDirection(const DirectionConfig& directConfig, BaseDirPair& baseDirectory, std::function reportWarning); -void redetermineSyncDirection(const MainConfiguration& mainCfg, FolderComparison& folderCmp, std::function 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 deleteFromGridAndHDPreview( //returns string with elements to be deleted and total count of selected(!) objects, NOT total files/dirs! - const std::vector& selectionLeft, //all pointers need to be bound! - const std::vector& 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& rowsToDeleteOnLeft, //refresh GUI grid after deletion to remove invalid rows - const std::vector& rowsToDeleteOnRight, //all pointers need to be bound! - FolderComparison& folderCmp, //attention: rows will be physically deleted! - const std::vector& directCfgs, - bool deleteOnBothSides, - bool useRecycleBin, - DeleteFilesHandler& statusHandler, - //global warnings: - bool& warningRecyclerMissing); -} - -#endif //ALGORITHM_H_INCLUDED -- cgit