PkTransactionList

PkTransactionList — A nice way to keep a list of the jobs being processed

Functions

Signals

void added Run Last
void removed Run Last

Object Hierarchy

    GObject
    ╰── PkTransactionList

Description

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.

Functions

pk_transaction_list_new ()

PkTransactionList *
pk_transaction_list_new (void);

Since: 0.5.3


pk_transaction_list_get_ids ()

gchar **
pk_transaction_list_get_ids (PkTransactionList *tlist);

Gets the string lists of transaction IDs recognised as pending, running or finished by the daemon.

Parameters

tlist

a valid PkTransactionList instance

 

Returns

the array of strings, free with g_strfreev().

[transfer full]

Since: 0.5.3

Types and Values

Signal Details

The “added” signal

void
user_function (PkTransactionList *tlist,
               gchar             *tid,
               gpointer           user_data)

The ::added signal is emitted when a tid has been added to the transaction list

Parameters

tlist

the PkTransactionList instance that emitted the signal

 

tid

the transaction id

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last


The “removed” signal

void
user_function (PkTransactionList *tlist,
               gchar             *tid,
               gpointer           user_data)

The ::removed signal is emitted when a tid has been removed from the transaction list

Parameters

tlist

the PkTransactionList instance that emitted the signal

 

tid

the transaction id

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last