Hemera::SoftwareManagement::ApplicationPackage Class Reference

Represents an application on the system, or an installable application. More...

#include <HemeraSoftwareManagement/ApplicationPackage>

Public Member Functions

 ApplicationPackage ()
 Creates an invalid Application package. More...
 
 ApplicationPackage (const ApplicationPackage &other)
 Copy constructor. More...
 
bool isValid () const
 
QString applicationId () const
 
QString applicationName () const
 
QString description () const
 
QUrl icon () const
 
QString packageName () const
 
QString version () const
 
quint64 packageSize () const
 
quint64 installedSize () const
 
bool isInstalled () const
 

Detailed Description

Represents an application on the system, or an installable application.

ApplicationPackage represents an application on the system. The application could be installed and known to the software manager, installed and recognized as a service (so information are limited), uninstalled and known to the package manager, or generated from a package file (e.g.: the result of hsdk full-build). Depending on the case, it might or might not have some fields available.

Note
ApplicationPackage is an implicitly shared object.
See also
Hemera::SoftwareManagement::SoftwareManager
Hemera::SoftwareManagement::ServiceManager

Constructor & Destructor Documentation

Hemera::SoftwareManagement::ApplicationPackage::ApplicationPackage ( )

Creates an invalid Application package.

Hemera::SoftwareManagement::ApplicationPackage::ApplicationPackage ( const ApplicationPackage other)

Copy constructor.

Member Function Documentation

bool Hemera::SoftwareManagement::ApplicationPackage::isValid ( ) const
Returns
Whether this application package is valid or not.
QString Hemera::SoftwareManagement::ApplicationPackage::applicationId ( ) const
Returns
The application ID of the application
QString Hemera::SoftwareManagement::ApplicationPackage::applicationName ( ) const
Returns
The application name of the application
QString Hemera::SoftwareManagement::ApplicationPackage::description ( ) const
Returns
The description of the application
QUrl Hemera::SoftwareManagement::ApplicationPackage::icon ( ) const
Returns
The URL to the icon of the application
Note
This field might be empty depending on the source of the ApplicationPackage
QString Hemera::SoftwareManagement::ApplicationPackage::packageName ( ) const
Returns
The package name of the application
Note
This field might be empty depending on the source of the ApplicationPackage
QString Hemera::SoftwareManagement::ApplicationPackage::version ( ) const
Returns
The version of the application
quint64 Hemera::SoftwareManagement::ApplicationPackage::packageSize ( ) const
Returns
The size, in bytes, of the package of the application
Note
This field might be empty depending on the source of the ApplicationPackage
quint64 Hemera::SoftwareManagement::ApplicationPackage::installedSize ( ) const
Returns
The installed size, in bytes, of the application
Note
This field might be empty depending on the source of the ApplicationPackage
bool Hemera::SoftwareManagement::ApplicationPackage::isInstalled ( ) const
Returns
Whether the application is installed or not