ZifCategory

ZifCategory — Category object

Synopsis

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

Object Hierarchy

  GObject
   +----ZifCategory

Properties

  "cat-id"                   gchar*                : Read / Write
  "icon"                     gchar*                : Read / Write
  "name"                     gchar*                : Read / Write
  "parent-id"                gchar*                : Read / Write
  "summary"                  gchar*                : Read / Write

Description

This GObject represents a category in the group system.

Details

ZifCategoryPrivate

typedef struct _ZifCategoryPrivate ZifCategoryPrivate;

Private ZifCategory data


ZifCategory

typedef struct _ZifCategory ZifCategory;


ZifCategoryClass

typedef struct {
	GObjectClass		parent_class;
} ZifCategoryClass;


zif_category_new ()

ZifCategory *       zif_category_new                    (void);

Returns :

a new ZifCategory object.

Since 0.5.4


zif_category_get_parent_id ()

const gchar *       zif_category_get_parent_id          (ZifCategory *category);

Gets the parent category id.

category :

The ZifCategory

Returns :

the 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 :

The ZifCategory

parent_id :

the 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 :

The ZifCategory

Returns :

the 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 :

The ZifCategory

cat_id :

the new value

Since 0.1.0


zif_category_get_name ()

const gchar *       zif_category_get_name               (ZifCategory *category);

Gets the name.

category :

The ZifCategory

Returns :

the 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 :

The ZifCategory

name :

the new value

Since 0.1.0


zif_category_get_summary ()

const gchar *       zif_category_get_summary            (ZifCategory *category);

Gets the summary.

category :

The ZifCategory

Returns :

the 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 :

The ZifCategory

summary :

the new value

Since 0.1.0


zif_category_get_icon ()

const gchar *       zif_category_get_icon               (ZifCategory *category);

Gets the icon filename.

category :

The ZifCategory

Returns :

the 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 :

The ZifCategory

icon :

the new value

Since 0.1.0

Property Details

The "cat-id" property

  "cat-id"                   gchar*                : Read / Write

Default value: NULL

Since 0.5.4


The "icon" property

  "icon"                     gchar*                : Read / Write

Default value: NULL

Since 0.5.4


The "name" property

  "name"                     gchar*                : Read / Write

Default value: NULL

Since 0.5.4


The "parent-id" property

  "parent-id"                gchar*                : Read / Write

Default value: NULL

Since 0.5.4


The "summary" property

  "summary"                  gchar*                : Read / Write

Default value: NULL

Since 0.5.4