Commit 8e55ee63 authored by Tobias Hunger's avatar Tobias Hunger

Android: Clean up AndroidDeviceInfo

Turn it into a class, add a isValid method and initialize it properly

Change-Id: I413ca931b125c9bbfc58b855280e9e58402f3d0b
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent d2bb1435
......@@ -57,19 +57,22 @@ namespace Utils { class Environment; }
namespace Android {
class AndroidPlugin;
struct AndroidDeviceInfo
class AndroidDeviceInfo
{
public:
QString serialNumber;
QString avdname;
QStringList cpuAbi;
int sdk;
int sdk = -1;
enum State { OkState, UnAuthorizedState, OfflineState };
State state;
bool unauthorized;
State state = OfflineState;
bool unauthorized = false;
enum AndroidDeviceType { Hardware, Emulator };
AndroidDeviceType type;
AndroidDeviceType type = Emulator;
static QStringList adbSelector(const QString &serialNumber);
bool isValid() { return !serialNumber.isEmpty() && !avdname.isEmpty(); }
};
class SdkPlatform
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment