Debian Codegraph @

src/blitzinfo.h

raw symbols SCIP
1 #ifndef BLITZINFO_H
2 #define BLITZINFO_H
3
4 #include <QObject>
5
6 enum BarType {
7 NotInstallableType = 0,
8 AppType,
9 RadioType,
10 OSType,
11 };
12
13 // Blitz means it has more than one OS or Radio.
14 // In this situation we need to work out which one is intended instead of asking about every single one.
15 // If there is only one good OS and Radio, the intention is clear.
16 class BlitzInfo: public QObject {
17 Q_OBJECT
18 public:
19 BlitzInfo(QList<QString> filenames, QString deviceOS, QString deviceRadio);
20 void blitzCheck(QString name);
21 bool isSafe() { return (osIsSafe && radioIsSafe); }
22 bool isBlitz() { return (osCount > 1 || radioCount > 1); }
23 bool osIsSafe, radioIsSafe;
24 int radioCount, osCount;
25 private:
26 QString _deviceOS, _deviceRadio;
27 };
28
29 #endif // BLITZINFO_H