summaryrefslogtreecommitdiff
path: root/Application.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:53:46 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:53:46 +0200
commit7721cdf1737fb5a99ce60f59acf230b3432576af (patch)
tree8127dbedafc2c18e5b3cc7ef1e55969481be6c41 /Application.h
parent1.10 (diff)
downloadFreeFileSync-7721cdf1737fb5a99ce60f59acf230b3432576af.tar.gz
FreeFileSync-7721cdf1737fb5a99ce60f59acf230b3432576af.tar.bz2
FreeFileSync-7721cdf1737fb5a99ce60f59acf230b3432576af.zip
1.11
Diffstat (limited to 'Application.h')
-rw-r--r--Application.h26
1 files changed, 9 insertions, 17 deletions
diff --git a/Application.h b/Application.h
index eb209783..e240a762 100644
--- a/Application.h
+++ b/Application.h
@@ -12,11 +12,9 @@
#include <wx/app.h>
#include <wx/cmdline.h>
-#include <wx/ffile.h>
#include "FreeFileSync.h"
#include "ui/smallDialogs.h"
#include "library/misc.h"
-#include <wx/stopwatch.h>
class Application : public wxApp
{
@@ -26,30 +24,24 @@ public:
int OnExit();
void initialize();
- bool ProcessIdle(); //virtual method
-
- //methods for writing logs
- void logInit();
- void logWrite(const wxString& logText, const wxString& problemType = wxEmptyString);
- void logClose(const wxString& finalText);
+ bool ProcessIdle(); //virtual method!
private:
- void parseCommandline();
+ void runBatchMode(const wxString& filename);
- bool applicationRunsOnCommandLineWithoutWindows;
- wxFFile logFile;
- wxStopWatch totalTime;
+ bool applicationRunsInBatchWithoutWindows;
CustomLocale programLanguage;
int returnValue;
};
+class LogFile;
-class CommandLineStatusUpdater : public StatusUpdater
+class BatchStatusUpdater : public StatusUpdater
{
public:
- CommandLineStatusUpdater(Application* application, bool continueOnError, bool silent);
- ~CommandLineStatusUpdater();
+ BatchStatusUpdater(bool continueOnError, bool silent, LogFile* log);
+ ~BatchStatusUpdater();
void updateStatusText(const wxString& text);
void initNewProcess(int objectsTotal, double dataTotal, int processID);
@@ -62,12 +54,12 @@ public:
private:
void abortThisProcess();
- Application* app;
+ LogFile* m_log;
SyncStatus* syncStatusFrame;
bool continueErrors;
bool silentMode;
- wxArrayString unhandledErrors; //list of non-resolved errors
+ wxArrayString unhandledErrors; //list of non-resolved errors
int currentProcess;
bool synchronizationNeeded;
};
bgstack15