Pk.Results – packagekit-glib2 Reference Manual
Packages
packagekit-glib2
Pk
Results
inputs
progress
role
transaction_flags
Results
add_category
add_details
add_distro_upgrade
add_eula_required
add_files
add_media_change_required
add_package
add_repo_detail
add_repo_signature_required
add_require_restart
add_transaction
add_update_detail
get_category_array
get_details_array
get_distro_upgrade_array
get_error_code
get_eula_required_array
get_exit_code
get_files_array
get_media_change_required_array
get_package_array
get_package_sack
get_repo_detail_array
get_repo_signature_required_array
get_require_restart_array
get_require_restart_worst
get_role
get_transaction_array
get_transaction_flags
get_update_detail_array
set_error_code
set_exit_code
set_role
Results
Object Hierarchy:
Description:
[
CCode
( type_id =
"pk_results_get_type ()"
) ]
public
class
Results
:
Object
Namespace:
Pk
Package:
packagekit-glib2
Content:
Properties:
public
uint
inputs
{
get
;
set
; }
public
Progress
progress
{
owned
get
;
set
; }
public
Role
role
{
get
;
set
; }
The
Role
or
pk_role_enum_unknown
if not set
public
uint64
transaction_flags
{
get
;
set
; }
A
Bitfield
containing
TransactionFlag
for this result.
Creation methods:
public
Results
()
Methods:
public
bool
add_category
(
Category
item)
Adds a category item to the results set.
public
bool
add_details
(
Details
item)
Adds some package details to the results set.
public
bool
add_distro_upgrade
(
DistroUpgrade
item)
Adds a distribution upgrade item to the results set.
public
bool
add_eula_required
(
EulaRequired
item)
Adds some EULA details to the results set.
public
bool
add_files
(
Files
item)
Adds some files details to the results set.
public
bool
add_media_change_required
(
MediaChangeRequired
item)
Adds some media change details to the results set.
public
bool
add_package
(
Package
item)
Adds a package to the results set.
public
bool
add_repo_detail
(
RepoDetail
item)
Adds some repository details to the results set.
public
bool
add_repo_signature_required
(
RepoSignatureRequired
item)
Adds some repository signature details to the results set.
public
bool
add_require_restart
(
RequireRestart
item)
Adds a require restart item to the results set.
public
bool
add_transaction
(
TransactionPast
item)
Adds a transaction item to the results set.
public
bool
add_update_detail
(
UpdateDetail
item)
Adds some update details to the results set.
public
GenericArray
<
unowned
Category
>
get_category_array
()
Gets the categories from the transaction.
public
GenericArray
<
unowned
Details
>
get_details_array
()
Gets the package details from the transaction.
public
GenericArray
<
unowned
DistroUpgrade
>
get_distro_upgrade_array
()
Gets the distribution upgrades from the transaction.
public
Error
get_error_code
()
Gets the last error code from the transaction.
public
GenericArray
<
unowned
EulaRequired
>
get_eula_required_array
()
Gets the eulas required from the transaction.
public
Exit
get_exit_code
()
Gets the exit enum.
public
GenericArray
<
unowned
Files
>
get_files_array
()
Gets the files from the transaction.
public
GenericArray
<
unowned
MediaChangeRequired
>
get_media_change_required_array
()
Gets the media changes required from the transaction.
public
GenericArray
<
unowned
Package
>
get_package_array
()
Gets the packages from the transaction.
public
PackageSack
get_package_sack
()
Gets a package sack from the transaction.
public
GenericArray
<
unowned
RepoDetail
>
get_repo_detail_array
()
Gets the repository details from the transaction.
public
GenericArray
<
unowned
RepoSignatureRequired
>
get_repo_signature_required_array
()
Gets the repository signatures required from the transaction.
public
GenericArray
<
unowned
RequireRestart
>
get_require_restart_array
()
Gets the require restarts from the transaction.
public
Restart
get_require_restart_worst
()
This method returns the 'worst' restart of all the transactions.
public
Role
get_role
()
Gets the role that produced these results.
public
GenericArray
<
unowned
TransactionPast
>
get_transaction_array
()
Gets the transactions from the transaction.
public
Bitfield
get_transaction_flags
()
Gets the transaction flag for these results.
public
GenericArray
<
unowned
UpdateDetail
>
get_update_detail_array
()
Gets the update details from the transaction.
public
bool
set_error_code
(
Error
item)
Adds some error details to the results set.
public
bool
set_exit_code
(
Exit
exit_enum)
Sets the results object to have the given exit code.
public
bool
set_role
(
Role
role)
Sets the results object to have the given role enum.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref