[libical-glib/update_for_2_0] Update recurence-related
- From: Miao Yu <williamyu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libical-glib/update_for_2_0] Update recurence-related
- Date: Sun, 3 Apr 2016 21:56:36 +0000 (UTC)
commit ff528670475edb8cffc79a1027667affc1eeb86e
Author: William Yu <williamyu gnome org>
Date: Sun Apr 3 14:43:45 2016 -0700
Update recurence-related
TODO | 12 ++++++++----
src/api/i-cal-recur.xml | 25 +++++++++++++++++++++++++
src/api/i-cal-recurrence-type.xml | 28 ++++++++++++++++++++++++++++
3 files changed, 61 insertions(+), 4 deletions(-)
---
diff --git a/TODO b/TODO
index 409bb31..0e21b84 100644
--- a/TODO
+++ b/TODO
@@ -81,9 +81,7 @@ Notes:
========2.0.0 upgrade========
TODOs:
-i-cal-recur-iterator.xml
-i-cal-recur.xml
-i-cal-recurrence-type.xml
+
i-cal-reqstat-type.xml
i-cal-restriction.xml
i-cal-trigger-type.xml
@@ -115,6 +113,9 @@ i-cal-period-type.xml
i-cal-unknowntokenhandling.xml
i-cal-value.xml
i-cal-property.xml
+i-cal-recur-iterator.xml
+i-cal-recur.xml
+i-cal-recurrence-type.xml
Upgrade results:
icalcomponent.h
@@ -222,4 +223,7 @@ i-cal-parser.xml
icalparser_parse_value (No implementation)
i-cal-property.xml
- icalproperty_new_impl (Use icalproperty_new instead)
\ No newline at end of file
+ icalproperty_new_impl (Use icalproperty_new instead)
+
+i-cal-recurrence-type.xml
+ icalrecurrencetype_rscale_supported_calendars (return null always)
\ No newline at end of file
diff --git a/src/api/i-cal-recur.xml b/src/api/i-cal-recur.xml
index 8ed1a31..0ed5afc 100644
--- a/src/api/i-cal-recur.xml
+++ b/src/api/i-cal-recur.xml
@@ -40,4 +40,29 @@
<returns type="ICalRecurrenceTypeWeekday" comment="The enum representation of the weekday."/>
<comment xml:space="preserve">Convert a string representation to an enum representation for the
weekday.</comment>
</method>
+ <method name="i_cal_recur_weekday_to_string" corresponds="icalrecur_weekday_to_string" since="2.0">
+ <parameter type="ICalRecurrenceTypeWeekday" name="kind" comment="The freqeuncy enum"/>
+ <returns type="const gchar *" comment="The string representation of weekday"/>
+ <comment xml:space="preserve">Convert a enum representation to a string representation for the
weekday.</comment>
+ </method>
+ <method name="i_cal_recur_string_to_freq" corresponds="icalrecur_string_to_freq" since="2.0">
+ <parameter type="const gchar *" name="str" comment="The string representation of the frequency."/>
+ <returns type="ICalRecurrenceTypeFrequency" comment="The enum representation of the frequency."/>
+ <comment xml:space="preserve">Convert a string representation to an enum representation for the
frequency.</comment>
+ </method>
+ <method name="i_cal_recur_freq_to_string" corresponds="icalrecur_freq_to_string" since="2.0">
+ <parameter type="ICalRecurrenceTypeFrequency" name="kind" comment="The freqeuncy enum"/>
+ <returns type="const gchar *" comment="The string representation of frequency"/>
+ <comment xml:space="preserve">Convert a enum representation to a string representation for the
frequency.</comment>
+ </method>
+ <method name="i_cal_recur_string_to_skip" corresponds="icalrecur_string_to_skip" since="2.0">
+ <parameter type="const gchar *" name="str" comment="The string representation of the skip."/>
+ <returns type="ICalRecurrenceTypeSkip" comment="The enum representation of the skip."/>
+ <comment xml:space="preserve">Convert a string representation to an enum representation for the
skip.</comment>
+ </method>
+ <method name="i_cal_recur_skip_to_string" corresponds="icalrecur_skip_to_string" since="2.0">
+ <parameter type="ICalRecurrenceTypeSkip" name="kind" comment="The freqeuncy enum"/>
+ <returns type="const gchar *" comment="The string representation of skip"/>
+ <comment xml:space="preserve">Convert a enum representation to a string representation for the
skip.</comment>
+ </method>
</structure>
diff --git a/src/api/i-cal-recurrence-type.xml b/src/api/i-cal-recurrence-type.xml
index 6bcd474..c90622a 100644
--- a/src/api/i-cal-recurrence-type.xml
+++ b/src/api/i-cal-recurrence-type.xml
@@ -34,6 +34,24 @@
<element name="ICAL_FRIDAY_WEEKDAY"/>
<element name="ICAL_SATURDAY_WEEKDAY"/>
</enum>
+ <enum name="ICalRecurrenceTypeSkip" default_native="I_CAL_SKIP_UNDEFINED">
+ <element name="ICAL_SKIP_BACKWARD"/>
+ <element name="ICAL_SKIP_FORWARD"/>
+ <element name="ICAL_SKIP_OMIT"/>
+ <element name="ICAL_SKIP_UNDEFINED"/>
+ </enum>
+ <enum name="ICalRecurrenceTypeArrayMaxValues" default_native="I_CAL_RECURRENCE_ARRAY_MAX">
+ <element name="ICAL_RECURRENCE_ARRAY_MAX"/>
+ <element name="ICAL_RECURRENCE_ARRAY_MAX_BYTE"/>
+ </enum>
+ <method name="i_cal_recurrence_type_rscale_is_supported"
corresponds="icalrecurrencetype_rscale_is_supported" kind="get" since="2.0">
+ <returns type="gint" comment="Whether rscale is supported"/>
+ <comment xml:space="preserve">Check whether rscale is supported.</comment>
+ </method>
+ <method name="i_cal_recurrence_type_rscale_supported_calendars"
corresponds="icalrecurrencetype_rscale_supported_calendars" kind="other" since="2.0">
+ <returns type="ICalArray *" comment="Array of calendars. Currently always NULL."/>
+ <comment xml:space="preserve">Get an array of calendars supporting rscale (currently always
return NULL).</comment>
+ </method>
<method name="i_cal_recurrence_type_new" corresponds="CUSTOM" annotation="skip" kind="private"
since="1.0">
<returns type="struct icalrecurrencetype" comment="The default value."/>
<custom> struct icalrecurrencetype ret;
@@ -54,6 +72,16 @@
<returns type="gint" comment="The decoded day of the week. 0 == any of day of week. 1 == first, 2 =
second, -2 == second to last, etc"/>
<comment xml:space="preserve">Decode a day to a position of the weekday.</comment>
</method>
+ <method name="i_cal_recurrence_type_month_is_leap" corresponds="icalrecurrencetype_month_is_leap"
since="2.0">
+ <parameter type="gshort" name="month" comment="The month to be decoded."/>
+ <returns type="gint" comment="Whether this month is a leap month."/>
+ <comment xml:space="preserve">Decode a month and check whether it is a leap month.</comment>
+ </method>
+ <method name="i_cal_recurrence_type_month_month" corresponds="icalrecurrencetype_month_month"
since="2.0">
+ <parameter type="gshort" name="month" comment="The month to be decoded."/>
+ <returns type="gint" comment="Whether this month is NOT a leap month."/>
+ <comment xml:space="preserve">Decode a month and check whether it is NOT a leap month.</comment>
+ </method>
<method name="i_cal_recurrence_type_from_string" corresponds="icalrecurrencetype_from_string"
since="1.0">
<parameter type="const gchar *" name="str" comment="The string representation of the
#ICalRecurrenceType"/>
<returns type="ICalRecurrenceType *" annotation="transfer full" comment="The #ICalRecurrenceType
converted from @str."/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]