[libical-glib/update_for_2_0] Update i-cal-time.xml



commit 59e4090931c150713c4acfa8f4aba6fba20f7550
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 3ef8390..b47ddb1 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 
@@ -97,9 +96,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 
@@ -115,6 +111,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
@@ -202,5 +202,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    
        
        
\ No newline at end of file
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]