PackageKitGlib.Control¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
[ |
r/w |
||
r/w |
|||
r/w |
|||
r/w |
|||
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
|
The ::restart_schedule signal is emitted when the packagekitd service has been restarted because it has been upgraded. |
|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class PackageKitGlib.Control(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
PackageKitGlib.Control
object.- Return type:
New in version 0.5.2.
- can_authorize_async(action_id, cancellable, callback, *user_data)¶
- Parameters:
action_id (
str
) – The action ID, for instance “org.freedesktop.PackageKit.install-untrusted”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
We may want to know before we run a method if we are going to be denied, accepted or challenged for authentication.
New in version 0.5.2.
- can_authorize_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – theGio.AsyncResult
- Raises:
- Returns:
the
PackageKitGlib.AuthorizeEnum
orPackageKitGlib.AuthorizeEnum.UNKNOWN
if the method failed- Return type:
Gets the result from the asynchronous function.
New in version 0.5.2.
- get_daemon_state_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Gets the debugging state from the daemon.
New in version 0.5.2.
- get_daemon_state_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – theGio.AsyncResult
- Raises:
- Returns:
- Return type:
Gets the result from the asynchronous function.
New in version 0.5.2.
- get_properties(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
- Raises:
- Returns:
True
if the properties were set correctly- Return type:
Gets the properties the daemon supports. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- get_properties_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Gets global properties from the daemon.
New in version 0.5.2.
- get_properties_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – theGio.AsyncResult
- Raises:
- Returns:
True
if we set the proxy successfully- Return type:
Gets the result from the asynchronous function.
New in version 0.5.2.
- get_tid_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Gets a transacton ID from the daemon.
New in version 0.5.2.
- get_tid_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – theGio.AsyncResult
- Raises:
- Returns:
- Return type:
Gets the result from the asynchronous function.
New in version 0.5.2.
- get_time_since_action_async(role, cancellable, callback, *user_data)¶
- Parameters:
role (
PackageKitGlib.RoleEnum
) – the role enum, e.g.PackageKitGlib.RoleEnum.GET_UPDATES
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
We may want to know how long it has been since we refreshed the cache or retrieved the update list.
New in version 0.5.2.
- get_time_since_action_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – theGio.AsyncResult
- Raises:
- Returns:
True
if the daemon serviced the request- Return type:
Gets the result from the asynchronous function.
New in version 0.5.2.
- get_transaction_list(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
- Raises:
- Returns:
The list of transaction id’s, or
None
, free withGLib.strfreev
()- Return type:
[
str
]
Gets the transaction list in progress. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.5.3.
- get_transaction_list_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Gets the transactions currently running in the daemon.
New in version 0.5.2.
- get_transaction_list_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – theGio.AsyncResult
- Raises:
- Returns:
A GStrv list of transaction ID’s, free with
GLib.strfreev
()- Return type:
[
str
]
Gets the result from the asynchronous function.
New in version 0.5.2.
- set_proxy(proxy_http, proxy_ftp, cancellable)¶
- Parameters:
proxy_http (
str
) – the HTTP proxy serverproxy_ftp (
str
) – the FTP proxy servercancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
- Raises:
- Returns:
True
if the proxy was set correctlyNOTE: This is just provided for backwards compatibility. Clients should really be using
PackageKitGlib.Control.set_proxy2
().- Return type:
Sets the network proxy to use in the daemon. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.6.3.
- set_proxy2(proxy_http, proxy_https, proxy_ftp, proxy_socks, no_proxy, pac, cancellable)¶
- Parameters:
proxy_http (
str
) – the HTTP proxy serverproxy_https (
str
) – the HTTPS proxy serverproxy_ftp (
str
) – the FTP proxy serverproxy_socks (
str
) – the SOCKS proxy serverno_proxy (
str
) – the list of download IPs that shouldn’t go through the proxypac (
str
) – the PAC stringcancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
- Raises:
- Returns:
True
if the proxy was set correctly- Return type:
Sets the network proxy to use in the daemon. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.6.13.
- set_proxy2_async(proxy_http, proxy_https, proxy_ftp, proxy_socks, no_proxy, pac, cancellable, callback, *user_data)¶
- Parameters:
proxy_http (
str
) – a HTTP proxy string such as “username:password`server`.lan:8080”, orNone
proxy_https (
str
) – a HTTPS proxy string such as “username:password`server`.lan:8080”, orNone
proxy_ftp (
str
) – a FTP proxy string such as “server.lan:8080”, orNone
proxy_socks (
str
) – a SOCKS proxy string such as “server.lan:8080”, orNone
no_proxy (
str
) – a list of download IPs that shouldn’t go through the proxy, orNone
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Set a proxy on the PK daemon
New in version 0.6.13.
- set_proxy_async(proxy_http, proxy_ftp, cancellable, callback, *user_data)¶
- Parameters:
proxy_http (
str
) – a HTTP proxy string such as “username:password`server`.lan:8080”proxy_ftp (
str
) – a FTP proxy string such as “server.lan:8080”cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Set a proxy on the PK daemon
NOTE: This is just provided for backwards compatibility. Clients should really be using
PackageKitGlib.Control.set_proxy2_async
().New in version 0.5.2.
- set_proxy_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – theGio.AsyncResult
- Raises:
- Returns:
True
if we set the proxy successfully- Return type:
Gets the result from the asynchronous function.
New in version 0.5.2.
- suggest_daemon_quit(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
- Raises:
- Returns:
True
if the suggestion was sent- Return type:
Suggests to the daemon that it should quit as soon as possible. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
New in version 0.6.2.
- suggest_daemon_quit_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
Suggests to the daemon that it should quit as soon as possible.
New in version 0.6.2.
- suggest_daemon_quit_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – theGio.AsyncResult
- Raises:
- Returns:
True
if the suggestion was sent- Return type:
Gets the result from the asynchronous function.
New in version 0.6.2.
- do_installed_changed() virtual¶
- do_network_state_changed() virtual¶
- do_repo_list_changed() virtual¶
- do_restart_schedule() virtual¶
- do_updates_changed() virtual¶
Signal Details¶
- PackageKitGlib.Control.signals.installed_changed(control)¶
- Signal Name:
installed-changed
- Flags:
- Parameters:
control (
PackageKitGlib.Control
) – The object which received the signal
The
::installed-changed
signal is emitted when the list of installed apps may have changed and the control program may have to update some UI.New in version 1.2.9.
- PackageKitGlib.Control.signals.repo_list_changed(control)¶
- Signal Name:
repo-list-changed
- Flags:
- Parameters:
control (
PackageKitGlib.Control
) – The object which received the signal
The
::repo-list-changed
signal is emitted when the repo list may have changed and the control program may have to update some UI.
- PackageKitGlib.Control.signals.restart_schedule(control)¶
- Signal Name:
restart-schedule
- Flags:
- Parameters:
control (
PackageKitGlib.Control
) – The object which received the signal
The ::restart_schedule signal is emitted when the packagekitd service has been restarted because it has been upgraded. Client programs should reload themselves when it is convenient to do so, as old client tools may not be compatable with the new daemon.
- PackageKitGlib.Control.signals.transaction_list_changed(control, transaction_ids)¶
- Signal Name:
transaction-list-changed
- Flags:
- Parameters:
control (
PackageKitGlib.Control
) – The object which received the signaltransaction_ids ([
str
]) – an #GStrv array of transaction ID’s
The
::transaction-list-changed
signal is emitted when the list of transactions handled by the daemon is changed.
- PackageKitGlib.Control.signals.updates_changed(control)¶
- Signal Name:
updates-changed
- Flags:
- Parameters:
control (
PackageKitGlib.Control
) – The object which received the signal
The
::updates-changed
signal is emitted when the update list may have changed and the control program may have to update some UI.
Property Details¶
- PackageKitGlib.Control.props.backend_author¶
-
New in version 0.5.2.
- PackageKitGlib.Control.props.backend_description¶
-
New in version 0.5.2.
- PackageKitGlib.Control.props.backend_name¶
-
New in version 0.5.2.
- PackageKitGlib.Control.props.connected¶
-
New in version 0.5.3.
- PackageKitGlib.Control.props.distro_id¶
-
New in version 0.5.5.
- PackageKitGlib.Control.props.filters¶
-
New in version 0.5.2.
- PackageKitGlib.Control.props.groups¶
-
New in version 0.5.2.
- PackageKitGlib.Control.props.locked¶
-
New in version 0.5.3.
- PackageKitGlib.Control.props.mime_types¶
-
New in version 0.8.1.
- PackageKitGlib.Control.props.network_state¶
- Name:
network-state
- Type:
- Default Value:
- Flags:
New in version 0.5.3.
- PackageKitGlib.Control.props.provides¶
-
New in version 0.8.8.
- PackageKitGlib.Control.props.roles¶
-
New in version 0.5.2.
- PackageKitGlib.Control.props.version_major¶
-
New in version 0.5.2.
- PackageKitGlib.Control.props.version_micro¶
-
New in version 0.5.2.