Class

PackageKitTask

Description [src]

class PackageKit.Task : PackageKit.Client
{
  PkTaskPrivate* priv
}

An abstract package task GObject, dealing with unsigned transactions, GPG keys and EULA requests.

Ancestors

Constructors

pk_task_new
No description available.

since: 0.5.2

Instance methods

pk_task_depends_on_async

Get the list of dependent packages.

since: 0.6.5

pk_task_depends_on_sync

Get the list of dependent packages.

since: 0.6.5

pk_task_download_packages_async

Downloads packages.

since: 0.6.5

pk_task_download_packages_sync

Downloads packages.

since: 0.6.5

pk_task_generic_finish

Gets the result from the asynchronous function.

since: 0.5.2

pk_task_get_allow_downgrade

Gets if we are allow packages to be downgraded.

since: 1.0.2

pk_task_get_allow_reinstall

Gets if we allow packages to be reinstalled.

since: 1.0.2

pk_task_get_details_async

Gets details about packages.

since: 0.6.5

pk_task_get_details_sync

Gets details about packages.

since: 0.6.5

pk_task_get_files_async

Get the files in a package.

since: 0.6.5

pk_task_get_files_sync

Get the files in a package.

since: 0.6.5

pk_task_get_only_download

Gets if we are just preparing the transaction for later.

since: 0.8.1

pk_task_get_only_trusted

Gets if we allow only authenticated packages in the transaction.

since: 0.9.5

pk_task_get_packages_async

Gets the list of packages.

since: 0.6.5

pk_task_get_packages_sync

Gets the list of packages.

since: 0.6.5

pk_task_get_repo_list_async

Get the list of available repositories.

since: 0.6.5

pk_task_get_repo_list_sync

Get the list of available repositories.

since: 0.6.5

pk_task_get_simulate

Gets if we are simulating.

since: 0.6.10

pk_task_get_update_detail_async

Gets details about updates.

since: 0.6.5

pk_task_get_update_detail_sync

Gets details about updates.

since: 0.6.5

pk_task_get_updates_async

Gets the update lists.

since: 0.6.5

pk_task_get_updates_sync

Gets the update lists.

since: 0.6.5

pk_task_install_files_async

Install a file locally, and get the deps from the repositories. This is useful for double clicking on a .rpm or .deb file.

since: 0.5.2

pk_task_install_files_sync

Install a file locally, and get the deps from the repositories. This is useful for double clicking on a .rpm or .deb file.

since: 0.5.3

pk_task_install_packages_async

Merges in details about packages using resolve.

since: 0.5.2

pk_task_install_packages_sync

Install a package of the newest and most correct version.

since: 0.5.3

pk_task_refresh_cache_async

Refresh the package cache.

since: 0.6.5

pk_task_refresh_cache_sync

Refresh the package cache.

since: 0.6.5

pk_task_remove_packages_async

Remove a package (optionally with dependencies) from the system. If allow_deps is set to FALSE, and other packages would have to be removed, then the transaction would fail.

since: 0.5.2

pk_task_remove_packages_sync

Remove a package (optionally with dependancies) from the system. If allow_deps is set to FALSE, and other packages would have to be removed, then the transaction would fail.

since: 0.5.3

pk_task_repair_system_async

Recover the system from broken dependencies and aborted installations.

since: 0.7.2

pk_task_repair_system_sync

Recover from broken dependencies of installed packages or incomplete installations.

since: 0.7.2

pk_task_repo_enable_async

Enable or disable a specific repo.

since: 0.6.5

pk_task_repo_enable_sync

Enable or disable a specific repo.

since: 0.6.5

pk_task_required_by_async

Get the packages this package requires.

since: 0.6.5

pk_task_required_by_sync

Get the packages this package requires.

since: 0.6.5

pk_task_resolve_async

Resolves a package name to a package-id.

since: 0.6.5

pk_task_resolve_sync

Resolves a package name to a package-id.

since: 0.6.5

pk_task_search_details_async

Searches for some package details.

since: 0.6.5

pk_task_search_details_sync

Searches for some package details.

since: 0.6.5

pk_task_search_files_async

Searches for specific files.

since: 0.6.5

pk_task_search_files_sync

Searches for specific files.

