<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
[
  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
]>
<refentry id="AsCategory">
<refmeta>
<refentrytitle role="top_of_page" id="AsCategory.top_of_page">AsCategory</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>APPSTREAM Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>AsCategory</refname>
<refpurpose>Representation of a XDG category</refpurpose>
</refnamediv>

<refsect1 id="AsCategory.functions" role="functions_proto">
<title role="functions_proto.title">Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_return" colwidth="150px"/>
<colspec colname="functions_name"/>
<tbody>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="AS-TYPE-CATEGORY:CAPS">AS_TYPE_CATEGORY</link></entry></row>
<row><entry role="function_type"><link linkend="AsCategory"><returnvalue>AsCategory</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-category-new">as_category_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="as-category-complete">as_category_complete</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-category-get-directory">as_category_get_directory</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="as-category-set-directory">as_category_set_directory</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-category-get-name">as_category_get_name</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="as-category-set-name">as_category_set_name</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-category-get-summary">as_category_get_summary</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="as-category-set-summary">as_category_set_summary</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-category-get-icon">as_category_get_icon</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="as-category-set-icon">as_category_set_icon</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
</entry><entry role="function_name"><link linkend="as-category-has-subcategory">as_category_has_subcategory</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="as-category-add-subcategory">as_category_add_subcategory</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="as-category-remove-subcategory">as_category_remove_subcategory</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GList"><returnvalue>GList</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-category-get-included">as_category_get_included</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GList"><returnvalue>GList</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-category-get-excluded">as_category_get_excluded</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GList"><returnvalue>GList</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="as-category-get-subcategories">as_category_get_subcategories</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gint"><returnvalue>gint</returnvalue></link>
</entry><entry role="function_name"><link linkend="as-category-get-level">as_category_get_level</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="as-category-set-level">as_category_set_level</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="AsCategory.properties" role="properties">
<title role="properties.title">Properties</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="properties_type" colwidth="150px"/>
<colspec colname="properties_name" colwidth="300px"/>
<colspec colname="properties_flags" colwidth="200px"/>
<tbody>
<row><entry role="property_type"><link linkend="gchar"><type>gchar</type></link>&#160;*</entry><entry role="property_name"><link linkend="AsCategory--directory">directory</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gpointer"><type>gpointer</type></link></entry><entry role="property_name"><link linkend="AsCategory--excluded">excluded</link></entry><entry role="property_flags">Read</entry></row>
<row><entry role="property_type"><link linkend="gchar"><type>gchar</type></link>&#160;*</entry><entry role="property_name"><link linkend="AsCategory--icon">icon</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gpointer"><type>gpointer</type></link></entry><entry role="property_name"><link linkend="AsCategory--included">included</link></entry><entry role="property_flags">Read</entry></row>
<row><entry role="property_type"><link linkend="gint"><type>gint</type></link></entry><entry role="property_name"><link linkend="AsCategory--level">level</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gchar"><type>gchar</type></link>&#160;*</entry><entry role="property_name"><link linkend="AsCategory--name">name</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gpointer"><type>gpointer</type></link></entry><entry role="property_name"><link linkend="AsCategory--subcategories">subcategories</link></entry><entry role="property_flags">Read</entry></row>
<row><entry role="property_type"><link linkend="gchar"><type>gchar</type></link>&#160;*</entry><entry role="property_name"><link linkend="AsCategory--summary">summary</link></entry><entry role="property_flags">Read</entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="AsCategory.other" role="other_proto">
<title role="other_proto.title">Types and Values</title>
<informaltable role="enum_members_table" pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="name" colwidth="150px"/>
<colspec colname="description"/>
<tbody>
<row><entry role="datatype_keyword">struct</entry><entry role="function_name"><link linkend="AsCategoryClass">AsCategoryClass</link></entry></row>
<row><entry role="datatype_keyword"></entry><entry role="function_name"><link linkend="AsCategory-struct">AsCategory</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="AsCategory.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen>    <link linkend="GObject">GObject</link>
    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> AsCategory
</screen>
</refsect1>

<refsect1 id="AsCategory.includes"><title>Includes</title><synopsis>#include &lt;appstream.h&gt;
</synopsis></refsect1>

