PkCategory

PkCategory — Category object

Functions

Properties

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

Object Hierarchy

    GObject
    ╰── PkSource
        ╰── PkCategory

Description

This GObject represents a category in the group system.

Functions

pk_category_new ()

PkCategory *
pk_category_new (void);

Returns

a new PkCategory object.

Since: 0.5.4


pk_category_get_parent_id ()

const gchar *
pk_category_get_parent_id (PkCategory *category);

Gets the parent category id.

Parameters

category

The PkCategory

 

Returns

the string value, or NULL for unset.

Since: 0.6.2


pk_category_set_parent_id ()

void
pk_category_set_parent_id (PkCategory *category,
                           const gchar *parent_id);

Sets the parent category id.

Parameters

category

The PkCategory

 

parent_id

the new value

 

Since: 0.6.2


pk_category_get_id ()

const gchar *
pk_category_get_id (PkCategory *category);

Gets the id specific to this category.

Parameters

category

The PkCategory

 

Returns

the string value, or NULL for unset.

Since: 0.6.2


pk_category_set_id ()

void
pk_category_set_id (PkCategory *category,
                    const gchar *cat_id);

Sets the id specific to this category.

Parameters

category

The PkCategory

 

cat_id

the new value

 

Since: 0.6.2


pk_category_get_name ()

const gchar *
pk_category_get_name (PkCategory *category);

Gets the name.

Parameters

category

The PkCategory

 

Returns

the string value, or NULL for unset.

Since: 0.6.2


pk_category_set_name ()

void
pk_category_set_name (PkCategory *category,
                      const gchar *name);

Sets the name.

Parameters

category

The PkCategory

 

name

the new value

 

Since: 0.6.2


pk_category_get_summary ()

const gchar *
pk_category_get_summary (PkCategory *category);

Gets the summary.

Parameters

category

The PkCategory

 

Returns

the string value, or NULL for unset.

Since: 0.6.2


pk_category_set_summary ()

void
pk_category_set_summary (PkCategory *category,
                         const gchar *summary);

Sets the summary.

Parameters

category

The PkCategory

 

summary

the new value

 

Since: 0.6.2


pk_category_get_icon ()

const gchar *
pk_category_get_icon (PkCategory *category);

Gets the icon filename.

Parameters

category

The PkCategory

 

Returns

the string value, or NULL for unset.

Since: 0.6.2


pk_category_set_icon ()

void
pk_category_set_icon (PkCategory *category,
                      const gchar *icon);

Sets the icon filename.

Parameters

category

The PkCategory

 

icon

the new value

 

Since: 0.6.2

Types and Values

Property Details

The “cat-id” property

  “cat-id”                   gchar *

Flags: Read / Write

Default value: NULL

Since: 0.5.4


The “icon” property

  “icon”                     gchar *

Flags: Read / Write

Default value: NULL

Since: 0.5.4


The “name” property

  “name”                     gchar *

Flags: Read / Write

Default value: NULL

Since: 0.5.4


The “parent-id” property

  “parent-id”                gchar *

Flags: Read / Write

Default value: NULL

Since: 0.5.4


The “summary” property

  “summary”                  gchar *

Flags: Read / Write

Default value: NULL

Since: 0.5.4