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.

Ancestors

Constructors

pk_package_new
No description available.

since: 0.5.4

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_build

Generate a PackageID.

since: 0.5.0

pk_package_id_check

Check if a Packageid is well formed.

since: 0.5.0

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_id_to_printable

Formats the PackageID to be printable to the user.

since: 0.5.2

pk_package_ids_add_id

Adds a package_id to an existing list.

since: 0.5.2

pk_package_ids_add_ids

Adds a package_id to an existing list.

since: 0.5.2

pk_package_ids_check

Check the string array of package_id’s for validity.

since: 0.5.2

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_present_id

Finds out if a package ID is present in the list.

since: 0.5.2

pk_package_ids_remove_id

Removes a package ID from the the list.

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_equal

Do the PkPackage‘s have the same ID.

since: 0.5.4

pk_package_equal_id

Do the PkPackage‘s have the same ID.

since: 0.5.4

pk_package_get_arch

Gets the package arch.

since: 0.6.4

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_id

Gets the package object ID.

since: 0.5.4

pk_package_get_info

Gets the package object ID.

since: 0.5.4

pk_package_get_name

Gets the package name.

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_summary

Gets the package object ID.

since: 0.5.4

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

pk_package_get_version

Gets the package version.

since: 0.6.4

pk_package_parse

Parses the data to populate the PkPackage.

since: 0.8.11

pk_package_print

Prints details about the package to standard out.

since: 0.5.4

pk_package_set_id

Sets the package object to have the given ID.

since: 0.5.4

pk_package_set_info

Sets the package info enum.

since: 0.8.14

pk_package_set_summary

Sets the package summary.

since: 0.8.14

pk_package_set_update_severity

Set an update severity for the package.

since: 1.2.4

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

PackageKit.Package:description
No description available.

since: 0.5.4

PackageKit.Package:group
No description available.

since: 0.5.4

PackageKit.Package:info
No description available.

since: 0.5.4

PackageKit.Package:license
No description available.

since: 0.5.4

PackageKit.Package:package-id
No description available.

since: 0.5.4

PackageKit.Package:size
No description available.

since: 0.5.4

PackageKit.Package:summary
No description available.

since: 0.5.4

PackageKit.Package:update-changelog
No description available.

since: 0.5.4

PackageKit.Package:update-issues
No description available.

unstable since: 2.0.0

PackageKit.Package:update-obsoletes
No description available.

since: 0.5.4

PackageKit.Package:update-restart
No description available.

since: 0.5.4

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

PackageKit.Package:update-state
No description available.

since: 0.5.4

PackageKit.Package:update-text
No description available.

since: 0.5.4

PackageKit.Package:update-time-issued
No description available.

unstable since: 2.0.0

PackageKit.Package:update-updates
No description available.

since: 0.5.4

PackageKit.Package:url
No description available.

since: 0.5.4

Properties inherited from PkSource (2)
PackageKit.Source:role
No description available.

since: 0.6.0

PackageKit.Source:transaction-id
No description available.

since: 0.6.0

Signals

PackageKit.Package::changed

The ::changed signal is emitted when the package data may have changed.

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: PkSourceClass

No 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.

Virtual methods

PackageKit.PackageClass.changed
No description available.