summaryrefslogtreecommitdiff
path: root/src/libical-glib/api/i-cal-reqstat.xml
blob: f05b12826a875e21ba234e7d73b606bad3d24d62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!--
  Copyright (C) 2015 William Yu <williamyu@gnome.org>

  This library is free software: you can redistribute it and/or modify it
  under the terms of version 2.1. of the GNU Lesser General Public License
  as published by the Free Software Foundation.

  This library is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
  for more details.

  You should have received a copy of the GNU Lesser General Public License
  along with this library. If not, see <https://www.gnu.org/licenses/>.
-->
<structure namespace="ICal" name="Reqstat" native="struct icalreqstattype" is_bare="true" default_native="i_cal_reqstat_new_default ()">
    <method name="i_cal_reqstat_new_from_string" corresponds="icalreqstattype_from_string" kind="constructor" since="1.0">
        <parameter type="const gchar *" name="str" comment="A string"/>
        <returns type="ICalReqstat *" annotation="transfer full" comment="The newly created #ICalReqstat."/>
        <comment xml:space="preserve">Creates a #ICalReqstat from string.</comment>
    </method>
    <method name="i_cal_reqstat_to_string" corresponds="icalreqstattype_as_string_r" since="1.0">
        <parameter type="ICalReqstat *" name="stat" comment="A #ICalReqstat"/>
        <returns type="gchar *" annotation="transfer full" comment="A string."/>
        <comment xml:space="preserve">Converts #ICalReqstat to a string representation.</comment>
    </method>
    <method name="i_cal_reqstat_new_default" corresponds="CUSTOM" kind="private" annotation="skip" since="1.0">
        <returns type="struct icalreqstattype" annotation="transfer full" comment="The newly created #ICalReqstat" />
        <comment xml:space="preserve">Creates a new default #ICalReqstat.</comment>
        <custom>        struct icalreqstattype reqstattype;
        reqstattype.code = ICAL_UNKNOWN_STATUS;
        reqstattype.desc = NULL;
        reqstattype.debug = NULL;
        return reqstattype;</custom>
    </method>
    <method name="i_cal_reqstat_get_code" corresponds="CUSTOM" kind="get" since="1.0">
        <parameter type="ICalReqstat *" name="reqstat" comment="The #ICalReqstat"/>
        <returns type="ICalRequestStatus" comment="The code of @reqstat."/>
        <comment>Gets the code of #ICalReqstat.</comment>
        <custom>        g_return_val_if_fail (reqstat != NULL &amp;&amp; I_CAL_IS_REQSTAT (reqstat), I_CAL_UNKNOWN_STATUS);
        return (ICalRequestStatus) (((struct icalreqstattype *)i_cal_object_get_native ((ICalObject *)reqstat))->code);</custom>
    </method>
    <method name="i_cal_reqstat_set_code" corresponds="CUSTOM" kind="set" since="1.0">
        <parameter type="ICalReqstat *" name="reqstat" comment="The #ICalReqstat"/>
        <parameter type="ICalRequestStatus" name="code" comment="The code of @reqstat"/>
        <comment>Sets the code of #ICalReqstat.</comment>
        <custom>        g_return_if_fail (reqstat != NULL &amp;&amp; I_CAL_IS_REQSTAT (reqstat));
        ((struct icalreqstattype *)i_cal_object_get_native ((ICalObject *)reqstat))->code = (icalrequeststatus) (code);</custom>
    </method>
    <method name="i_cal_reqstat_get_desc" corresponds="CUSTOM" kind="get" since="1.0">
        <parameter type="const ICalReqstat *" name="reqstat" comment="The #ICalReqstat"/>
        <returns type="const gchar *" annotation="transfer none" comment="The desc of @reqstat."/>
        <comment>Gets the desc of #ICalReqstat.</comment>
        <custom>        g_return_val_if_fail (reqstat != NULL &amp;&amp; I_CAL_IS_REQSTAT (reqstat), NULL);
        return ((struct icalreqstattype *)i_cal_object_get_native ((ICalObject *)reqstat))->desc;</custom>
    </method>
    <method name="i_cal_reqstat_get_debug" corresponds="CUSTOM" kind="get" since="1.0">
        <parameter type="const ICalReqstat *" name="reqstat" comment="The #ICalReqstat"/>
        <returns type="const gchar *" annotation="transfer none" comment="The debug of @reqstat."/>
        <comment>Gets the debug of #ICalReqstat.</comment>
        <custom>        g_return_val_if_fail (reqstat != NULL &amp;&amp; I_CAL_IS_REQSTAT (reqstat), NULL);
        return ((struct icalreqstattype *)i_cal_object_get_native ((ICalObject *)reqstat))->debug;</custom>
    </method>
</structure>