mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-29 09:15:49 +00:00
37 lines
599 B
C
37 lines
599 B
C
|
//
|
||
|
// 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);
|
||
|
};
|