diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:08:06 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:08:06 +0200 |
commit | fbe76102e941b9f1edaf236788e42678f05fdf9a (patch) | |
tree | f5f538316019fa89be8dc478103490c3a826f3ac /ui/batchStatusHandler.h | |
parent | 3.8 (diff) | |
download | FreeFileSync-fbe76102e941b9f1edaf236788e42678f05fdf9a.tar.gz FreeFileSync-fbe76102e941b9f1edaf236788e42678f05fdf9a.tar.bz2 FreeFileSync-fbe76102e941b9f1edaf236788e42678f05fdf9a.zip |
3.9
Diffstat (limited to 'ui/batchStatusHandler.h')
-rw-r--r-- | ui/batchStatusHandler.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/ui/batchStatusHandler.h b/ui/batchStatusHandler.h deleted file mode 100644 index fb37c62a..00000000 --- a/ui/batchStatusHandler.h +++ /dev/null @@ -1,57 +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) 2008-2010 ZenJu (zhnmju123 AT gmx.de) * -// ************************************************************************** -// -#ifndef BATCHSTATUSHANDLER_H_INCLUDED -#define BATCHSTATUSHANDLER_H_INCLUDED - -#include "../library/statusHandler.h" -#include "../library/processXml.h" -#include "../library/errorLogging.h" -#include "progressIndicator.h" -#include "switchToGui.h" - -class LogFile; -class SyncStatus; - - -class BatchStatusHandler : public StatusHandler -{ -public: - BatchStatusHandler(bool runSilent, //defines: -start minimized and -quit immediately when finished - const wxString& batchFilename, - const wxString* logfileDirectory, //optional: enable logging if available - const xmlAccess::OnError handleError, - const FreeFileSync::SwitchToGui& switchBatchToGui, //functionality to change from batch mode to GUI mode - int& returnVal); - ~BatchStatusHandler(); - - virtual void updateStatusText(const Zstring& text); - virtual void initNewProcess(int objectsTotal, wxLongLong dataTotal, Process processID); - virtual void updateProcessedData(int objectsProcessed, wxLongLong dataProcessed); - virtual void forceUiRefresh(); - - void reportInfo(const wxString& infoMessage); - virtual void reportWarning(const wxString& warningMessage, bool& warningActive); - virtual ErrorHandler::Response reportError(const wxString& errorMessage); - virtual void reportFatalError(const wxString& errorMessage); - -private: - virtual void abortThisProcess(); - - const FreeFileSync::SwitchToGui& switchBatchToGui_; //functionality to change from batch mode to GUI mode - bool exitWhenFinished; - bool switchToGuiRequested; - xmlAccess::OnError handleError_; - FreeFileSync::ErrorLogging errorLog; //list of non-resolved errors and warnings - Process currentProcess; - int& returnValue; - - SyncStatus syncStatusFrame; //the window managed by SyncStatus has longer lifetime than this handler! - boost::shared_ptr<LogFile> logFile; //optional! -}; - - -#endif // BATCHSTATUSHANDLER_H_INCLUDED |