Class

PackageKitResults

Description [src]

class PackageKit.Results : GObject.Object
{
  PkResultsPrivate* priv
}

Transaction results

This GObject allows a client program to query the results sent from PackageKit. This will include Package(), ErrorCode() and all the other types of objects. Everything is refcounted, so ensure you unref when done with the data.

Ancestors

Constructors

pk_results_new
No description available.

since: 0.5.2

Instance methods

pk_results_add_details

Adds some package details to the results set.

since: 0.5.2

pk_results_add_distro_upgrade

Adds a distribution upgrade item to the results set.

since: 0.5.2

pk_results_add_eula_required

Adds some EULA details to the results set.

since: 0.5.2

pk_results_add_files

Adds some files details to the results set.

since: 0.5.2

pk_results_add_package

Adds a package to the results set.

since: 0.5.3

pk_results_add_repo_detail

Adds some repository details to the results set.

since: 0.5.2

pk_results_add_repo_signature_required

Adds some repository signature details to the results set.

since: 0.5.2

pk_results_add_require_restart

Adds a require restart item to the results set.

since: 0.5.2

pk_results_add_transaction

Adds a transaction item to the results set.

since: 0.5.2

pk_results_add_update_detail

Adds some update details to the results set.

since: 0.5.2

pk_results_get_details_array

Gets the package details from the transaction.

since: 0.5.2

pk_results_get_distro_upgrade_array

Gets the distribution upgrades from the transaction.

since: 0.5.2

pk_results_get_error_code

Gets the last error code from the transaction.

since: 0.5.2

pk_results_get_eula_required_array

Gets the eulas required from the transaction.

since: 0.5.2

pk_results_get_exit_code

Gets the exit enum. You probably don’t want to be using this function, and instead using the much more useful pk_results_get_error_code() function.

since: 0.5.2

pk_results_get_files_array

Gets the files from the transaction.

since: 0.5.2

pk_results_get_package_array

Gets the packages from the transaction.

since: 0.5.2

pk_results_get_package_sack

Gets a package sack from the transaction.

since: 0.5.2

pk_results_get_repo_detail_array

Gets the repository details from the transaction.

since: 0.5.2

pk_results_get_repo_signature_required_array

Gets the repository signatures required from the transaction.

since: 0.5.2

pk_results_get_require_restart_array

Gets the require restarts from the transaction.

since: 0.5.2

pk_results_get_require_restart_worst

This method returns the ‘worst’ restart of all the transactions. It is needed as multiple sub-transactions may emit require-restart with different values, and we always want to get the most invasive of all.

since: 0.5.2

pk_results_get_role

Gets the role that produced these results.

since: 0.7.5

pk_results_get_transaction_array

Gets the transactions from the transaction.

since: 0.5.2

pk_results_get_transaction_flags

Gets the transaction flag for these results.

since: 0.8.1

pk_results_get_update_detail_array

Gets the update details from the transaction.

since: 0.5.2

pk_results_set_error_code

Adds some error details to the results set.

since: 0.5.2

pk_results_set_exit_code

Sets the results object to have the given exit code.

since: 0.5.2

pk_results_set_role

Sets the results object to have the given role enum.

since: 1.1.8

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

PackageKit.Results:inputs
No description available.

since: 0.5.3

PackageKit.Results:progress
No description available.

since: 0.5.3

PackageKit.Results:role

The PkRoleEnum or PK_ROLE_ENUM_UNKNOWN if not set.

since: 0.5.2

PackageKit.Results:transaction-flags

A PkBitfield containing PkTransactionFlagEnum for this result.

since: 0.8.1

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 PackageKitResultsClass {
  GObjectClass parent_class;
  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.

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