PackageKit Reference Manual: PkMessage

## PkMessage PkMessage — Message object |

## Functions

PkMessage * | pk_message_new ()
const gchar * | pk_message_get_details ()
PkMessageEnum | pk_message_get_kind ()

## Properties

gchar * | details | Read / Write
guint | type | Read / Write

## Types and Values

struct | PkMessage
struct | PkMessageClass

## Object Hierarchy

        GObject
        ╰── PkSource
            ╰── PkMessage

## Description

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

## Functions

### pk_message_new ()

    PkMessage *
    pk_message_new (void);

`pk_message_new` is deprecated and should not be used in newly-written code.

#### Returns

a new PkMessage object.

Since 0.5.4

### pk_message_get_details ()

    const gchar *
    pk_message_get_details (PkMessage *message);

`pk_message_get_details` is deprecated and should not be used in newly-written code.

Gets the message details.

#### Parameters

message | a valid PkMessage instance |

#### Returns

the details, or `NULL` if unset

Since 0.6.4

### pk_message_get_kind ()

    PkMessageEnum
    pk_message_get_kind (PkMessage *message);

`pk_message_get_kind` is deprecated and should not be used in newly-written code.

Gets the message kind

#### Parameters

message | a valid PkMessage instance |

#### Returns

the `PkMessageEnum`

Since 0.6.4

## Types and Values

### struct PkMessage

    struct PkMessage;

### struct PkMessageClass

    struct PkMessageClass {
    	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);
    };

## Property Details

### The `“details”` property

      “details”                  gchar *

Flags: Read / Write

Default value: NULL

Since 0.5.4

### The `“type”` property

      “type”                     guint

Flags: Read / Write

Default value: 0

Since 0.5.4