Top |
gchar * | backend-author | Read / Write |
gchar * | backend-description | Read / Write |
gchar * | backend-name | Read / Write |
gboolean | connected | Read / Write |
gchar * | distro-id | Read / Write |
guint64 | filters | Read / Write |
guint64 | groups | Read / Write |
gboolean | locked | Read / Write |
GStrv | mime-types | Read / Write |
PkNetworkEnum | network-state | Read / Write |
guint64 | provides | Read / Write |
guint64 | roles | Read / Write |
guint | version-major | Read |
guint | version-micro | Read |
guint | version-minor | Read |
void | repo-list-changed | Run Last |
void | restart-schedule | Run Last |
void | transaction-list-changed | Run Last |
void | updates-changed | Run Last |
GQuark
pk_control_error_quark (void
);
We are a GObject that sets errors
Since: 0.5.2
void pk_control_get_tid_async (PkControl *control
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Gets a transacton ID from the daemon.
control |
a valid PkControl instance |
|
cancellable |
a GCancellable or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.5.2
gchar * pk_control_get_tid_finish (PkControl *control
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.5.2
void pk_control_suggest_daemon_quit_async (PkControl *control
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Suggests to the daemon that it should quit as soon as possible.
control |
a valid PkControl instance |
|
cancellable |
a GCancellable or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.6.2
gboolean pk_control_suggest_daemon_quit_finish (PkControl *control
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.6.2
void pk_control_get_daemon_state_async (PkControl *control
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Gets the debugging state from the daemon.
control |
a valid PkControl instance |
|
cancellable |
a GCancellable or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.5.2
gchar * pk_control_get_daemon_state_finish (PkControl *control
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.5.2
void pk_control_set_proxy_async (PkControl *control
,const gchar *proxy_http
,const gchar *proxy_ftp
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Set a proxy on the PK daemon
NOTE: This is just provided for backwards compatibility.
Clients should really be using pk_control_set_proxy2_async()
.
control |
a valid PkControl instance |
|
proxy_http |
a HTTP proxy string such as "username:password |
|
proxy_ftp |
a FTP proxy string such as "server.lan:8080" |
|
cancellable |
a GCancellable or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.5.2
void pk_control_set_proxy2_async (PkControl *control
,const gchar *proxy_http
,const gchar *proxy_https
,const gchar *proxy_ftp
,const gchar *proxy_socks
,const gchar *no_proxy
,const gchar *pac
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Set a proxy on the PK daemon
control |
a valid PkControl instance |
|
proxy_http |
a HTTP proxy string such as "username:password |
|
proxy_https |
a HTTPS proxy string such as "username:password |
|
proxy_ftp |
a FTP proxy string such as "server.lan:8080", or |
|
proxy_socks |
a SOCKS proxy string such as "server.lan:8080", or |
|
no_proxy |
a list of download IPs that shouldn't go through the proxy, or |
|
pac |
a PAC string, or |
|
cancellable |
a GCancellable or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.6.13
gboolean pk_control_set_proxy_finish (PkControl *control
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.5.2
void pk_control_get_time_since_action_async (PkControl *control
,PkRoleEnum role
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
We may want to know how long it has been since we refreshed the cache or retrieved the update list.
control |
a valid PkControl instance |
|
role |
the role enum, e.g. |
|
cancellable |
a GCancellable or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.5.2
guint pk_control_get_time_since_action_finish (PkControl *control
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.5.2
void pk_control_get_transaction_list_async (PkControl *control
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Gets the transactions currently running in the daemon.
control |
a valid PkControl instance |
|
cancellable |
a GCancellable or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.5.2
gchar ** pk_control_get_transaction_list_finish (PkControl *control
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.5.2
void pk_control_can_authorize_async (PkControl *control
,const gchar *action_id
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
We may want to know before we run a method if we are going to be denied, accepted or challenged for authentication.
control |
a valid PkControl instance |
|
action_id |
The action ID, for instance "org.freedesktop.PackageKit.install-untrusted" |
|
cancellable |
a GCancellable or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.5.2
PkAuthorizeEnum pk_control_can_authorize_finish (PkControl *control
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.5.2
void pk_control_get_properties_async (PkControl *control
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Gets global properties from the daemon.
control |
a valid PkControl instance |
|
cancellable |
a GCancellable or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.5.2
gboolean pk_control_get_properties_finish (PkControl *control
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.5.2
“backend-author”
property“backend-author” gchar *
Flags: Read / Write
Default value: NULL
Since: 0.5.2
“backend-description”
property“backend-description” gchar *
Flags: Read / Write
Default value: NULL
Since: 0.5.2
“backend-name”
property“backend-name” gchar *
Flags: Read / Write
Default value: NULL
Since: 0.5.2
“network-state”
property“network-state” PkNetworkEnum
Flags: Read / Write
Default value: PK_NETWORK_ENUM_LAST
Since: 0.5.3
“repo-list-changed”
signalvoid user_function (PkControl *control, gpointer user_data)
The ::repo-list-changed signal is emitted when the repo list may have changed and the control program may have to update some UI.
control |
the PkControl instance that emitted the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“restart-schedule”
signalvoid user_function (PkControl *control, gpointer user_data)
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.
control |
the PkControl instance that emitted the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“transaction-list-changed”
signalvoid user_function (PkControl *control, GStrv transaction_ids, gpointer user_data)
The ::transaction-list-changed signal is emitted when the list of transactions handled by the daemon is changed.
Flags: Run Last
“updates-changed”
signalvoid user_function (PkControl *control, gpointer user_data)
The ::updates-changed signal is emitted when the update list may have changed and the control program may have to update some UI.
control |
the PkControl instance that emitted the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last