Android: Add system image information for each platform

Groundwork for the new sdk and avd management tool's integration

Task-number: QTCREATORBUG-17814
Change-Id: I3e46f6d3aa56c0f16dd66d0b1d731043e180e012
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
This commit is contained in:
Vikas Pachdha
2017-04-04 07:20:01 +02:00
parent 198c83ea70
commit 2b5f5abb2b
3 changed files with 41 additions and 8 deletions

View File

@@ -72,13 +72,24 @@ public:
bool operator<(const AndroidDeviceInfo &other) const;
};
//! Defines an Android system image.
class SystemImage
{
public:
bool isValid() const { return (apiLevel != -1) && !abiName.isEmpty(); }
int apiLevel = -1;
QString abiName;
};
using SystemImageList = QList<SystemImage>;
class SdkPlatform
{
public:
int apiLevel = -1;
QString name;
Utils::FileName installedLocation;
QStringList abis;
SystemImageList systemImages;
};
using SdkPlatformList = QList<SdkPlatform>;