This repository has been archived by the owner on Apr 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.h
58 lines (44 loc) · 1.8 KB
/
application.h
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
50
51
52
53
54
55
56
57
58
#pragma once
#include "interfaces/i_jsonable.h"
#include <QLocale>
#include "models/model_enchant.h"
#include "models/model_ocr.h"
#include "models/model_macro.h"
#include "models/model_relogin.h"
#include "models/model_window.h"
#include "models/model_locale.h"
class Application : public IJsonable
{
public:
explicit Application() = default;
explicit Application(const QJsonObject &);
virtual ~Application() = default;
QJsonObject toJson() const override;
bool operator ==(const Application &) const;
bool operator !=(const Application &) const;
static Application *loadFromFile(const QString &);
void saveToFile(const QString &);
EnchantModel &getEnchantModel();
const EnchantModel &getEnchantModel() const;
OCRModel &getOcrModel();
const OCRModel &getOcrModel() const;
MacroModel &getMacroModel();
const MacroModel &getMacroModel() const;
ReloginModel &getReloginModel();
const ReloginModel &getReloginModel() const;
WindowModel &getWindowModel();
const WindowModel &getWindowModel() const;
LocaleModel &getLocaleModel();
const LocaleModel &getLocaleModel() const;
const QString &getProfileName() const;
void setProfileName(const QString &);
private:
bool isEqualTo(const Application &) const;
EnchantModel m_enchantModel;
OCRModel m_ocrModel;
MacroModel m_macroModel;
ReloginModel m_reloginModel;
WindowModel m_windowModel;
LocaleModel m_localeModel;
QString m_profileName;
};