[libical-glib] Update i-cal-time.xml
- From: Miao Yu <williamyu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libical-glib] Update i-cal-time.xml
- Date: Sun, 3 Apr 2016 22:20:28 +0000 (UTC)
commit eedc1a5ba051b2c1a17ecadd57f9571885743a55
Author: William Yu <williamyu gnome org>
Date: Sat Apr 2 17:20:51 2016 -0700
Update i-cal-time.xml
TODO | 18 ++++++++++++++----
src/api/i-cal-time.xml | 17 +++++++++++++++++
2 files changed, 31 insertions(+), 4 deletions(-)
---
diff --git a/TODO b/TODO
index c0d1607..673240e 100644
--- a/TODO
+++ b/TODO
@@ -81,7 +81,6 @@ Notes:
========2.0.0 upgrade========
TODOs:
-i-cal-duration-type.xml
i-cal-enums.xml
i-cal-error.xml
i-cal-geo-type.xml
@@ -96,9 +95,6 @@ i-cal-recur.xml
i-cal-recurrence-type.xml
i-cal-reqstat-type.xml
i-cal-restriction.xml
-i-cal-time-span.xml
-i-cal-time.xml
-i-cal-timetype.xml
i-cal-timezone-phase.xml
i-cal-timezone.xml
i-cal-timezonetype.xml
@@ -117,6 +113,10 @@ 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
Upgrade results:
icalcomponent.h
@@ -216,5 +216,15 @@ i-cal-derived-property.xml
And all their constructors, getters and setters.
i-cal-derived-value.xml
+
+i-cal-duration-type.xml
+ icaltime_add (in i-cal-time.xml)
+ icaltime_subtract (in i-cal-time.xml)
+
+i-cal-time.xml
+ i_cal_time_from_string_with_zone (Ignored, no implementation)
+ icaltime_days_in_year
+
+i-cal-time-span.xml
diff --git a/src/api/i-cal-time.xml b/src/api/i-cal-time.xml
index 69df0bf..892495b 100644
--- a/src/api/i-cal-time.xml
+++ b/src/api/i-cal-time.xml
@@ -182,6 +182,11 @@
<returns type="gint" comment="1 if @year is leap year, 0 if not." />
<comment xml:space="preserve">Check whether a year is a leap year.</comment>
</method>
+ <method name="i_cal_time_days_in_year" corresponds="icaltime_days_in_year" since="2.0">
+ <parameter type="const gint" name="year" comment="The target year"/>
+ <returns type="gint" comment="Days in this year." />
+ <comment xml:space="preserve">Return the number of days in this year.</comment>
+ </method>
<method name="i_cal_time_span_new" corresponds="icaltime_span_new" kind="constructor" since="1.0">
<parameter type="ICalTimetype *" name="dtstart" comment="The start of #ICalTimeSpan"/>
<parameter type="ICalTimetype *" name="dtend" comment="The end of #ICalTimeSpan"/>
@@ -201,4 +206,16 @@
<returns type="gint" comment="Whether one #ICalTimeSpan is contained in another #ICalTimeSpan."/>
<comment xml:space="preserve">Check whether one #ICalTimeSpan is contained in another
#ICalTimeSpan.</comment>
</method>
+ <method name="i_cal_time_add" corresponds="icaltime_add" kind="other" since="2.0">
+ <parameter type="ICalTimetype *" name="t" comment="A #ICalTimetype to be operated on."/>
+ <parameter type="ICalDurationType *" name="d" comment="A #ICalDuarationType as the difference."/>
+ <returns type="ICalTimetype *" annotation="transfer full" comment="The #ICalTimetype results. The
native object is the same. But since it is a bare object, so it won't cause segmentation."/>
+ <comment xml:space="preserve">Add a time duration on the time.</comment>
+ </method>
+ <method name="i_cal_time_subtract" corresponds="icaltime_subtract" kind="other" since="2.0">
+ <parameter type="ICalTimetype *" name="t1" comment="The subtracted #ICalTimetype."/>
+ <parameter type="ICalTimetype *" name="t2" comment="The subtracting #ICalTimetype."/>
+ <returns type="ICalDurationType *" annotation="transfer full" comment="The #ICalDuarationType between
two #ICalTimetype."/>
+ <comment xml:space="preserve">Get the duration between two time.</comment>
+ </method>
</structure>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]