This repository was archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 428
Expand file tree
/
Copy pathosinfo.h
More file actions
80 lines (63 loc) · 1.34 KB
/
osinfo.h
File metadata and controls
80 lines (63 loc) · 1.34 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#ifndef OSINFO_H
#define OSINFO_H
/**
* OS info model
* Contains the information from os.json, and has a pointer to the partitions
*/
#include <QObject>
#include <QList>
class PartitionInfo;
class OsInfo : public QObject
{
Q_OBJECT
public:
/* Constructor parses the json files in <folder>, and stores information in local variables */
explicit OsInfo(const QString &folder, const QString &flavour = "", QObject *parent = 0);
inline QString folder()
{
return _folder;
}
inline QString flavour()
{
return _flavour;
}
inline QString name()
{
return _name;
}
inline QString description()
{
return _description;
}
inline QString version()
{
return _version;
}
inline QString releaseDate()
{
return _releaseDate;
}
inline bool bootable()
{
return _bootable;
}
inline bool managevideo()
{
return _managevideo;
}
inline QList<PartitionInfo *> *partitions()
{
return &_partitions;
}
inline int riscosOffset()
{
return _riscosOffset;
}
protected:
QString _folder, _flavour, _name, _description, _version, _releaseDate;
bool _bootable;
bool _managevideo;
QList<PartitionInfo *> _partitions;
int _riscosOffset;
};
#endif // OSINFO_H