summaryrefslogtreecommitdiff
path: root/Application.h
diff options
context:
space:
mode:
Diffstat (limited to 'Application.h')
-rw-r--r--Application.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/Application.h b/Application.h
index 4121ae4c..1c542903 100644
--- a/Application.h
+++ b/Application.h
@@ -7,21 +7,31 @@
#ifndef FREEFILESYNCAPP_H
#define FREEFILESYNCAPP_H
+#include <vector>
#include <wx/app.h>
-#include "lib/process_xml.h"
+//#include "lib/process_xml.h"
#include "lib/return_codes.h"
class Application : public wxApp
{
+public:
+ Application() : returnCode(zen::FFS_RC_SUCCESS) {}
+
private:
virtual bool OnInit();
virtual int OnRun();
virtual int OnExit() { return 0; }
virtual bool OnExceptionInMainLoop() { throw; } //just re-throw and avoid display of additional messagebox: it will be caught in OnRun()
- void OnStartApplication(wxIdleEvent& event);
- void OnQueryEndSession(wxEvent& event);
+#ifdef FFS_MAC
+ virtual void MacOpenFiles(const wxArrayString& filenames);
+ virtual void MacNewFile();
+#endif
+
+ void onEnterEventLoop(wxEvent& event);
+ void onQueryEndSession(wxEvent& event);
+ void launch(const std::vector<wxString>& commandArgs);
zen::FfsReturnCode returnCode;
};
bgstack15