ZifCategory

ZifCategory — Category of packages

Synopsis

struct              ZifCategory;
struct              ZifCategoryClass;
ZifCategory *       zif_category_new                    (void);
const gchar *       zif_category_get_parent_id          (ZifCategory *category);
void                zif_category_set_parent_id          (ZifCategory *category,
                                                         const gchar *parent_id);
const gchar *       zif_category_get_id                 (ZifCategory *category);
void                zif_category_set_id                 (ZifCategory *category,
                                                         const gchar *cat_id);
const gchar *       zif_category_get_name               (ZifCategory *category);
void                zif_category_set_name               (ZifCategory *category,
                                                         const gchar *name);
const gchar *       zif_category_get_summary            (ZifCategory *category);
void                zif_category_set_summary            (ZifCategory *category,
                                                         const gchar *summary);
const gchar *       zif_category_get_icon               (ZifCategory *category);
void                zif_category_set_icon               (ZifCategory *category,
                                                         const gchar *icon);
                    ZifCategoryPrivate;

Description

This GObject represents a category in the group system.

Details

struct ZifCategory

struct ZifCategory {
	 GObject		 parent;
	 ZifCategoryPrivate *priv;
};


struct ZifCategoryClass

struct ZifCategoryClass {
	GObjectClass		parent_class;
};


zif_category_new ()

ZifCategory *       zif_category_new                    (void);

Returns :

A new ZifCategory object.

Since 0.1.0


zif_category_get_parent_id ()

const gchar *       zif_category_get_parent_id          (ZifCategory *category);

Gets the parent category id.

category :

A ZifCategory

Returns :

A string value, or NULL for unset.

Since 0.1.0


zif_category_set_parent_id ()

void                zif_category_set_parent_id          (ZifCategory *category,
                                                         const gchar *parent_id);

Sets the parent category id.

category :

A ZifCategory

parent_id :

A new value

Since 0.1.0


zif_category_get_id ()

const gchar *       zif_category_get_id                 (ZifCategory *category);

Gets the id specific to this category.

category :

A ZifCategory

Returns :

A string value, or NULL for unset.

Since 0.1.0


zif_category_set_id ()

void                zif_category_set_id                 (ZifCategory *category,
                                                         const gchar *cat_id);

Sets the id specific to this category.

category :

A ZifCategory

cat_id :

A new value

Since 0.1.0


zif_category_get_name ()

const gchar *       zif_category_get_name               (ZifCategory *category);

Gets the name.

category :

A ZifCategory

Returns :

A string value, or NULL for unset.

Since 0.1.0


zif_category_set_name ()

void                zif_category_set_name               (ZifCategory *category,
                                                         const gchar *name);

Sets the name.

category :

A ZifCategory

name :

A new value

Since 0.1.0


zif_category_get_summary ()

const gchar *       zif_category_get_summary            (ZifCategory *category);

Gets the summary.

category :

A ZifCategory

Returns :

A string value, or NULL for unset.

Since 0.1.0


zif_category_set_summary ()

void                zif_category_set_summary            (ZifCategory *category,
                                                         const gchar *summary);

Sets the summary.

category :

A ZifCategory

summary :

A new value

Since 0.1.0


zif_category_get_icon ()

const gchar *       zif_category_get_icon               (ZifCategory *category);

Gets the icon filename.

category :

A ZifCategory

Returns :

A string value, or NULL for unset.

Since 0.1.0


zif_category_set_icon ()

void                zif_category_set_icon               (ZifCategory *category,
                                                         const gchar *icon);

Sets the icon filename.

category :

A ZifCategory

icon :

A new value

Since 0.1.0


ZifCategoryPrivate

typedef struct _ZifCategoryPrivate ZifCategoryPrivate;

Private ZifCategory data