-
Notifications
You must be signed in to change notification settings - Fork 0
/
NConstants.h
38 lines (34 loc) · 1.7 KB
/
NConstants.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
#ifndef NCONSTANTS_H
#define NCONSTANTS_H
#include <QColor>
#include <QObject>
#include <QString>
#include "Definitions.h"
class DEFINITIONSSHARED_EXPORT NConstants
{
public:
enum CustomRegExp { HostRegExp, IdentifierRegExp, IntRegExp, NameRegExp, PortRegExp, ResourceRegExp, VersionRegExp, SerialNumberExp, MacExp };
enum CustomRole { StatusRole = Qt::UserRole + 1 };
enum MessageType { SuccessMessage, InfoMessage, WarningMessage, ErrorMessage, BugMessage };
enum OperatingSystem { Linux64 = 1, Windows32 = 2, Windows64 = 3 };
static QColor cyan() { return QColor(96, 177, 207); }
static QColor darkBlue() { return QColor(12, 12, 90); }
static QColor darkGreen() { return QColor(3, 102, 73); }
static QColor darkPurple() { return QColor(135, 11, 162); }
static QColor darkRed() { return QColor(143, 13, 6); }
static QColor green() { return QColor(100, 130, 100); }
static QColor lightBlue() { return QColor(233, 240, 255); }
static QColor lightRed() { return QColor(251, 223, 223); }
static QColor orange() { return QColor(234, 185, 14); }
static QColor white() { return QColor(255, 255, 255); }
static QString colorToRgbText(const QColor& color);
static QString configurationFile() { return "NulstarManager.cfg"; }
static QString defaultFSDirectory() { return ""; }
static QString defaultFSHost() { return "127.0.0.1"; }
static QString defaultFSPort() { return "21"; }
static QString defaultFSUser() { return "NulstarManager"; }
static QString defaultFSPassword() { return ""; }
static QString defaultMacAny() { return "00:00:00:00:00:00"; }
static QString defaultMacUnknown() { return "00:00:00:00:00:01"; }
};
#endif // NCONSTANTS_H