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); |