Index: src/libical/vcomponent.cpp =================================================================== RCS file: /home/cvs/projects/libical/src/libical/vcomponent.cpp,v retrieving revision 1.1.1.1 retrieving revision 1.4 diff -u -r1.1.1.1 -r1.4 --- src/libical/vcomponent.cpp 12 May 2004 08:53:09 -0000 1.1.1.1 +++ src/libical/vcomponent.cpp 7 Jun 2004 07:09:21 -0000 1.4 @@ -21,6 +21,11 @@ #ifndef ICALPARAMETER_CXX_H #include "icalparameter_cxx.h" #endif + +#ifndef ICALTIME_CXX_H +#include "icaltime_cxx.h" +#endif + #include #include @@ -296,6 +331,9 @@ void VComponent::set_dtstart(struct icaltimetype v){ icalcomponent_set_dtstart(imp, v); } +void VComponent::set_dtstart(ICalTime* v){ + icalcomponent_set_dtstart(imp, v->as_icaltimetype()); +} /* For the icalcomponent routines only, dtend and duration are tied together. If you call the set routine for one and the other exists, @@ -314,6 +352,9 @@ void VComponent::set_dtend(struct icaltimetype v){ icalcomponent_set_dtend(imp, v); } +void VComponent::set_dtend(ICalTime* v){ + icalcomponent_set_dtend(imp, v->as_icaltimetype()); +} struct icaltimetype VComponent::get_due(){ return icalcomponent_get_due(imp); @@ -391,6 +432,9 @@ void VComponent::set_recurrenceid(struct icaltimetype v){ icalcomponent_set_recurrenceid(imp, v); } +void VComponent::set_recurrenceid(ICalTime* v){ + icalcomponent_set_recurrenceid(imp, v->as_icaltimetype()); +} int VComponent::get_sequence(){ return (int)icalcomponent_get_sequence(imp); Index: src/libical/vcomponent.h =================================================================== RCS file: /home/cvs/projects/libical/src/libical/vcomponent.h,v retrieving revision 1.1.1.1 retrieving revision 1.4 diff -u -r1.1.1.1 -r1.4 --- src/libical/vcomponent.h 12 May 2004 08:53:09 -0000 1.1.1.1 +++ src/libical/vcomponent.h 7 Jun 2004 07:09:21 -0000 1.4 @@ -17,6 +17,7 @@ typedef char* string; // Will use the string library from STL class ICalProperty; +class ICalTime; /** * @class VComponent @@ -112,6 +113,7 @@ public: struct icaltimetype get_dtstart(); void set_dtstart(struct icaltimetype v); + void set_dtstart(ICalTime* v); /** For the icalcomponent routines only, dtend and duration * are tied together. If you call the set routine for one and @@ -126,6 +128,7 @@ struct icaltimetype get_dtend(); void set_dtend(struct icaltimetype v); + void set_dtend(ICalTime* v); struct icaltimetype get_due(); void set_due(struct icaltimetype v); @@ -159,6 +162,7 @@ struct icaltimetype get_recurrenceid(); void set_recurrenceid(struct icaltimetype v); + void set_recurrenceid(ICalTime* v); int get_sequence(); void set_sequence(int v);