![]() |
![]() |
![]() |
PackageKit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
PkTaskListPrivate; PkTaskList; PkTaskList * pk_task_list_new (void); gboolean pk_task_list_refresh (PkTaskList *tlist); gboolean pk_task_list_print (PkTaskList *tlist); gboolean pk_task_list_free (PkTaskList *tlist); gboolean pk_task_list_contains_role (PkTaskList *tlist, PkRoleEnum role); guint pk_task_list_get_size (PkTaskList *tlist); PkTaskListItem * pk_task_list_get_item (PkTaskList *tlist, guint item);
"changed" : Run Last "error-code" : Run Last "finished" : Run Last "message" : Run Last "status-changed" : Run Last
These provide a good way to keep a list of the jobs being processed so we can see what type of jobs and thier status easily.
gboolean pk_task_list_refresh (PkTaskList *tlist);
Not normally required, but force a refresh
|
|
Returns : |
gboolean pk_task_list_contains_role (PkTaskList *tlist, PkRoleEnum role);
|
|
|
|
Returns : |
PkTaskListItem * pk_task_list_get_item (PkTaskList *tlist, guint item);
|
|
|
|
Returns : |
"changed"
signalvoid user_function (PkTaskList *tlist, gpointer user_data) : Run Last
The ::changed signal is emitted when the transaction list has changed
|
the PkTaskList instance that emitted the signal |
|
user data set when the signal handler was connected. |
"error-code"
signalvoid user_function (PkTaskList *pktasklist, gpointer arg1, guint arg2, gchar *arg3, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
|
|
|
|
user data set when the signal handler was connected. |
"finished"
signalvoid user_function (PkTaskList *tlist, gpointer client, guint exit, guint runtime, gpointer user_data) : Run Last
The ::finished signal is emitted when the transaction is complete.
|
the PkTaskList instance that emitted the signal |
|
the PkClient instance that caused the signal |
|
the PkExitEnum status value, e.g. PK_EXIT_ENUM_SUCCESS |
|
the time in seconds the transaction has been running |
|
user data set when the signal handler was connected. |
"message"
signalvoid user_function (PkTaskList *tlist, gpointer client, guint message, gchar *details, gpointer user_data) : Run Last
The ::message signal is emitted when the transaction wants to tell the user something.
|
the PkTaskList instance that emitted the signal |
|
the PkClient instance that caused the signal |
|
the PkMessageEnum type of the message, e.g. PK_MESSAGE_ENUM_BROKEN_MIRROR
|
|
the non-localised message details |
|
user data set when the signal handler was connected. |
"status-changed"
signalvoid user_function (PkTaskList *tlist, gpointer user_data) : Run Last
The ::status-changed signal is emitted when one of the status' of the transaction list clients has changed
|
the PkTaskList instance that emitted the signal |
|
user data set when the signal handler was connected. |