Control
Object Hierarchy:
Description:
Namespace: Pk
Package: packagekit-glib2
Content:
Properties:
- public string backend_author { owned get; set; }
- public string backend_description { owned get; set; }
- public string backend_name { owned get; set; }
- public bool connected { get; set; }
- public string distro_id { owned get; set; }
- public uint64 filters { get; set; }
- public uint64 groups { get; set; }
- public virtual bool locked { get; set; }
- public string[] mime_types { owned get; set; }
- public Network network_state { get; set; }
- public uint64 provides { get; set; }
- public uint64 roles { get; set; }
- public uint version_major { get; }
- public uint version_micro { get; }
- public uint version_minor { get; }
Creation methods:
- public Control ()
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