since: 0.6.5

pk_task_search_groups_async

Searches the group lists.

since: 0.6.5

pk_task_search_groups_sync

Searches the group lists.

since: 0.6.5

pk_task_search_names_async

Searches for a package name.

since: 0.6.5

pk_task_search_names_sync

Searches for a package name.

since: 0.6.5

pk_task_set_allow_downgrade

If package downgrades shall be allowed during transaction.

since: 1.0.2

pk_task_set_allow_reinstall

If package reinstallation shall be allowed during transaction.

since: 1.0.2

pk_task_set_only_download

If the transaction should be prepared (depsolved, packages downloaded, etc) but not committed.

since: 0.8.1

pk_task_set_only_trusted

If only authenticated packages should be allowed in the transaction.

since: 0.9.5

pk_task_set_simulate

If the simulate step should be run without the actual transaction.

since: 0.6.10

pk_task_update_packages_async

Update specific packages to the newest available versions.

since: 0.5.2

pk_task_update_packages_sync

Update specific packages to the newest available versions.

since: 0.5.3

pk_task_upgrade_system_async

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.

since: 1.0.12

pk_task_upgrade_system_sync

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.

since: 1.0.12

pk_task_user_accepted

Mark a EULA as accepted by the user.

since: 0.5.2

pk_task_user_declined

Mark a EULA as declined by the user.

since: 0.5.2

pk_task_what_provides_async

Find the package that provides some resource.

since: 0.6.5

pk_task_what_provides_sync

Find the package that provides some resource.

since: 0.6.5

Methods inherited from PkClient (77)

Please see PkClient for a full list of methods.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

PackageKit.Task:allow-downgrade

TRUE if package downgrades are allowed.

since: 1.0.2

PackageKit.Task:allow-reinstall

TRUE if package reinstallation shall be allowed during transaction.

since: 1.0.2

PackageKit.Task:only-download

TRUE if we are just preparing the transaction for later.

since: 0.8.1

PackageKit.Task:only-trusted

TRUE if only authenticated packages should be allowed in the transaction.

since: 0.9.5

PackageKit.Task:simulate

TRUE if we are simulating.

since: 0.5.2

Properties inherited from PkClient (5)
PackageKit.Client:background
No description available.

since: 0.5.3

PackageKit.Client:cache-age

The cache age in seconds, where G_MAXUINT means cache “never expires”.

since: 0.6.10

PackageKit.Client:idle

Whether there are transactions in progress on this client or not.

since: 0.5.4

PackageKit.Client:interactive
No description available.

since: 0.5.4

PackageKit.Client:locale
No description available.

since: 0.5.3

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 PackageKitTaskClass {
  PkClientClass parent_class;
  void (* untrusted_question) (
    PkTask* task,
    guint request,
    PkResults* results
  );
  void (* key_question) (
    PkTask* task,
    guint request,
    PkResults* results
  );
  void (* eula_question) (
    PkTask* task,
    guint request,
    PkResults* results
  );
  void (* simulate_question) (
    PkTask* task,
    guint request,
    PkResults* results
  );
  void (* repair_question) (
    PkTask* task,
    guint request,
    PkResults* results
  );
  void (* _pk_reserved1) (
void
  );
  void (* _pk_reserved2) (
void
  );
  void (* _pk_reserved3) (
void
  );
  void (* _pk_reserved4) (
void
  );
  
}

No description available.

Class members
parent_class: PkClientClass

No description available.

untrusted_question: void (* untrusted_question) ( PkTask* task, guint request, PkResults* results )

No description available.

key_question: void (* key_question) ( PkTask* task, guint request, PkResults* results )

No description available.

eula_question: void (* eula_question) ( PkTask* task, guint request, PkResults* results )

No description available.

simulate_question: void (* simulate_question) ( PkTask* task, guint request, PkResults* results )

No description available.

repair_question: void (* repair_question) ( PkTask* task, guint request, PkResults* results )

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.

Virtual methods

PackageKit.TaskClass.eula_question
No description available.

PackageKit.TaskClass.key_question
No description available.

PackageKit.TaskClass.repair_question
No description available.

PackageKit.TaskClass.simulate_question
No description available.

PackageKit.TaskClass.untrusted_question
No description available.