[libical-glib] Update recurence-related
- From: Miao Yu <williamyu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libical-glib] Update recurence-related
- Date: Sun, 3 Apr 2016 22:20:48 +0000 (UTC)
commit b65bc694ce81f20f4b78f40a15ec28c77997f80b
Author: William Yu <williamyu gnome org>
Date: Sun Apr 3 14:43:45 2016 -0700
Update recurence-related
TODO | 50 ++----------------------------------
src/api/i-cal-recur.xml | 25 ++++++++++++++++++
src/api/i-cal-recurrence-type.xml | 28 ++++++++++++++++++++
3 files changed, 56 insertions(+), 47 deletions(-)
---
diff --git a/TODO b/TODO
index f6127bf..9c88fb4 100644
--- a/TODO
+++ b/TODO
@@ -80,53 +80,6 @@ Notes:
========2.0.0 upgrade========
-TODOs:
-i-cal-error.xml
-i-cal-geo-type.xml
-i-cal-langbind.xml
-i-cal-memory.xml
-i-cal-mime.xml
-i-cal-parser.xml
-i-cal-period-type.xml
-i-cal-property.xml
-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
-
-Done:
-i-cal-component.xml
-i-cal-parameter.xml
-i-cal-property.xml
- i_cal_value_set_parent
-i-cal-array.xml
-i-cal-attach.xml
-i-cal-comp-iter.xml
-i-cal-datetimeperiod-type.xml
-i-cal-derived-parameter.xml
-i-cal-derived-property.xml
-i-cal-derived-value.xml
-i-cal-duration-type.xml
-i-cal-time.xml
-i-cal-timetype.xml
-i-cal-timezone-phase.xml
-i-cal-timezonetype.xml
-i-cal-timezone.xml
-i-cal-enums.xml
-i-cal-error.xml
-i-cal-geo-type.xml
-i-cal-parameter.xml
-i-cal-langbind.xml (ignore, for language binding)
-i-cal-memory.xml (ignore, low-level)
-i-cal-mime.xml
-i-cal-parser.xml
-i-cal-period-type.xml
-i-cal-unknowntokenhandling.xml
-i-cal-value.xml
-i-cal-property.xml
-
Upgrade results:
icalcomponent.h
icalcomponent_vanew
@@ -248,3 +201,6 @@ i-cal-parser.xml
i-cal-property.xml
icalproperty_new_impl (Use icalproperty_new instead)
+
+i-cal-recurrence-type.xml
+ icalrecurrencetype_rscale_supported_calendars (return null always)
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]