Class
PackageKitControl
Description [src]
class PackageKit.Control : GObject.Object
{
PkControlPrivate* priv
}
For querying data about PackageKit
A GObject to use for accessing PackageKit asynchronously.
Instance methods
pk_control_can_authorize_async
We may want to know before we run a method if we are going to be denied, accepted or challenged for authentication.
since: 0.5.2
pk_control_get_properties
Gets the properties the daemon supports. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
since: 0.5.3
pk_control_get_time_since_action_async
We may want to know how long it has been since we refreshed the cache or retrieved the update list.
since: 0.5.2
pk_control_get_time_since_action_finish
Gets the result from the asynchronous function.
since: 0.5.2
pk_control_get_transaction_list
Gets the transaction list in progress. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
since: 0.5.3
pk_control_get_transaction_list_async
Gets the transactions currently running in the daemon.
since: 0.5.2
pk_control_set_proxy
Sets the network proxy to use in the daemon. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
since: 0.6.3
pk_control_set_proxy2
Sets the network proxy to use in the daemon. Warning: this function is synchronous, and may block. Do not use it in GUI applications.
since: 0.6.13
pk_control_suggest_daemon_quit
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.
since: 0.6.2
pk_control_suggest_daemon_quit_async
Suggests to the daemon that it should quit as soon as possible.
since: 0.6.2
Properties
PackageKit.Control:reboot-required
Whether a reboot is required to complete package changes made since the
system was booted, either PK_RESTART_ENUM_NONE or
PK_RESTART_ENUM_SYSTEM.
unstable since: 2.0
PackageKit.Control:reboot-required-package-ids
The package IDs that caused PkControl:reboot-required to be set.
unstable since: 2.0
Signals
PackageKit.Control::installed-changed
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.
since: 1.2.9
PackageKit.Control::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.
PackageKit.Control::restart-schedule
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 compatible with the new daemon.
PackageKit.Control::transaction-list-changed
The ::transaction-list-changed signal is emitted when the list of transactions handled by the daemon is changed.
PackageKit.Control::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.
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 PackageKitControlClass {
GObjectClass parent_class;
void (* transaction_list_changed) (
PkControl* control,
gchar** transaction_ids
);
void (* updates_changed) (
PkControl* control
);
void (* repo_list_changed) (
PkControl* control
);
void (* network_state_changed) (
PkControl* control
);
void (* restart_schedule) (
PkControl* control
);
void (* locked) (
PkControl* control,
gboolean is_locked
);
void (* connection_changed) (
PkControl* control,
gboolean connected
);
void (* installed_changed) (
PkControl* control
);
void (* _pk_reserved1) (
void
);
void (* _pk_reserved2) (
void
);
void (* _pk_reserved3) (
void
);
void (* _pk_reserved4) (
void
);
}
No description available.
Class members
parent_class: GObjectClassNo description available.
transaction_list_changed: void (* transaction_list_changed) ( PkControl* control, gchar** transaction_ids )No description available.
updates_changed: void (* updates_changed) ( PkControl* control )No description available.
repo_list_changed: void (* repo_list_changed) ( PkControl* control )No description available.
network_state_changed: void (* network_state_changed) ( PkControl* control )No description available.
restart_schedule: void (* restart_schedule) ( PkControl* control )No description available.
locked: void (* locked) ( PkControl* control, gboolean is_locked )No description available.
connection_changed: void (* connection_changed) ( PkControl* control, gboolean connected )No description available.
installed_changed: void (* installed_changed) ( PkControl* control )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.