Top |
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.
gboolean pk_results_set_exit_code (PkResults *results
,PkExitEnum exit_enum
);
Sets the results object to have the given exit code.
Since: 0.5.2
gboolean pk_results_set_error_code (PkResults *results
,PkError *item
);
Adds some error details to the results set.
Since: 0.5.2
gboolean pk_results_add_package (PkResults *results
,PkPackage *item
);
Adds a package to the results set.
Since: 0.5.3
gboolean pk_results_add_details (PkResults *results
,PkDetails *item
);
Adds some package details to the results set.
Since: 0.5.2
gboolean pk_results_add_update_detail (PkResults *results
,PkUpdateDetail *item
);
Adds some update details to the results set.
Since: 0.5.2
gboolean pk_results_add_category (PkResults *results
,PkCategory *item
);
Adds a category item to the results set.
Since: 0.5.2
gboolean pk_results_add_distro_upgrade (PkResults *results
,PkDistroUpgrade *item
);
Adds a distribution upgrade item to the results set.
Since: 0.5.2
gboolean pk_results_add_require_restart (PkResults *results
,PkRequireRestart *item
);
Adds a require restart item to the results set.
Since: 0.5.2
gboolean pk_results_add_transaction (PkResults *results
,PkTransactionPast *item
);
Adds a transaction item to the results set.
Since: 0.5.2
gboolean pk_results_add_files (PkResults *results
,PkFiles *item
);
Adds some files details to the results set.
Since: 0.5.2
gboolean pk_results_add_repo_signature_required (PkResults *results
,PkRepoSignatureRequired *item
);
Adds some repository signature details to the results set.
Since: 0.5.2
gboolean pk_results_add_eula_required (PkResults *results
,PkEulaRequired *item
);
Adds some EULA details to the results set.
Since: 0.5.2
gboolean pk_results_add_media_change_required (PkResults *results
,PkMediaChangeRequired *item
);
Adds some media change details to the results set.
Since: 0.5.2
gboolean pk_results_add_repo_detail (PkResults *results
,PkRepoDetail *item
);
Adds some repository details to the results set.
Since: 0.5.2
PkExitEnum
pk_results_get_exit_code (PkResults *results
);
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
PkPackageSack *
pk_results_get_package_sack (PkResults *results
);
Gets a package sack from the transaction.
Since: 0.5.2
PkError *
pk_results_get_error_code (PkResults *results
);
Gets the last error code from the transaction.
Since: 0.5.2
PkRoleEnum
pk_results_get_role (PkResults *results
);
Gets the role that produced these results.
Since: 0.7.5
PkBitfield
pk_results_get_transaction_flags (PkResults *results
);
Gets the transaction flag for these results.
Since: 0.8.1
PkRestartEnum
pk_results_get_require_restart_worst (PkResults *results
);
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.
Since: 0.5.2
GPtrArray *
pk_results_get_package_array (PkResults *results
);
Gets the packages from the transaction.
A GPtrArray array of PkPackage's, free with g_ptr_array_unref()
.
[element-type PkPackage][transfer container]
Since: 0.5.2
GPtrArray *
pk_results_get_details_array (PkResults *results
);
Gets the package details from the transaction.
A GPtrArray array of PkDetails's, free with g_ptr_array_unref()
.
[element-type PkDetails][transfer container]
Since: 0.5.2
GPtrArray *
pk_results_get_update_detail_array (PkResults *results
);
Gets the update details from the transaction.
A GPtrArray array of PkUpdateDetail's, free with g_ptr_array_unref()
.
[element-type PkUpdateDetail][transfer container]
Since: 0.5.2
GPtrArray *
pk_results_get_category_array (PkResults *results
);
Gets the categories from the transaction.
A GPtrArray array of PkCategory's, free with g_ptr_array_unref()
.
[element-type PkCategory][transfer container]
Since: 0.5.2
GPtrArray *
pk_results_get_distro_upgrade_array (PkResults *results
);
Gets the distribution upgrades from the transaction.
A GPtrArray array of PkDistroUpgrade's, free with g_ptr_array_unref()
.
[element-type PkDistroUpgrade][transfer container]
Since: 0.5.2
GPtrArray *
pk_results_get_require_restart_array (PkResults *results
);
Gets the require restarts from the transaction.
A GPtrArray array of PkRequireRestart's, free with g_ptr_array_unref()
.
[element-type PkRequireRestart][transfer container]
Since: 0.5.2
GPtrArray *
pk_results_get_transaction_array (PkResults *results
);
Gets the transactions from the transaction.
A GPtrArray array of PkTransactionPast's, free with g_ptr_array_unref()
.
[element-type PkTransactionPast][transfer container]
Since: 0.5.2
GPtrArray *
pk_results_get_files_array (PkResults *results
);
Gets the files from the transaction.
A GPtrArray array of PkFiles's, free with g_ptr_array_unref()
.
[element-type PkFiles][transfer container]
Since: 0.5.2
GPtrArray *
pk_results_get_repo_signature_required_array
(PkResults *results
);
Gets the repository signatures required from the transaction.
A GPtrArray array of PkRepoSignatureRequired's, free with g_ptr_array_unref()
.
[element-type PkRepoSignatureRequired][transfer container]
Since: 0.5.2
GPtrArray *
pk_results_get_eula_required_array (PkResults *results
);
Gets the eulas required from the transaction.
A GPtrArray array of PkEulaRequired's, free with g_ptr_array_unref()
.
[element-type PkEulaRequired][transfer container]
Since: 0.5.2
GPtrArray *
pk_results_get_media_change_required_array
(PkResults *results
);
Gets the media changes required from the transaction.
A GPtrArray array of PkMediaChangeRequired's, free with g_ptr_array_unref()
.
[element-type PkMediaChangeRequired][transfer container]
Since: 0.5.2
GPtrArray *
pk_results_get_repo_detail_array (PkResults *results
);
Gets the repository details from the transaction.
A GPtrArray array of PkRepoDetail's, free with g_ptr_array_unref()
.
[element-type PkRepoDetail][transfer container]
Since: 0.5.2