-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsystemhelper.h
More file actions
33 lines (27 loc) · 817 Bytes
/
systemhelper.h
File metadata and controls
33 lines (27 loc) · 817 Bytes
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
#ifndef BASICIO_H
#define BASICIO_H
#include <QString>
#include <QColor>
#include <cstdint>
class SystemHelper
{
public:
SystemHelper();
static QString OSName();
static QString OSArch();
static QString ProcArch();
static void BinaryDump(const uint8_t buf[], const uint32_t bufsize);
static int CompileYear();
static int CompileMonth();
static int CompileDay();
static void SystemWarning(const QString& warnMsg);
static void SystemError(const QString& errorMsg);
static void QtExit(int code = 0);
static QString RGB_QColorToQString(const QColor color);
static QColor RGB_QStringToQColor(const QString str);
static void eventLoopRunning(bool value);
static bool setEventLoopRunning();
private:
static bool m_eventLoopRunning;
};
#endif // BASICIO_H