PkTransactionPast

## PkTransactionPast PkTransactionPast — TransactionPast object |

## Synopsis

    struct              PkTransactionPast;
    struct              PkTransactionPastClass;
    PkTransactionPast * pk_transaction_past_new             (void);
    const gchar *       pk_transaction_past_get_cmdline     (PkTransactionPast *past);
    const gchar *       pk_transaction_past_get_data        (PkTransactionPast *past);
    const gchar *       pk_transaction_past_get_id          (PkTransactionPast *past);
    const gchar *       pk_transaction_past_get_timespec    (PkTransactionPast *past);
    GDateTime *         pk_transaction_past_get_datetime    (PkTransactionPast *past);
    gint64              pk_transaction_past_get_timestamp   (PkTransactionPast *past);
    gboolean            pk_transaction_past_get_succeeded   (PkTransactionPast *past);
    guint               pk_transaction_past_get_duration    (PkTransactionPast *past);
    guint               pk_transaction_past_get_uid         (PkTransactionPast *past);
    PkRoleEnum          pk_transaction_past_get_role        (PkTransactionPast *past);

## Object Hierarchy

      GObject
       +----PkSource
             +----PkTransactionPast

## Properties

      "cmdline"                  gchar*                : Read / Write
      "data"                     gchar*                : Read / Write
      "duration"                 guint                 : Read / Write
      "role"                     guint                 : Read / Write
      "succeeded"                gboolean              : Read / Write
      "tid"                      gchar*                : Read / Write
      "timespec"                 gchar*                : Read / Write
      "uid"                      guint                 : Read / Write

## Description

This GObject represents a transaction_past from a transaction_past. These objects represent single items of data from the transaction, and are often present in lists (PkResults) or just refcounted in client programs.

## Details

### struct PkTransactionPast

    struct PkTransactionPast;

### struct PkTransactionPastClass

    struct PkTransactionPastClass {
    	PkSourceClass parent_class;
    	/* padding for future expansion */
    	void (*_pk_reserved1) (void);
    	void (*_pk_reserved2) (void);
    	void (*_pk_reserved3) (void);
    	void (*_pk_reserved4) (void);
    	void (*_pk_reserved5) (void);
    };

### pk_transaction_past_new ()

    PkTransactionPast * pk_transaction_past_new             (void);

Returns : | a new PkTransactionPast object.

Since 0.5.4

### pk_transaction_past_get_cmdline ()

    const gchar *       pk_transaction_past_get_cmdline     (PkTransactionPast *past);

Gets the past transaction cmdline value;

`past` : | a valid PkTransactionPast instance
Returns : | The transaction data

Since 0.8.11

### pk_transaction_past_get_data ()

    const gchar *       pk_transaction_past_get_data        (PkTransactionPast *past);

Gets the past transaction data;

`past` : | a valid PkTransactionPast instance
Returns : | The transaction data

Since 0.8.11

### pk_transaction_past_get_id ()

    const gchar *       pk_transaction_past_get_id          (PkTransactionPast *past);

Gets the past transaction ID value;

`past` : | a valid PkTransactionPast instance
Returns : | The transaction data

Since 0.8.11

### pk_transaction_past_get_timespec ()

    const gchar *       pk_transaction_past_get_timespec    (PkTransactionPast *past);

Gets the past transaction timespec value;

`past` : | a valid PkTransactionPast instance
Returns : | The transaction data

Since 0.8.11

### pk_transaction_past_get_datetime ()

    GDateTime *         pk_transaction_past_get_datetime    (PkTransactionPast *past);

Gets the past transaction date & time value;

`past` : | a valid PkTransactionPast instance
Returns : | The transaction data, or `NULL` if it's not available

Since 0.8.11

### pk_transaction_past_get_timestamp ()

    gint64              pk_transaction_past_get_timestamp   (PkTransactionPast *past);

Gets the past transaction timestamp

`past` : | a valid PkTransactionPast instance
Returns : | The transaction data, or 0 if it's not available

Since 0.8.11

### pk_transaction_past_get_succeeded ()

    gboolean            pk_transaction_past_get_succeeded   (PkTransactionPast *past);

Gets the past transaction succeeded value;

`past` : | a valid PkTransactionPast instance
Returns : | The transaction data

Since 0.8.11

### pk_transaction_past_get_duration ()

    guint               pk_transaction_past_get_duration    (PkTransactionPast *past);

Gets the past transaction duration;

`past` : | a valid PkTransactionPast instance
Returns : | The transaction data

Since 0.8.11

### pk_transaction_past_get_uid ()

    guint               pk_transaction_past_get_uid         (PkTransactionPast *past);

Gets the past transaction uid;

`past` : | a valid PkTransactionPast instance
Returns : | The transaction data

Since 0.8.11

### pk_transaction_past_get_role ()

    PkRoleEnum          pk_transaction_past_get_role        (PkTransactionPast *past);

Gets the past transaction role;

`past` : | a valid PkTransactionPast instance
Returns : | The transaction data

Since 0.8.11

## Property Details

### The `"cmdline"` property

      "cmdline"                  gchar*                : Read / Write

Default value: NULL

Since 0.5.4

### The `"data"` property

      "data"                     gchar*                : Read / Write

Default value: NULL

Since 0.5.4

### The `"duration"` property

      "duration"                 guint                 : Read / Write

Default value: 0

Since 0.5.4

### The `"role"` property

      "role"                     guint                 : Read / Write

Default value: 0

Since 0.5.4

### The `"succeeded"` property

      "succeeded"                gboolean              : Read / Write

Default value: FALSE

Since 0.5.4

### The `"tid"` property

      "tid"                      gchar*                : Read / Write

Default value: NULL

Since 0.5.4

### The `"timespec"` property

      "timespec"                 gchar*                : Read / Write

Default value: NULL

Since 0.5.4

### The `"uid"` property

      "uid"                      guint                 : Read / Write

Default value: 4294967295

Since 0.5.4