-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCCTK.hpp
49 lines (31 loc) · 879 Bytes
/
CCTK.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
42
43
44
45
46
47
48
49
#ifndef WAYROUND_I2P_20240127_063832_814052
#define WAYROUND_I2P_20240127_063832_814052
#include <memory>
#include <sigc++/sigc++.h>
#include <unicode/unistr.h>
#include "interfaces/interfaces.hpp"
#include "types/types.hpp"
namespace wayround_i2p::cctk
{
class CCTK
{
public:
static std::shared_ptr<CCTK> create();
~CCTK();
int applyCmdLineArgs(int argc, char **args);
int init();
int run();
int setSystem(std::shared_ptr<SystemI> sys);
std::shared_ptr<WindowI> createWindow();
std::shared_ptr<KeyboardI> getKeyboard();
std::shared_ptr<PointerI> getPointer();
std::weak_ptr<sigc::signal<void()>> get_sigAfterStart();
protected:
CCTK();
private:
std::shared_ptr<SystemI> system;
std::shared_ptr<sigc::signal<void()>> sigAfterStart;
bool running = false;
};
} // namespace wayround_i2p::cctk
#endif