| 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 |
|
| 14 |
|
| 15 |
|
| 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 |