<refsect1 id="AsCategory.description" role="desc">
<title role="desc.title">Description</title>
<para>This object represents an XDG category, as defined at:
http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html<link linkend="category-registry"><type>category-registry</type></link></para>
<para>The <link linkend="AsCategory"><type>AsCategory</type></link> object does not support all aspects of a menu. It's main purpose
is to be used in software-centers to show information about application-groups,
which are use to thematically group applications.</para>
<para>You can use <link linkend="AsMenuParser"><type>AsMenuParser</type></link> to get a set of supported default categories.</para>
<para>See also: <link linkend="AsMenuParser"><type>AsMenuParser</type></link></para>

</refsect1>
<refsect1 id="AsCategory.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="AS-TYPE-CATEGORY:CAPS" role="macro">
<title>AS_TYPE_CATEGORY</title>
<indexterm zone="AS-TYPE-CATEGORY:CAPS"><primary>AS_TYPE_CATEGORY</primary></indexterm>
<programlisting language="C">#define AS_TYPE_CATEGORY (as_category_get_type ())
</programlisting>
<para>
</para>
</refsect2>
<refsect2 id="as-category-new" role="function">
<title>as_category_new&#160;()</title>
<indexterm zone="as-category-new"><primary>as_category_new</primary></indexterm>
<programlisting language="C"><link linkend="AsCategory"><returnvalue>AsCategory</returnvalue></link>&#160;*
as_category_new (<parameter><type>void</type></parameter>);</programlisting>
<para>Creates a new <link linkend="AsCategory"><type>AsCategory</type></link>.</para>
<refsect3 role="returns">
<title>Returns</title>
<para> a new <link linkend="AsCategory"><type>AsCategory</type></link>. </para>
<para><emphasis role="annotation">[<acronym>transfer full</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="as-category-complete" role="function">
<title>as_category_complete&#160;()</title>
<indexterm zone="as-category-complete"><primary>as_category_complete</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
as_category_complete (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>);</programlisting>
<para>Update incomplete category data with information from
"/usr/share/desktop-directories".</para>
</refsect2>
<refsect2 id="as-category-get-directory" role="function">
<title>as_category_get_directory&#160;()</title>
<indexterm zone="as-category-get-directory"><primary>as_category_get_directory</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
as_category_get_directory (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>);</programlisting>
<para>Get associated XDG directory name for this category,
in case one exists in "/usr/share/desktop-directories/".</para>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="as-category-set-directory" role="function">
<title>as_category_set_directory&#160;()</title>
<indexterm zone="as-category-set-directory"><primary>as_category_set_directory</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
as_category_set_directory (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>,
                           <parameter>const <link linkend="gchar"><type>gchar</type></link> *value</parameter>);</programlisting>
<para>Set associated XDG directory name for this category.</para>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="as-category-get-name" role="function">
<title>as_category_get_name&#160;()</title>
<indexterm zone="as-category-get-name"><primary>as_category_get_name</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
as_category_get_name (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>);</programlisting>
<para>Get the name of this category.</para>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="as-category-set-name" role="function">
<title>as_category_set_name&#160;()</title>
<indexterm zone="as-category-set-name"><primary>as_category_set_name</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
as_category_set_name (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>,
                      <parameter>const <link linkend="gchar"><type>gchar</type></link> *value</parameter>);</programlisting>
<para>Set the name of this category.</para>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="as-category-get-summary" role="function">
<title>as_category_get_summary&#160;()</title>
<indexterm zone="as-category-get-summary"><primary>as_category_get_summary</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
as_category_get_summary (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>);</programlisting>
<para>Get the summary (short description) of this category.</para>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="as-category-set-summary" role="function">
<title>as_category_set_summary&#160;()</title>
<indexterm zone="as-category-set-summary"><primary>as_category_set_summary</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
as_category_set_summary (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>,
                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *value</parameter>);</programlisting>
<para>Get the summary (short description) of this category.</para>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>value</para></entry>
<entry role="parameter_description"><para>A new short summary of this category.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="as-category-get-icon" role="function">
<title>as_category_get_icon&#160;()</title>
<indexterm zone="as-category-get-icon"><primary>as_category_get_icon</primary></indexterm>
<programlisting language="C">const <link linkend="gchar"><returnvalue>gchar</returnvalue></link>&#160;*
as_category_get_icon (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>);</programlisting>
<para>Get the stock icon name for this category.</para>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="as-category-set-icon" role="function">
<title>as_category_set_icon&#160;()</title>
<indexterm zone="as-category-set-icon"><primary>as_category_set_icon</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
as_category_set_icon (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>,
                      <parameter>const <link linkend="gchar"><type>gchar</type></link> *value</parameter>);</programlisting>
<para>Set the stock icon name for this category.</para>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="as-category-has-subcategory" role="function">
<title>as_category_has_subcategory&#160;()</title>
<indexterm zone="as-category-has-subcategory"><primary>as_category_has_subcategory</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
as_category_has_subcategory (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>);</programlisting>
<para>Test for sub-categories.</para>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 role="returns">
<title>Returns</title>
<para> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if this category has any subcategory</para>
</refsect3></refsect2>
<refsect2 id="as-category-add-subcategory" role="function">
<title>as_category_add_subcategory&#160;()</title>
<indexterm zone="as-category-add-subcategory"><primary>as_category_add_subcategory</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
as_category_add_subcategory (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>,
                             <parameter><link linkend="AsCategory"><type>AsCategory</type></link> *subcat</parameter>);</programlisting>
<para>Add a subcategory to this category.</para>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>subcat</para></entry>
<entry role="parameter_description"><para>A subcategory to add.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="as-category-remove-subcategory" role="function">
<title>as_category_remove_subcategory&#160;()</title>
<indexterm zone="as-category-remove-subcategory"><primary>as_category_remove_subcategory</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
as_category_remove_subcategory (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>,
                                <parameter><link linkend="AsCategory"><type>AsCategory</type></link> *subcat</parameter>);</programlisting>
<para>Drop a subcategory from this <link linkend="AsCategory"><type>AsCategory</type></link>.</para>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>subcat</para></entry>
<entry role="parameter_description"><para>A subcategory to remove.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="as-category-get-included" role="function">
<title>as_category_get_included&#160;()</title>
<indexterm zone="as-category-get-included"><primary>as_category_get_included</primary></indexterm>
<programlisting language="C"><link linkend="GList"><returnvalue>GList</returnvalue></link>&#160;*
as_category_get_included (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>);</programlisting>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 role="returns">
<title>Returns</title>
<para> A list of category names. </para>
<para><emphasis role="annotation">[<acronym>element-type</acronym> utf8][<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="as-category-get-excluded" role="function">
<title>as_category_get_excluded&#160;()</title>
<indexterm zone="as-category-get-excluded"><primary>as_category_get_excluded</primary></indexterm>
<programlisting language="C"><link linkend="GList"><returnvalue>GList</returnvalue></link>&#160;*
as_category_get_excluded (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>);</programlisting>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 role="returns">
<title>Returns</title>
<para> A list of category names. </para>
<para><emphasis role="annotation">[<acronym>element-type</acronym> utf8][<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="as-category-get-subcategories" role="function">
<title>as_category_get_subcategories&#160;()</title>
<indexterm zone="as-category-get-subcategories"><primary>as_category_get_subcategories</primary></indexterm>
<programlisting language="C"><link linkend="GList"><returnvalue>GList</returnvalue></link>&#160;*
as_category_get_subcategories (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>);</programlisting>
<refsect3 role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>cat</para></entry>
<entry role="parameter_description"><para>An instance of <link linkend="AsCategory"><type>AsCategory</type></link>.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 role="returns">
<title>Returns</title>
<para> A list of subcategories. </para>
<para><emphasis role="annotation">[<acronym>element-type</acronym> AsCategory][<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="as-category-get-level" role="function">
<title>as_category_get_level&#160;()</title>
<indexterm zone="as-category-get-level"><primary>as_category_get_level</primary></indexterm>
<programlisting language="C"><link linkend="gint"><returnvalue>gint</returnvalue></link>
as_category_get_level (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>);</programlisting>
</refsect2>
<refsect2 id="as-category-set-level" role="function">
<title>as_category_set_level&#160;()</title>
<indexterm zone="as-category-set-level"><primary>as_category_set_level</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
as_category_set_level (<parameter><link linkend="AsCategory"><type>AsCategory</type></link> *cat</parameter>,
                       <parameter><link linkend="gint"><type>gint</type></link> value</parameter>);</programlisting>
</refsect2>

</refsect1>
<refsect1 id="AsCategory.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="AsCategoryClass" role="struct">
<title>struct AsCategoryClass</title>
<indexterm zone="AsCategoryClass"><primary>AsCategoryClass</primary></indexterm>
<programlisting language="C">struct AsCategoryClass {
	GObjectClass parent_class;
};
</programlisting>
<para>
</para>
</refsect2>
<refsect2 id="AsCategory-struct" role="struct">
<title>AsCategory</title>
<indexterm zone="AsCategory-struct"><primary>AsCategory</primary></indexterm>
<programlisting language="C">typedef struct _AsCategory AsCategory;</programlisting>
<para>
</para>
</refsect2>

</refsect1>
<refsect1 id="AsCategory.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="AsCategory--directory" role="property"><title>The <literal>“directory”</literal> property</title>
<indexterm zone="AsCategory--directory"><primary>AsCategory:directory</primary></indexterm>
<programlisting>  “directory”                <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>directory.</para><para>Flags: Read / Write</para>
<para>Default value: NULL</para>
</refsect2>
<refsect2 id="AsCategory--excluded" role="property"><title>The <literal>“excluded”</literal> property</title>
<indexterm zone="AsCategory--excluded"><primary>AsCategory:excluded</primary></indexterm>
<programlisting>  “excluded”                 <link linkend="gpointer"><type>gpointer</type></link></programlisting>
<para>excluded.</para><para>Flags: Read</para>
</refsect2>
<refsect2 id="AsCategory--icon" role="property"><title>The <literal>“icon”</literal> property</title>
<indexterm zone="AsCategory--icon"><primary>AsCategory:icon</primary></indexterm>
<programlisting>  “icon”                     <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>icon.</para><para>Flags: Read / Write</para>
<para>Default value: NULL</para>
</refsect2>
<refsect2 id="AsCategory--included" role="property"><title>The <literal>“included”</literal> property</title>
<indexterm zone="AsCategory--included"><primary>AsCategory:included</primary></indexterm>
<programlisting>  “included”                 <link linkend="gpointer"><type>gpointer</type></link></programlisting>
<para>included.</para><para>Flags: Read</para>
</refsect2>
<refsect2 id="AsCategory--level" role="property"><title>The <literal>“level”</literal> property</title>
<indexterm zone="AsCategory--level"><primary>AsCategory:level</primary></indexterm>
<programlisting>  “level”                    <link linkend="gint"><type>gint</type></link></programlisting>
<para>level.</para><para>Flags: Read / Write</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="AsCategory--name" role="property"><title>The <literal>“name”</literal> property</title>
<indexterm zone="AsCategory--name"><primary>AsCategory:name</primary></indexterm>
<programlisting>  “name”                     <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>name.</para><para>Flags: Read / Write</para>
<para>Default value: NULL</para>
</refsect2>
<refsect2 id="AsCategory--subcategories" role="property"><title>The <literal>“subcategories”</literal> property</title>
<indexterm zone="AsCategory--subcategories"><primary>AsCategory:subcategories</primary></indexterm>
<programlisting>  “subcategories”            <link linkend="gpointer"><type>gpointer</type></link></programlisting>
<para>subcategories.</para><para>Flags: Read</para>
</refsect2>
<refsect2 id="AsCategory--summary" role="property"><title>The <literal>“summary”</literal> property</title>
<indexterm zone="AsCategory--summary"><primary>AsCategory:summary</primary></indexterm>
<programlisting>  “summary”                  <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>summary.</para><para>Flags: Read</para>
<para>Default value: NULL</para>
</refsect2>

</refsect1>

</refentry>
