blob: e6b358054780bc2edb7a703023f0a20ba11ad0d9 (
plain)
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
|
//
// Created by robotbrain on 3/27/16.
//
#pragma once
#include <memory>
#include <InstanceList.h>
#if defined(MMCC)
#undef MMCC
#endif
#define MMCC (WonkoClient::getInstance())
class WonkoClient : public QObject {
Q_OBJECT
private:
WonkoClient();
public:
static WonkoClient &getInstance();
void registerLists();
void initGlobalSettings();
std::shared_ptr<InstanceList> instances() const {
return m_instanceList;
}
private:
std::shared_ptr<InstanceList> m_instanceList;
std::shared_ptr<SettingsObject> m_settings;
void runTask(Task *pTask);
};
|