diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-04-09 23:51:01 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-04-30 23:59:23 +0200 |
commit | fcd4a482f759cd58ee319a51082d0146b7e426e2 (patch) | |
tree | 52bd8227d4889d7e02b3cce43c24d48fec825e60 /wonkoclient/WonkoClient.h | |
parent | 00e5968bd28ab1df33b3a39dbac8cda99aa2a0d2 (diff) | |
download | MultiMC-fcd4a482f759cd58ee319a51082d0146b7e426e2.tar MultiMC-fcd4a482f759cd58ee319a51082d0146b7e426e2.tar.gz MultiMC-fcd4a482f759cd58ee319a51082d0146b7e426e2.tar.lz MultiMC-fcd4a482f759cd58ee319a51082d0146b7e426e2.tar.xz MultiMC-fcd4a482f759cd58ee319a51082d0146b7e426e2.zip |
NOISSUE tiny skeleton for a CLI wonko client
Diffstat (limited to 'wonkoclient/WonkoClient.h')
-rw-r--r-- | wonkoclient/WonkoClient.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/wonkoclient/WonkoClient.h b/wonkoclient/WonkoClient.h new file mode 100644 index 00000000..e6b35805 --- /dev/null +++ b/wonkoclient/WonkoClient.h @@ -0,0 +1,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); +}; |