From fcd4a482f759cd58ee319a51082d0146b7e426e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 9 Apr 2016 23:51:01 +0200 Subject: NOISSUE tiny skeleton for a CLI wonko client --- wonkoclient/WonkoClient.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 wonkoclient/WonkoClient.h (limited to 'wonkoclient/WonkoClient.h') 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 +#include + +#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 instances() const { + return m_instanceList; + } + +private: + std::shared_ptr m_instanceList; + std::shared_ptr m_settings; + + void runTask(Task *pTask); +}; -- cgit v1.2.3