PkMessage

PkMessage — Message object

Synopsis

struct              PkMessage;
struct              PkMessageClass;
const gchar *       pk_message_get_details              (PkMessage *message);
PkMessageEnum       pk_message_get_kind                 (PkMessage *message);
PkMessage *         pk_message_new                      (void);

Object Hierarchy

  GObject
   +----PkSource
         +----PkMessage

Properties

  "details"                  gchar*                : Read / Write
  "type"                     guint                 : Read / Write

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.

Details

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);
};

pk_message_get_details ()

const gchar *       pk_message_get_details              (PkMessage *message);

Gets the message details.

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);

Gets the message kind

message :

a valid PkMessage instance

Returns :

the PkMessageEnum

Since 0.6.4


pk_message_new ()

PkMessage *         pk_message_new                      (void);

Returns :

a new PkMessage object.

Since 0.5.4

Property Details

The "details" property

  "details"                  gchar*                : Read / Write

Default value: NULL

Since 0.5.4


The "type" property

  "type"                     guint                 : Read / Write

Default value: 0

Since 0.5.4