-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
executable file
·41 lines (35 loc) · 945 Bytes
/
config.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
#ifndef CONFIG_H
#define CONFIG_H
#include <QColor>
#include <QFont>
#include <QObject>
class Config : public QObject {
Q_OBJECT
public:
explicit Config(QObject *parent = nullptr);
Config(const Config &);
Config &operator=(const Config &);
QString endpoint() const;
QString target() const;
QString desc() const;
QColor color() const;
QFont font() const;
QColor background() const;
QColor button() const;
void setEndpoint(const QString &newEndpoint);
void setTarget(const QString &newTarget);
void setDesc(const QString &newDesc);
void setFont(const QFont &newFont);
void setColor(const QColor &newColor);
void setBackground(const QColor &newBackground);
void setButton(const QColor &newButton);
private:
QString m_endpoint;
QString m_target;
QString m_desc;
QFont m_font;
QColor m_color;
QColor m_background;
QColor m_button;
};
#endif // CONFIG_H