diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:56:34 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:56:34 +0200 |
commit | 9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca (patch) | |
tree | 61e2edc315a164d6fa3940b7de4b14dda0a9838c /Application.h | |
parent | 1.15 (diff) | |
download | FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.tar.gz FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.tar.bz2 FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.zip |
1.16
Diffstat (limited to 'Application.h')
-rw-r--r-- | Application.h | 47 |
1 files changed, 28 insertions, 19 deletions
diff --git a/Application.h b/Application.h index e1b12172..60b8fbe7 100644 --- a/Application.h +++ b/Application.h @@ -54,51 +54,60 @@ public: class LogFile; +class FfsTrayIcon; + class BatchStatusHandlerSilent : public BatchStatusHandler { public: - BatchStatusHandlerSilent(bool ignoreAllErrors, LogFile* log, int& returnVal); + BatchStatusHandlerSilent(const xmlAccess::OnError handleError, int& returnVal); ~BatchStatusHandlerSilent(); - void updateStatusText(const Zstring& text); //virtual impl. - void initNewProcess(int objectsTotal, double dataTotal, Process processID); //virtual impl. - void updateProcessedData(int objectsProcessed, double dataProcessed) {} //virtual impl. - ErrorHandler::Response reportError(const Zstring& text); //virtual impl. - void forceUiRefresh() {} //virtual impl. + virtual void updateStatusText(const Zstring& text); + virtual void initNewProcess(int objectsTotal, double dataTotal, Process processID); + virtual void updateProcessedData(int objectsProcessed, double dataProcessed) {} + virtual void forceUiRefresh(); + + virtual ErrorHandler::Response reportError(const Zstring& errorMessage); + virtual void reportFatalError(const Zstring& errorMessage); + virtual void reportWarning(const Zstring& warningMessage, bool& dontShowAgain); - void exitAndSetStatus(const wxString& message, ExitCode code); //abort externally //virtual impl. + virtual void exitAndSetStatus(const wxString& message, ExitCode code); //abort externally private: - void abortThisProcess(); //virtual impl. + virtual void abortThisProcess(); - bool ignoreErrors; + xmlAccess::OnError m_handleError; wxArrayString unhandledErrors; //list of non-resolved errors Process currentProcess; int& returnValue; + std::auto_ptr<FfsTrayIcon> trayIcon; - LogFile* m_log; + std::auto_ptr<LogFile> m_log; }; class BatchStatusHandlerGui : public BatchStatusHandler { public: - BatchStatusHandlerGui(bool ignoreAllErrors, int& returnVal); + BatchStatusHandlerGui(const xmlAccess::OnError handleError, int& returnVal); ~BatchStatusHandlerGui(); - void updateStatusText(const Zstring& text); //virtual impl. - void initNewProcess(int objectsTotal, double dataTotal, Process processID); //virtual impl. - void updateProcessedData(int objectsProcessed, double dataProcessed); //virtual impl. - ErrorHandler::Response reportError(const Zstring& text); //virtual impl. - void forceUiRefresh(); //virtual impl. + virtual void updateStatusText(const Zstring& text); + virtual void initNewProcess(int objectsTotal, double dataTotal, Process processID); + virtual void updateProcessedData(int objectsProcessed, double dataProcessed); + virtual void forceUiRefresh(); + + virtual ErrorHandler::Response reportError(const Zstring& errorMessage); + virtual void reportFatalError(const Zstring& errorMessage); + virtual void reportWarning(const Zstring& warningMessage, bool& dontShowAgain); - void exitAndSetStatus(const wxString& message, ExitCode code); //abort externally //virtual impl. + virtual void exitAndSetStatus(const wxString& message, ExitCode code); //abort externally private: - void abortThisProcess(); //virtual impl. + virtual void abortThisProcess(); - bool ignoreErrors; + xmlAccess::OnError m_handleError; wxArrayString unhandledErrors; //list of non-resolved errors Process currentProcess; int& returnValue; |