Class
PackageKitPackage
Description [src]
class PackageKit.Package : PackageKit.Source
{
PkPackagePrivate* priv
}
Package object
This GObject represents a package from a transaction.
These objects represent single items of data from the transaction, and are
often present in lists (PkResults) or just refcounted in client programs.
Constructors
pk_package_new_full
Creates a new PkPackage with all its main properties set. The package_id
has to be a valid package-id, as checked by pk_package_set_id().
unstable since: 2.0.0
Functions
pk_package_id_equal_fuzzy_arch
Only compare the name, version, and arch, where the architecture will fuzzy match with i*86.
since: 0.5.0
pk_package_id_split
Splits a PackageID into the correct number of parts, checking the correct number of delimiters are present.
since: 0.5.3
pk_package_ids_from_id
Form a composite string array of package_id’s from a single package_id.
since: 0.5.2
pk_package_ids_from_string
Form a composite string array of package_id’s from a delimited string.
since: 0.5.2
pk_package_ids_to_string
Cats the string array of package_id’s into one delimited string.
since: 0.5.2
Instance methods
pk_package_get_data
Gets the package data, a free-form field the backend may use to store whatever additional information it needs to identify or handle the package, for example whether it was installed automatically or manually. Most backends leave it empty.
since: 0.6.4
pk_package_get_origin
Gets the package origin, which is usually the repository ID that contains the package. A special origin is “local” for local packages that exist on disk but not in a repository.
unstable since: 2.0.0
pk_package_get_update_severity
Returns the package update severity, which is PK_SEVERITY_ENUM_NONE
if the package is not an update or its severity is not known.
since: 1.2.4
Properties
PackageKit.Package:update-severity
The PkSeverityEnum of the update, or PK_SEVERITY_ENUM_NONE if the
package is not an update or its severity is not known.
since: 1.2.4
Properties inherited from PkSource (2)
PackageKit.Source:role
since: 0.6.0
PackageKit.Source:transaction-id
since: 0.6.0
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct PackageKitPackageClass {
PkSourceClass parent_class;
void (* changed) (
PkPackage* package
);
void (* _pk_reserved1) (
void
);
void (* _pk_reserved2) (
void
);
void (* _pk_reserved3) (
void
);
void (* _pk_reserved4) (
void
);
void (* _pk_reserved5) (
void
);
}
No description available.
Class members
parent_class: PkSourceClassNo description available.
changed: void (* changed) ( PkPackage* package )No description available.
_pk_reserved1: void (* _pk_reserved1) ( void )No description available.
_pk_reserved2: void (* _pk_reserved2) ( void )No description available.
_pk_reserved3: void (* _pk_reserved3) ( void )No description available.
_pk_reserved4: void (* _pk_reserved4) ( void )No description available.
_pk_reserved5: void (* _pk_reserved5) ( void )No description available.