-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettings.h
More file actions
57 lines (50 loc) · 1.03 KB
/
Settings.h
File metadata and controls
57 lines (50 loc) · 1.03 KB
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
#ifndef SETTINGS_H
#define SETTINGS_H
#include <QMap>
#include <QVector>
#define EASYGO_VERSION "2.0.0"
struct PluginConfig{
QString id;
QString name;
QStringList keyword;
QString acceptType;
int mode;
int disabled;
};
struct IndexConfig{
bool clearHistory;
QStringList indexPath;
bool enableNormalIndex;
};
class Settings
{
public:
Settings();
~Settings();
public:
bool load();
bool save();
int find(const QString& uuid);
bool isKeywordExsit(const QString& keyword);
PluginConfig getPluginCfg(const QString& uuid);
public:
QVector<PluginConfig> m_pluginConfig;
IndexConfig m_indexCfg;
QString m_pythonPath;
int m_maxResultsPerPage;
int m_maxResultsToShow;
bool m_startOnSystemStartup;
bool m_hideWhenDeactive;
bool m_remLastPosition;
bool m_disableMouse;
QString m_hotKey;
int m_x;
int m_y;
QString m_proxy_ip;
int m_proxy_port;
int m_debugMode;
int m_checkUpdate;
QString m_repo_url;
};
Settings* GetSettings();
#endif