Control
Object Hierarchy:
Description:
[ CCode ( type_id = "pk_control_get_type ()" ) ]
public class Control : Object
Content:
Properties:
Creation methods:
Methods:
- public async Authorize can_authorize_async (string action_id, Cancellable? cancellable) throws Error
We may want to know before we run a method if we are going to be
denied, accepted or challenged for authentication.
- public virtual void connection_changed (bool connected)
- public async string get_daemon_state_async (Cancellable? cancellable) throws Error
Gets the debugging state from the daemon.
- public bool get_properties (Cancellable? cancellable = null) throws Error
Gets the properties the daemon supports.
- public async bool get_properties_async (Cancellable? cancellable) throws Error
Gets global properties from the daemon.
- public async string get_tid_async (Cancellable? cancellable) throws Error
Gets a transacton ID from the daemon.
- public async uint get_time_since_action_async (Role role, Cancellable? cancellable) throws Error
We may want to know how long it has been since we refreshed the cache
or retrieved the update list.
- public string[] get_transaction_list (Cancellable? cancellable = null) throws Error
Gets the transaction list in progress.
- public async string[] get_transaction_list_async (Cancellable? cancellable) throws Error
Gets the transactions currently running in the daemon.
- public virtual void network_state_changed ()
- public bool set_proxy (string proxy_http, string proxy_ftp, Cancellable? cancellable = null) throws Error
Sets the network proxy to use in the daemon.
- public bool set_proxy2 (string proxy_http, string proxy_https, string proxy_ftp, string proxy_socks, string no_proxy, string pac, Cancellable? cancellable = null) throws Error
Sets the network proxy to use in the daemon.
- public async void set_proxy2_async (string proxy_http, string proxy_https, string proxy_ftp, string proxy_socks, string no_proxy, string pac, Cancellable? cancellable)
Set a proxy on the PK daemon
- public async bool set_proxy_async (string proxy_http, string proxy_ftp, Cancellable? cancellable) throws Error
Set a proxy on the PK daemon
- public bool suggest_daemon_quit (Cancellable? cancellable = null) throws Error
Suggests to the daemon that it should quit as soon as possible.
- public async bool suggest_daemon_quit_async (Cancellable? cancellable) throws Error
Suggests to the daemon that it should quit as soon as possible.
Signals:
- public virtual signal void repo_list_changed ()
The repo_list_changed signal is emitted
when the repo list may have changed and the control program may have to update some UI.
- public virtual signal void restart_schedule ()
The restart_schedule signal is emitted
when the packagekitd service has been restarted because it has been upgraded.
- public virtual signal void transaction_list_changed (string[] transaction_ids)
The transaction_list_changed signal is
emitted when the list of transactions handled by the daemon is changed.
- public virtual signal void updates_changed ()
The updates_changed signal is emitted when
the update list may have changed and the control program may have to update some UI.
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