Task
Object Hierarchy:
Description:
Namespace: Pk
Package: packagekit-glib2
Content:
Properties:
- public bool allow_downgrade { get; set; }
true
if package downgrades are allowed. - public bool allow_reinstall { get; set; }
true
if package reinstallation shall be allowed during transaction. - public bool only_download { get; set; }
true
if we are just preparing the transaction for later. - public bool only_trusted { get; set; }
true
if only authenticated packages should be allowed in the transaction. - public bool simulate { get; set; }
true
if we are simulating.
Creation methods:
- public Task ()
Methods:
- public async Results depends_on_async (Bitfield filters, string[] package_ids, bool recursive, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Get the list of dependant packages.
- public Results depends_on_sync (Bitfield filters, string[] package_ids, bool recursive, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Get the list of dependent packages.
- public async Results download_packages_async (string[] package_ids, string directory, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Downloads packages
- public Results download_packages_sync (string[] package_ids, string directory, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Downloads packages
- public virtual void eula_question (uint request, Results results)
- public bool get_allow_downgrade ()
Gets if we are allow packages to be downgraded.
- public bool get_allow_reinstall ()
Gets if we allow packages to be reinstalled.
- public async Results get_categories_async (Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Get the categories available.
- public Results get_categories_sync (Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Get the categories available.
- public async Results get_details_async (string[] package_ids, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Gets details about packages.
- public Results get_details_sync (string[] package_ids, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Gets details about packages.
- public async Results get_files_async (string[] package_ids, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Get the files in a package.
- public Results get_files_sync (string[] package_ids, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Get the files in a package.
- public bool get_only_download ()
Gets if we are just preparing the transaction for later.
- public bool get_only_trusted ()
Gets if we allow only authenticated packages in the transactoin.
- public async Results get_packages_async (Bitfield filters, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Gets the list of packages.
- public Results get_packages_sync (Bitfield filters, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Gets the list of packages.
- public async Results get_repo_list_async (Bitfield filters, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Get the list of available repositories.
- public Results get_repo_list_sync (Bitfield filters, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Get the list of available repositories.
- public bool get_simulate ()
Gets if we are simulating.
- public async Results get_update_detail_async (string[] package_ids, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Gets details about updates.
- public Results get_update_detail_sync (string[] package_ids, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Gets details about updates.
- public async Results get_updates_async (Bitfield filters, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Gets the update lists.
- public Results get_updates_sync (Bitfield filters, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Gets the update lists.
- public async Results install_files_async (string[] files, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Install a file locally, and get the deps from the repositories.
- public Results install_files_sync (string[] files, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Install a file locally, and get the deps from the repositories.
- public async Results install_packages_async (string[] package_ids, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Merges in details about packages using resolve.
- public Results install_packages_sync (string[] package_ids, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Install a package of the newest and most correct version.
- public virtual void key_question (uint request, Results results)
- public virtual void media_change_question (uint request, Results results)
- public async Results refresh_cache_async (bool force, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Refresh the package cache.
- public Results refresh_cache_sync (bool force, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Refresh the package cache.
- public async Results remove_packages_async (string[] package_ids, bool allow_deps, bool autoremove, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Remove a package (optionally with dependancies) from the system.
- public Results remove_packages_sync (string[] package_ids, bool allow_deps, bool autoremove, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Remove a package (optionally with dependancies) from the system.
- public virtual void repair_question (uint request, Results results)
- public async Results repair_system_async (Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Recover the system from broken dependencies and aborted installations.
- public Results repair_system_sync (Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Recover from broken dependencies of installed packages or incomplete installations.
- public async Results repo_enable_async (string repo_id, bool enabled, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Enable or disable a specific repo.
- public Results repo_enable_sync (string repo_id, bool enabled, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Enable or disable a specific repo.
- public async Results required_by_async (Bitfield filters, string[] package_ids, bool recursive, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Get the packages this package requires.
- public Results required_by_sync (Bitfield filters, string[] package_ids, bool recursive, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Get the packages this package requires.
- public async Results resolve_async (Bitfield filters, string[] packages, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Resolves a package name to a package-id.
- public Results resolve_sync (Bitfield filters, string[] packages, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Resolves a package name to a package-id.
- public async Results search_details_async (Bitfield filters, string[] values, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Searches for some package details.
- public Results search_details_sync (Bitfield filters, string[] values, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Searches for some package details.
- public async Results search_files_async (Bitfield filters, string[] values, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Searches for specific files.
- public Results search_files_sync (Bitfield filters, string[] values, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Searches for specific files.
- public async Results search_groups_async (Bitfield filters, string[] values, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Searches the group lists.
- public Results search_groups_sync (Bitfield filters, string[] values, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Searches the group lists.
- public async Results search_names_async (Bitfield filters, string[] values, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Searches for a package name.
- public Results search_names_sync (Bitfield filters, string[] values, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Searches for a package name.
- public void set_allow_downgrade (bool allow_downgrade)
If package downgrades shall be allowed during transaction.
- public void set_allow_reinstall (bool allow_reinstall)
If package reinstallation shall be allowed during transaction.
- public void set_only_download (bool only_download)
If the transaction should be prepared (depsolved, packages downloaded, etc) but not committed.
- public void set_only_trusted (bool only_trusted)
If only authenticated packages should be allowed in the transaction.
- public void set_simulate (bool simulate)
If the simulate step should be run without the actual transaction.
- public virtual void simulate_question (uint request, Results results)
- public virtual void untrusted_question (uint request, Results results)
- public async Results update_packages_async (string[] package_ids, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Update specific packages to the newest available versions.
- public Results update_packages_sync (string[] package_ids, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Update specific packages to the newest available versions.
- public async void upgrade_system_async (string distro_id, UpgradeKind upgrade_kind, Cancellable? cancellable, ProgressCallback progress_callback)
This transaction will update the distro to the next version, which may involve just downloading the installer and setting up the boot device, or may involve doing an on-line upgrade.
- public Results upgrade_system_sync (string distro_id, UpgradeKind upgrade_kind, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
This transaction will update the distro to the next version, which may involve just downloading the installer and setting up the boot device, or may involve doing an on-line upgrade.
- public bool user_accepted (uint request)
Mark a EULA as accepted by the user.
- public bool user_declined (uint request)
Mark a EULA as declined by the user.
- public async Results what_provides_async (Bitfield filters, string[] values, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Find the package that provides some resource.
- public Results what_provides_sync (Bitfield filters, string[] values, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Find the package that provides some resource.
Inherited Members:
All known members inherited from class Pk.Client
- accept_eula
- accept_eula_async
- adopt
- adopt_async
- background
- cache_age
- changed
- create_helper_argv_envp
- depends_on
- depends_on_async
- details_with_deps_size
- download_packages
- download_packages_async
- get_background
- get_cache_age
- get_categories
- get_categories_async
- get_details
- get_details_async
- get_details_local
- get_details_local_async
- get_details_with_deps_size
- get_distro_upgrades
- get_distro_upgrades_async
- get_files
- get_files_async
- get_files_local
- get_files_local_async
- get_idle
- get_interactive
- get_locale
- get_old_transactions
- get_old_transactions_async
- get_packages
- get_packages_async
- get_progress
- get_progress_async
- get_repo_list
- get_repo_list_async
- get_update_detail
- get_update_detail_async
- get_updates
- get_updates_async
- idle
- install_files
- install_files_async
- install_packages
- install_packages_async
- install_signature
- install_signature_async
- interactive
- locale
- refresh_cache
- refresh_cache_async
- remove_packages
- remove_packages_async
- repair_system
- repair_system_async
- repo_enable
- repo_enable_async
- repo_remove
- repo_remove_async
- repo_set_data
- repo_set_data_async
- required_by
- required_by_async
- resolve
- resolve_async
- search_details
- search_details_async
- search_files
- search_files_async
- search_groups
- search_groups_async
- search_names
- search_names_async
- set_background
- set_cache_age
- set_details_with_deps_size
- set_interactive
- set_locale
- update_packages
- update_packages_async
- upgrade_system
- upgrade_system_async
- what_provides
- what_provides_async
All known members inherited from class GLib.Object