forked from picotorrent/picotorrent
-
Notifications
You must be signed in to change notification settings - Fork 1
/
application.hpp
41 lines (32 loc) · 873 Bytes
/
application.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <memory>
#include <vector>
#include "applicationoptions.hpp"
class wxSingleInstanceChecker;
namespace pt
{
namespace API
{
class IPlugin;
}
class PersistenceManager;
class Application : public wxApp
{
public:
Application();
virtual ~Application();
virtual bool OnCmdLineParsed(wxCmdLineParser& parser) wxOVERRIDE;
virtual bool OnInit() wxOVERRIDE;
virtual void OnInitCmdLine(wxCmdLineParser&) wxOVERRIDE;
private:
void ActivateOtherInstance();
void WaitForPreviousInstance(long pid);
pt::CommandLineOptions m_options;
std::vector<API::IPlugin*> m_plugins;
std::unique_ptr<PersistenceManager> m_persistence;
std::unique_ptr<wxSingleInstanceChecker> m_singleInstance;
};
}