commonlib/types.h

changeset 66
c68545f1aecb
parent 63
d10a6be4d99e
child 67
c34057d3c94e
equal deleted inserted replaced
65:e679dd5cd159 66:c68545f1aecb
22 #include <QList> 22 #include <QList>
23 #include <QVariant> 23 #include <QVariant>
24 24
25 struct ZandronumVersion 25 struct ZandronumVersion
26 { 26 {
27 ZandronumVersion (QString name, bool isRelease, QString binaryPath) :
28 name (name),
29 binaryPath (binaryPath),
30 isRelease (isRelease) {}
31
32 ZandronumVersion() :
33 isRelease (false) {}
34
35 QString name; 27 QString name;
36 QString binaryPath; 28 QString binaryPath;
37 bool isRelease; 29 bool isRelease = false;
38 }; 30 };
39 31
40 inline QDataStream& operator<< (QDataStream& out, const ZandronumVersion& version) 32 inline QDataStream& operator<< (QDataStream& out, const ZandronumVersion& version)
41 { 33 {
42 return (out << version.name << version.binaryPath << version.isRelease); 34 return (out << version.name << version.binaryPath << version.isRelease);

mercurial