Class

PackageKitPackageSack

Description [src]

class PackageKit.PackageSack : GObject.Object
{
  PkPackageSackPrivate* priv
}

A sack of packages that can be manipulated

A package sack is a set of packages that can have operations done on them in parallel. This might be adding summary text for bare package ID’s, or to add package or update details.

Ancestors

Constructors

pk_package_sack_new
No description available.

since: 0.5.2

Instance methods

pk_package_sack_add_package

Adds a package to the sack.

since: 0.5.2

pk_package_sack_add_package_by_id

Adds a package reference to the sack.

since: 0.5.2

pk_package_sack_add_packages_from_file

Adds packages from package-list file to a PkPackageSack.

pk_package_sack_clear

Empty all the packages from the sack.

since: 0.5.2

pk_package_sack_filter

Returns a new package sack which only matches packages that return TRUE from the filter function.

since: 0.6.3

pk_package_sack_filter_by_info

Returns a new package sack which only matches packages that match the specified info enum value.

since: 0.6.2

pk_package_sack_find_by_id

Finds a package in a sack from reference. As soon as one package is found the search is stopped.

since: 0.5.2

pk_package_sack_find_by_id_name_arch

Finds a package in a sack by package name and architecture. As soon as one package is found the search is stopped.

since: 0.8.16

pk_package_sack_get_array

Gets the package array from the sack.

since: 0.6.1

pk_package_sack_get_details

Gets the properties the daemon supports. Warning: this function is synchronous, and may block. Do not use it in GUI applications.

since: 0.6.0

pk_package_sack_get_details_async

Merges in details about packages.

pk_package_sack_get_ids

Returns all the Package IDs in the sack.

since: 0.5.3

pk_package_sack_get_size

Gets the number of packages in the sack.

since: 0.5.2

pk_package_sack_get_total_bytes

Gets the total size of the package sack in bytes.

since: 0.5.2

pk_package_sack_get_update_detail

Gets the properties the daemon supports. Warning: this function is synchronous, and may block. Do not use it in GUI applications.

since: 0.6.0

pk_package_sack_get_update_detail_async

Merges in update details about packages.

since: 0.5.2

pk_package_sack_merge_generic_finish

Gets the result from the asynchronous function.

since: 0.5.2

pk_package_sack_remove_by_filter

Removes from the package sack any packages that return FALSE from the filter function.

since: 0.6.3

pk_package_sack_remove_package

Removes a package reference from the sack. The pointers have to match exactly.

since: 0.5.2

pk_package_sack_remove_package_by_id

Removes a package reference from the sack. As soon as one package is removed the search is stopped.

since: 0.5.2

pk_package_sack_resolve

Gets the properties the daemon supports. Warning: this function is synchronous, and may block. Do not use it in GUI applications.

since: 0.6.0

pk_package_sack_resolve_async

Merges in details about packages using resolve.

since: 0.5.2

pk_package_sack_sort

Sorts the package sack.

since: 0.6.1

pk_package_sack_to_file

Write the contents of a PkPackageSack to a package-list file.

since: 0.8.6

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

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 PackageKitPackageSackClass {
  GObjectClass parent_class;
  void (* changed) (
    PkPackageSack* sack
  );
  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: GObjectClass

No description available.

changed: void (* changed) ( PkPackageSack* sack )

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.PackageSackClass.changed
No description available.