ZifUpdateInfo

ZifUpdateInfo — Update information

Synopsis

#define             ZIF_UPDATE_INFO_ERROR
struct              ZifUpdateInfo;
                    ZifUpdateInfoPrivate;
struct              ZifUpdateInfoClass;
enum                ZifUpdateInfoKind;
ZifUpdateInfo *     zif_update_info_new                 (void);
ZifUpdateInfoKind   zif_update_info_get_kind            (ZifUpdateInfo *update_info);
const gchar *       zif_update_info_get_url             (ZifUpdateInfo *update_info);
const gchar *       zif_update_info_get_title           (ZifUpdateInfo *update_info);
void                zif_update_info_set_kind            (ZifUpdateInfo *update_info,
                                                         ZifUpdateInfoKind kind);
void                zif_update_info_set_url             (ZifUpdateInfo *update_info,
                                                         const gchar *url);
void                zif_update_info_set_title           (ZifUpdateInfo *update_info,
                                                         const gchar *title);
const gchar *       zif_update_info_kind_to_string      (ZifUpdateInfoKind type);
ZifUpdateInfoKind   zif_update_info_kind_from_string    (const gchar *type);

Object Hierarchy

  GObject
   +----ZifUpdateInfo

Properties

  "kind"                     guint                 : Read
  "title"                    gchar*                : Read
  "url"                      gchar*                : Read

Description

Details

ZIF_UPDATE_INFO_ERROR

#define ZIF_UPDATE_INFO_ERROR		(zif_update_info_error_quark ())


struct ZifUpdateInfo

struct ZifUpdateInfo;


ZifUpdateInfoPrivate

typedef struct _ZifUpdateInfoPrivate ZifUpdateInfoPrivate;


struct ZifUpdateInfoClass

struct ZifUpdateInfoClass {
	GObjectClass parent_class;
};


enum ZifUpdateInfoKind

typedef enum {
	ZIF_UPDATE_INFO_KIND_CVE,
	ZIF_UPDATE_INFO_KIND_BUGZILLA,
	ZIF_UPDATE_INFO_KIND_VENDOR,
	ZIF_UPDATE_INFO_KIND_LAST
} ZifUpdateInfoKind;


zif_update_info_new ()

ZifUpdateInfo *     zif_update_info_new                 (void);

Returns :

A new ZifUpdateInfo instance.

Since 0.1.0


zif_update_info_get_kind ()

ZifUpdateInfoKind   zif_update_info_get_kind            (ZifUpdateInfo *update_info);

Gets the update info kind.

update_info :

A ZifUpdateInfo

Returns :

The kind of update info, e.g. ZIF_UPDATE_INFO_KIND_CVE.

Since 0.1.0


zif_update_info_get_url ()

const gchar *       zif_update_info_get_url             (ZifUpdateInfo *update_info);

Gets the URL for this update.

update_info :

A ZifUpdateInfo

Returns :

A string value, or NULL.

Since 0.1.0


zif_update_info_get_title ()

const gchar *       zif_update_info_get_title           (ZifUpdateInfo *update_info);

Gets the title for this update.

update_info :

A ZifUpdateInfo

Returns :

A string value, or NULL.

Since 0.1.0


zif_update_info_set_kind ()

void                zif_update_info_set_kind            (ZifUpdateInfo *update_info,
                                                         ZifUpdateInfoKind kind);

Sets the update info kind.

update_info :

A ZifUpdateInfo

kind :

A kind of update info, e.g. ZIF_UPDATE_INFO_KIND_BUGZILLA

Since 0.1.0


zif_update_info_set_url ()

void                zif_update_info_set_url             (ZifUpdateInfo *update_info,
                                                         const gchar *url);

Sets the update info URL.

update_info :

A ZifUpdateInfo

url :

The update info URL

Since 0.1.0


zif_update_info_set_title ()

void                zif_update_info_set_title           (ZifUpdateInfo *update_info,
                                                         const gchar *title);

Sets the update info title.

update_info :

A ZifUpdateInfo

title :

The update info title

Since 0.1.0


zif_update_info_kind_to_string ()

const gchar *       zif_update_info_kind_to_string      (ZifUpdateInfoKind type);

Gets the string representation of a ZifUpdateInfoKind.

type :

A ZifUpdateInfoKind enumerated value

Returns :

A string

zif_update_info_kind_from_string ()

ZifUpdateInfoKind   zif_update_info_kind_from_string    (const gchar *type);

Gets the string representation of a ZifUpdateInfoKind.

type :

A ZifUpdateInfoKind enumerated value

Returns :

A string

Property Details

The "kind" property

  "kind"                     guint                 : Read

Default value: 0

Since 0.1.0


The "title" property

  "title"                    gchar*                : Read

Default value: NULL

Since 0.1.0


The "url" property

  "url"                      gchar*                : Read

Default value: NULL

Since 0.1.0