![]() |
![]() |
![]() |
LibAppStream Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define APPSTREAM_TYPE_CATEGORY AppstreamCategory * appstream_category_new (void
); const gchar * appstream_category_get_id (AppstreamCategory *self
); const gchar * appstream_category_get_name (AppstreamCategory *self
); const gchar * appstream_category_get_summary (AppstreamCategory *self
); const gchar * appstream_category_get_icon (AppstreamCategory *self
); const gchar * appstream_category_get_directory (AppstreamCategory *self
); gchar ** appstream_category_get_included (AppstreamCategory *self
,int *result_length1
); gchar ** appstream_category_get_excluded (AppstreamCategory *self
,int *result_length1
); gint appstream_category_get_level (AppstreamCategory *self
); struct AppstreamCategory; struct AppstreamCategoryClass; #define APPSTREAM_TYPE_MENU_PARSER AppstreamCategory ** appstream_menu_parser_parse (AppstreamMenuParser *self
,int *result_length1
); AppstreamMenuParser * appstream_menu_parser_new (void
); AppstreamMenuParser * appstream_menu_parser_new_from_file (const gchar *menu_file
); struct AppstreamMenuParser; gpointer appstream_menu_parser_ref (gpointer instance
); void appstream_menu_parser_unref (gpointer instance
); GParamSpec * appstream_param_spec_menu_parser (const gchar *name
,const gchar *nick
,const gchar *blurb
,GType object_type
,GParamFlags flags
); void appstream_value_set_menu_parser (GValue *value
,gpointer v_object
); gpointer appstream_value_get_menu_parser (const GValue *value
); void appstream_value_take_menu_parser (GValue *value
,gpointer v_object
); struct AppstreamMenuParserClass; AppstreamCategory ** appstream_get_system_categories (int *result_length1
);
#define APPSTREAM_TYPE_CATEGORY (appstream_category_get_type ())
The type for AppstreamCategory.
const gchar * appstream_category_get_id (AppstreamCategory *self
);
Get and return the current value of the "id" property.
|
the AppstreamCategory instance to query |
Returns : |
the value of the "id" property |
const gchar * appstream_category_get_name (AppstreamCategory *self
);
Get and return the current value of the "name" property.
|
the AppstreamCategory instance to query |
Returns : |
the value of the "name" property |
const gchar * appstream_category_get_summary (AppstreamCategory *self
);
Get and return the current value of the "summary" property.
|
the AppstreamCategory instance to query |
Returns : |
the value of the "summary" property |
const gchar * appstream_category_get_icon (AppstreamCategory *self
);
Get and return the current value of the "icon" property.
|
the AppstreamCategory instance to query |
Returns : |
the value of the "icon" property |
const gchar * appstream_category_get_directory (AppstreamCategory *self
);
Get and return the current value of the "directory" property.
|
the AppstreamCategory instance to query |
Returns : |
the value of the "directory" property |
gchar ** appstream_category_get_included (AppstreamCategory *self
,int *result_length1
);
Get and return the current value of the "included" property.
|
the AppstreamCategory instance to query |
Returns : |
the value of the "included" property |
gchar ** appstream_category_get_excluded (AppstreamCategory *self
,int *result_length1
);
Get and return the current value of the "excluded" property.
|
the AppstreamCategory instance to query |
Returns : |
the value of the "excluded" property |
gint appstream_category_get_level (AppstreamCategory *self
);
Get and return the current value of the "level" property.
|
the AppstreamCategory instance to query |
Returns : |
the value of the "level" property |
struct AppstreamCategory { GObject parent_instance; AppstreamCategoryPrivate * priv; };
struct AppstreamCategoryClass { GObjectClass parent_class; };
The class structure for APPSTREAM_TYPE_CATEGORY
. All the fields in this structure are private and should never be accessed directly.
GObjectClass |
the parent class structure |
#define APPSTREAM_TYPE_MENU_PARSER (appstream_menu_parser_get_type ())
The type for AppstreamMenuParser.
AppstreamCategory ** appstream_menu_parser_parse (AppstreamMenuParser *self
,int *result_length1
);
|
the AppstreamMenuParser instance |
Returns : |
. [array length=result_length1] |
AppstreamMenuParser * appstream_menu_parser_new_from_file
(const gchar *menu_file
);
struct AppstreamMenuParser { GTypeInstance parent_instance; volatile int ref_count; AppstreamMenuParserPrivate * priv; };
gpointer appstream_menu_parser_ref (gpointer instance
);
Increases the reference count of object
.
|
a AppstreamMenuParser. |
Returns : |
the same object
|
void appstream_menu_parser_unref (gpointer instance
);
Decreases the reference count of object
. When its reference count drops to 0, the object is finalized (i.e. its memory is freed).
|
a AppstreamMenuParser. |
GParamSpec * appstream_param_spec_menu_parser (const gchar *name
,const gchar *nick
,const gchar *blurb
,GType object_type
,GParamFlags flags
);
Creates a new GParamSpecBoxed instance specifying a APPSTREAM_TYPE_MENU_PARSER
derived property.
See
for details on property names.
g_param_spec_internal()
|
canonical name of the property specified |
|
nick name for the property specified |
|
description of the property specified |
|
APPSTREAM_TYPE_MENU_PARSER derived type of this property |
|
flags for the property specified |
void appstream_value_set_menu_parser (GValue *value
,gpointer v_object
);
Set the contents of a APPSTREAM_TYPE_MENU_PARSER
derived GValue to v_object
.
increases the reference count of appstream_value_set_menu_parser()
v_object
(the GValue holds a reference to v_object
). If you do not wish to increase the reference count of the object (i.e. you wish to pass your current reference to the GValue because you no longer need it), use
instead.
appstream_value_take_menu_parser()
It is important that your GValue holds a reference to v_object
(either its own, or one it has taken) to ensure that the object won't be destroyed while the GValue still exists).
|
a valid GValue of APPSTREAM_TYPE_MENU_PARSER derived type |
|
object value to be set |
gpointer appstream_value_get_menu_parser (const GValue *value
);
Get the contents of a APPSTREAM_TYPE_MENU_PARSER
derived GValue.
|
a valid GValue of APPSTREAM_TYPE_MENU_PARSER derived type |
Returns : |
object contents of value
|
void appstream_value_take_menu_parser (GValue *value
,gpointer v_object
);
Sets the contents of a APPSTREAM_TYPE_MENU_PARSER
derived GValue to v_object
and takes over the ownership of the callers reference to v_object
; the caller doesn't have to unref it any more (i.e. the reference count of the object is not increased).
If you want the GValue to hold its own reference to v_object
, use
instead.
appstream_value_set_menu_parser()
|
a valid GValue of APPSTREAM_TYPE_MENU_PARSER derived type |
|
object value to be set |
struct AppstreamMenuParserClass { GTypeClass parent_class; void (*finalize) (AppstreamMenuParser *self); };
The class structure for APPSTREAM_TYPE_MENU_PARSER
. All the fields in this structure are private and should never be accessed directly.
GTypeClass |
the parent class structure |
AppstreamCategory ** appstream_get_system_categories (int *result_length1
);
|
the (null) instance |
Returns : |
. [array length=result_length1] |