PackageKitGlib.Results¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
|||
r/w |
The progress instance |
||
r/w |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class PackageKitGlib.Results(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
PackageKitGlib.Resultsobject.- Return type:
New in version 0.5.2.
- add_category(item)¶
- Parameters:
item (
PackageKitGlib.Category) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds a category item to the results set.
New in version 0.5.2.
- add_details(item)¶
- Parameters:
item (
PackageKitGlib.Details) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds some package details to the results set.
New in version 0.5.2.
- add_distro_upgrade(item)¶
- Parameters:
item (
PackageKitGlib.DistroUpgrade) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds a distribution upgrade item to the results set.
New in version 0.5.2.
- add_eula_required(item)¶
- Parameters:
item (
PackageKitGlib.EulaRequired) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds some EULA details to the results set.
New in version 0.5.2.
- add_files(item)¶
- Parameters:
item (
PackageKitGlib.Files) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds some files details to the results set.
New in version 0.5.2.
- add_media_change_required(item)¶
- Parameters:
item (
PackageKitGlib.MediaChangeRequired) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds some media change details to the results set.
New in version 0.5.2.
- add_package(item)¶
- Parameters:
item (
PackageKitGlib.Package) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds a package to the results set.
New in version 0.5.3.
- add_repo_detail(item)¶
- Parameters:
item (
PackageKitGlib.RepoDetail) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds some repository details to the results set.
New in version 0.5.2.
- add_repo_signature_required(item)¶
- Parameters:
item (
PackageKitGlib.RepoSignatureRequired) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds some repository signature details to the results set.
New in version 0.5.2.
- add_require_restart(item)¶
- Parameters:
item (
PackageKitGlib.RequireRestart) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds a require restart item to the results set.
New in version 0.5.2.
- add_transaction(item)¶
- Parameters:
item (
PackageKitGlib.TransactionPast) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds a transaction item to the results set.
New in version 0.5.2.
- add_update_detail(item)¶
- Parameters:
item (
PackageKitGlib.UpdateDetail) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds some update details to the results set.
New in version 0.5.2.
- get_category_array()¶
- Returns:
A
GLib.PtrArrayarray ofPackageKitGlib.Category's, free with g_ptr_array_unref().- Return type:
Gets the categories from the transaction.
New in version 0.5.2.
- get_details_array()¶
- Returns:
A
GLib.PtrArrayarray ofPackageKitGlib.Details's, free with g_ptr_array_unref().- Return type:
Gets the package details from the transaction.
New in version 0.5.2.
- get_distro_upgrade_array()¶
- Returns:
A
GLib.PtrArrayarray ofPackageKitGlib.DistroUpgrade's, free with g_ptr_array_unref().- Return type:
Gets the distribution upgrades from the transaction.
New in version 0.5.2.
- get_error_code()¶
- Returns:
A
PackageKitGlib.Error, orNone, free withGObject.Object.unref()- Return type:
Gets the last error code from the transaction.
New in version 0.5.2.
- get_eula_required_array()¶
- Returns:
A
GLib.PtrArrayarray ofPackageKitGlib.EulaRequired's, free with g_ptr_array_unref().- Return type:
Gets the eulas required from the transaction.
New in version 0.5.2.
- get_exit_code()¶
- Returns:
The
PackageKitGlib.ExitEnumorPackageKitGlib.ExitEnum.UNKNOWNfor error or if it was not set- Return type:
Gets the exit enum. You probably don’t want to be using this function, and instead using the much more useful
PackageKitGlib.Results.get_error_code() function.New in version 0.5.2.
- get_files_array()¶
- Returns:
A
GLib.PtrArrayarray ofPackageKitGlib.Files's, free with g_ptr_array_unref().- Return type:
Gets the files from the transaction.
New in version 0.5.2.
- get_media_change_required_array()¶
- Returns:
A
GLib.PtrArrayarray ofPackageKitGlib.MediaChangeRequired's, free with g_ptr_array_unref().- Return type:
Gets the media changes required from the transaction.
New in version 0.5.2.
- get_package_array()¶
- Returns:
A
GLib.PtrArrayarray ofPackageKitGlib.Package's, free with g_ptr_array_unref().- Return type:
Gets the packages from the transaction.
New in version 0.5.2.
- get_package_sack()¶
- Returns:
A
PackageKitGlib.PackageSackof data,GObject.Object.unref() to free.- Return type:
Gets a package sack from the transaction.
New in version 0.5.2.
- get_repo_detail_array()¶
- Returns:
A
GLib.PtrArrayarray ofPackageKitGlib.RepoDetail's, free with g_ptr_array_unref().- Return type:
Gets the repository details from the transaction.
New in version 0.5.2.
- get_repo_signature_required_array()¶
- Returns:
A
GLib.PtrArrayarray ofPackageKitGlib.RepoSignatureRequired's, free with g_ptr_array_unref().- Return type:
Gets the repository signatures required from the transaction.
New in version 0.5.2.
- get_require_restart_array()¶
- Returns:
A
GLib.PtrArrayarray ofPackageKitGlib.RequireRestart's, free with g_ptr_array_unref().- Return type:
Gets the require restarts from the transaction.
New in version 0.5.2.
- get_require_restart_worst()¶
- Returns:
a
PackageKitGlib.RestartEnumvalue, e.g.PackageKitGlib.RestartEnum.SYSTEM- Return type:
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.
For instance, if a transaction emits RequireRestart(system) and then RequireRestart(session) then pk_client_get_require_restart will return system as a session restart is implied with a system restart.
New in version 0.5.2.
- get_role()¶
- Returns:
The
PackageKitGlib.RoleEnumorPackageKitGlib.RoleEnum.UNKNOWNif not set- Return type:
Gets the role that produced these results.
New in version 0.7.5.
- get_transaction_array()¶
- Returns:
A
GLib.PtrArrayarray ofPackageKitGlib.TransactionPast's, free with g_ptr_array_unref().- Return type:
Gets the transactions from the transaction.
New in version 0.5.2.
- get_transaction_flags()¶
- Returns:
a #PkBitfield containing
PackageKitGlib.TransactionFlagEnum0 if not set- Return type:
Gets the transaction flag for these results.
New in version 0.8.1.
- get_update_detail_array()¶
- Returns:
A
GLib.PtrArrayarray ofPackageKitGlib.UpdateDetail's, free with g_ptr_array_unref().- Return type:
Gets the update details from the transaction.
New in version 0.5.2.
- set_error_code(item)¶
- Parameters:
item (
PackageKitGlib.Error) – the object to add to the array- Returns:
Trueif the value was set- Return type:
Adds some error details to the results set.
New in version 0.5.2.
- set_exit_code(exit_enum)¶
- Parameters:
exit_enum (
PackageKitGlib.ExitEnum) – the exit code- Returns:
Trueif the value was set- Return type:
Sets the results object to have the given exit code.
New in version 0.5.2.
- set_role(role)¶
- Parameters:
role (
PackageKitGlib.RoleEnum) – the role enum- Returns:
Trueif the value was set- Return type:
Sets the results object to have the given role enum.
New in version 1.1.8.
Property Details¶
- PackageKitGlib.Results.props.inputs¶
-
New in version 0.5.3.
- PackageKitGlib.Results.props.progress¶
- Name:
progress- Type:
- Default Value:
- Flags:
The progress instance
New in version 0.5.3.
- PackageKitGlib.Results.props.role¶
- Name:
role- Type:
- Default Value:
- Flags:
The
PackageKitGlib.RoleEnumorPackageKitGlib.RoleEnum.UNKNOWNif not setNew in version 0.5.2.
- PackageKitGlib.Results.props.transaction_flags¶
-
A #PkBitfield containing
PackageKitGlib.TransactionFlagEnumfor this result.New in version 0.8.1.