| PackageKit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
struct PkCategory; struct PkCategoryClass; PkCategory * pk_category_new (void); const gchar * pk_category_get_parent_id (PkCategory *category); void pk_category_set_parent_id (PkCategory *category,const gchar *parent_id); const gchar * pk_category_get_id (PkCategory *category); void pk_category_set_id (PkCategory *category,const gchar *cat_id); const gchar * pk_category_get_name (PkCategory *category); void pk_category_set_name (PkCategory *category,const gchar *name); const gchar * pk_category_get_summary (PkCategory *category); void pk_category_set_summary (PkCategory *category,const gchar *summary); const gchar * pk_category_get_icon (PkCategory *category); void pk_category_set_icon (PkCategory *category,const gchar *icon);
"cat-id" gchar* : Read / Write "icon" gchar* : Read / Write "name" gchar* : Read / Write "parent-id" gchar* : Read / Write "summary" gchar* : Read / Write
struct PkCategoryClass {
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);
};
PkCategory * pk_category_new (void);
Returns : |
a new PkCategory object. |
Since 0.5.4
const gchar * pk_category_get_parent_id (PkCategory *category);
Gets the parent category id.
|
The PkCategory
|
Returns : |
the string value, or NULL for unset. |
Since 0.6.2
void pk_category_set_parent_id (PkCategory *category,const gchar *parent_id);
Sets the parent category id.
|
The PkCategory
|
|
the new value |
Since 0.6.2
const gchar * pk_category_get_id (PkCategory *category);
Gets the id specific to this category.
|
The PkCategory
|
Returns : |
the string value, or NULL for unset. |
Since 0.6.2
void pk_category_set_id (PkCategory *category,const gchar *cat_id);
Sets the id specific to this category.
|
The PkCategory
|
|
the new value |
Since 0.6.2
const gchar * pk_category_get_name (PkCategory *category);
Gets the name.
|
The PkCategory
|
Returns : |
the string value, or NULL for unset. |
Since 0.6.2
void pk_category_set_name (PkCategory *category,const gchar *name);
Sets the name.
|
The PkCategory
|
|
the new value |
Since 0.6.2
const gchar * pk_category_get_summary (PkCategory *category);
Gets the summary.
|
The PkCategory
|
Returns : |
the string value, or NULL for unset. |
Since 0.6.2
void pk_category_set_summary (PkCategory *category,const gchar *summary);
Sets the summary.
|
The PkCategory
|
|
the new value |
Since 0.6.2
const gchar * pk_category_get_icon (PkCategory *category);
Gets the icon filename.
|
The PkCategory
|
Returns : |
the string value, or NULL for unset. |
Since 0.6.2
void pk_category_set_icon (PkCategory *category,const gchar *icon);
Sets the icon filename.
|
The PkCategory
|
|
the new value |
Since 0.6.2