29 #include <wx/wxprec.h>
33 #include <wx/cmdline.h>
37 #include "model/instance_check.h"
39 #include "model/comm_bridge.h"
41 #include "model/rest_server.h"
50 bool OnInit()
override;
51 int OnExit()
override;
53 void OnInitCmdLine(wxCmdLineParser& parser)
override;
54 bool OnCmdLineHelp(wxCmdLineParser& parser)
override;
55 bool OnCmdLineParsed(wxCmdLineParser& parser)
override;
59 void OnActivateApp(wxActivateEvent& event);
60 bool OpenFile(
const std::string& path);
64 void OnFatalException();
70 bool OnExceptionInMainLoop();
83 struct ParsedCmdline {
86 ParsedCmdline(CmdlineAction a,
const std::string& s) : action(a), arg(s) {}
87 ParsedCmdline() : ParsedCmdline(CmdlineAction::Skip,
"") {}
88 ParsedCmdline(CmdlineAction a) : ParsedCmdline(a,
"") {}
91 ParsedCmdline m_parsed_cmdline;
94 void InitRestListeners();
100 wxDECLARE_APP(
MyApp);
Common interface for all instance checkers.
Define an action to be performed when a KeyProvider is notified.
AbstractRestServer implementation and interface to underlying IO thread.
Listen to hardware events and notifies SystemEvents when new devices are plugged in.
The local API has a server side handling commands and a client part issuing commands.
Generic hardware events interface.