C

AppItem Class

class QtAndroidAppsUtils::AppItem

A basic Android app element. More...

Header: #include <AppItem>
qmake: QT += androidappsutils
Inherits: QObject

Properties

Public Functions

AppItem(const QString &packageName, const QString &appName, const QImage &appIcon, bool isSystemApp, QObject *parent = nullptr)
virtual ~AppItem() override
QImage appIcon() const
const QString appIconString() const
QString appName() const
bool isSystemApp() const
QString packageName() const

Detailed Description

Property Documentation

[read-only] appIcon : const QString

Holds the app icon as a Uri encoded data QString.

Access functions:

const QString appIconString() const

[read-only] appName : const QString

Holds the human-readable app name.

Access functions:

QString appName() const

[read-only] isSystemApp : const bool

Holds true if the app is a system app, false otherwise.

Access functions:

bool isSystemApp() const

[read-only] packageName : const QString

Holds the name of the app's package.

Access functions:

QString packageName() const

Member Function Documentation

AppItem::AppItem(const QString &packageName, const QString &appName, const QImage &appIcon, bool isSystemApp, QObject *parent = nullptr)

Creates an Android app element with the package name packageName, human readable name appName, and an icon appIcon. The isSystemApp argument distinguishes between a user and a system app. The parent argument takes an optional QObject.

[override virtual noexcept] AppItem::~AppItem()

The class destructor.

QImage AppItem::appIcon() const

Returns the app icon as a QImage.

const QString AppItem::appIconString() const

Returns the app icon as a Uri encoded data QString.

Note: Getter function for property appIcon.

QString AppItem::appName() const

Returns the human-readable app name.

Note: Getter function for property appName.

bool AppItem::isSystemApp() const

Returns true if the app is a system app, false otherwise.

Note: Getter function for property isSystemApp.

QString AppItem::packageName() const

Returns the app package name.

Note: Getter function for property packageName.

Available under certain Qt licenses.
Find out more.