PackageInfo

Since: BlackBerry 10.0.0

#include <bb/PackageInfo>

To link against this class, add the following line to your .pro file: LIBS += -lbb

The PackageInfo class provides access to metadata related to the package containing the application.

Package metadata is available in the BlackBerry Archive (BAR) manifest of this application. The BAR manifest contains attributes set by the developer and the signing server.

All properties available through this class are read-only and constant.

To get the unique identifier that represents the package, use installId().

bb::ApplicationInfo provides metadata for the application itself.


Overview

Properties Index

Public Functions Index

Properties

QString author[read-only]

Represents the package author.

Since:

BlackBerry 10.0.0

QString authorSigningHash[read-only]

Represents the token assigned by the signing authority for the author of the package.

Since:

BlackBerry 10.0.0

QString compatibilityVersion[read-only]

Represents the version of the specification that the package adheres to.

The value adheres to the format n.n when n is [0-65535] and 0.0 is considered an invalid value.

Since:

BlackBerry 10.0.0

QString description[read-only]

Represents the package description.

Since:

BlackBerry 10.0.0

QString installId[read-only]

Represents the unique token used by the system to identify the package when it is installed.

Since:

BlackBerry 10.0.0

QVariantList locales[read-only]

Represents the locales the package metadata are localized in.

Since:

BlackBerry 10.0.0

QString name[read-only]

Represents the name of the package.

Since:

BlackBerry 10.0.0

QString signingHash[read-only]

Represents the token assigned by the signing authority for the package.

Since:

BlackBerry 10.0.0

QString systemDependency[read-only]

Represents the minimum OS version that the package requires.

The value adheres to the format n.n.n.n when n is [0-65535] and 0.0.0.0 considered an invalid value.

Since:

BlackBerry 10.0.0

QString version[read-only]

Represents the package version.

The value adheres to the format n.n.n.n when n is [0-65535] and 0.0.0.0 considered an invalid value.

Since:

BlackBerry 10.0.0

QString versionSigningHash[read-only]

Represents the token assigned by the signing authority for the package's version.

Since:

BlackBerry 10.0.0

Public Functions

PackageInfo (

Initializes a new instance of the PackageInfo class.

Parameters
parent

If not 0, the supplied parent will be responsible for deleting this instance.

Since:

BlackBerry 10.0.0

virtual~PackageInfo ()

Destructor.

Since:

BlackBerry 10.0.0

QString author ()

Retrieves the author of the package.

Return:

The package author. An empty QString is an invalid value.

Since:

BlackBerry 10.0.0

QString authorSigningHash ()

Retrieves the package author signing hash.

This is a token assigned by the signing server.
Return:

The package author hash. An empty QString is an invalid value.

Since:

BlackBerry 10.0.0

QString compatibilityVersion ()

Retrieves the version of the BAR specification that the package was created against.

The value returned adheres to the format [0-65535].[0-65535].
Return:

The version of the BAR specification that the package adheres to. 0.0 is an invalid value.

Since:

BlackBerry 10.0.0

QString description ()

Retrieves the description of the package set by the package author.

Return:

The package description if available, otherwise an empty QString.

Since:

BlackBerry 10.0.0

QString installId ()

Retrieves the unique token that represents the package on the device.

Return:

The unique identifier for this package. An empty QString is an invalid value.

Since:

BlackBerry 10.0.0

bb::PackageLocaleList locales ()

Retrieves the list of locales for which metadata is available.

The value returned is a QList of QLocale instances.
Return:

The package locales.

Since:

BlackBerry 10.0.0

QString name ()

Retrieves the codename specified by the package author for the package.

Return:

The package codename. An empty QString is an invalid value.

Since:

BlackBerry 10.0.0

QString signingHash ()

Retrieves the package signing hash.

This is a token assigned by the signing server.
Return:

The package hash. An empty QString is an invalid value.

Since:

BlackBerry 10.0.0

QString systemDependency ()

Retrieves the minimum system version that this package requires.

The value returned adheres to the format [0-65535].[0-65535].[0-65535].[0-65535].
Return:

The package system dependency if available, otherwise 0.0.0.0.

Since:

BlackBerry 10.0.0

QString version ()

Retrieves the version of the package.

The value returned adheres to the format [0-65535].[0-65535].[0-65535].[0-65535].
Return:

The package version. 0.0.0.0 is an invalid value.

Since:

BlackBerry 10.0.0

QString versionSigningHash ()

Retrieves the package version signing hash.

This is a token assigned by the signing server.
Return:

The package version hash. An empty QString is an invalid value.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus