2 commits - c++/lib c++/tests pykolab/format

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Wed Mar 7 15:45:54 CET 2012


 c++/lib/calendaring.cpp                        |    4 
 c++/lib/calendaring.h                          |    2 
 c++/lib/incidence_p.h                          |   12 +-
 c++/lib/kolabcontact.cpp                       |   26 ++---
 c++/lib/kolabcontact.h                         |   16 +--
 c++/lib/kolabcontainers.cpp                    |   68 ++++++-------
 c++/lib/kolabcontainers.h                      |   26 ++---
 c++/lib/kolabevent.cpp                         |   34 +++---
 c++/lib/kolabevent.h                           |   32 +++---
 c++/lib/kolabformat.i                          |    2 
 c++/lib/kolabjournal.cpp                       |   12 +-
 c++/lib/kolabjournal.h                         |   12 +-
 c++/lib/kolabkcalconversion.cpp                |   18 +--
 c++/lib/kolabkcalconversion.h                  |    4 
 c++/lib/kolabtodo.cpp                          |   34 +++---
 c++/lib/kolabtodo.h                            |   32 +++---
 c++/lib/python/test.py                         |    2 
 c++/lib/utils.cpp                              |    4 
 c++/lib/utils.h                                |    2 
 c++/lib/xcalconversions.h                      |   46 ++++-----
 c++/lib/xcardconversions.h                     |   30 ++---
 c++/tests/bindingstest.cpp                     |   26 ++---
 c++/tests/conversiontest.cpp                   |   34 +++---
 c++/tests/kcalconversiontest.cpp               |  126 ++++++++++++-------------
 c++/tests/serializers.h                        |    8 -
 pykolab/format/datetime.py                     |    2 
 pykolab/format/tests/test-kolabformat-event.py |    8 -
 pykolab/format/tests/test-parallel_threads.py  |    6 -
 pykolab/format/tests/test-thread_safety.py     |    6 -
 29 files changed, 317 insertions(+), 317 deletions(-)

New commits:
commit e039d6d678a69eeb42c06f9d2bdf6b9648a7bda2
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Wed Mar 7 14:45:35 2012 +0000

    Update pykolab/format for new name cDateTime

diff --git a/pykolab/format/datetime.py b/pykolab/format/datetime.py
index 55c69dd..a16ebb2 100644
--- a/pykolab/format/datetime.py
+++ b/pykolab/format/datetime.py
@@ -1,4 +1,4 @@
 import kolabformat
 
-class DateTime(kolabformat.DateTime):
+class DateTime(kolabformat.cDateTime):
     pass
diff --git a/pykolab/format/tests/test-kolabformat-event.py b/pykolab/format/tests/test-kolabformat-event.py
index 8a584a2..eede69a 100644
--- a/pykolab/format/tests/test-kolabformat-event.py
+++ b/pykolab/format/tests/test-kolabformat-event.py
@@ -1,6 +1,6 @@
 import unittest
 
-from kolabformat import DateTime
+from kolabformat import cDateTime
 from kolabformat import Duration
 from kolabformat import Event
 from kolabformat import RecurrenceRule
@@ -15,8 +15,8 @@ class TestEvent(unittest.TestCase):
         self.assertTrue(isinstance(myevent, Event))
 
         # All in UTC.
-        myevent.setStart(DateTime(2011,12,31,20,00,00))
-        myevent.setEnd(DateTime(2012,01,01,03,00,00))
+        myevent.setStart(cDateTime(2011,12,31,20,00,00))
+        myevent.setEnd(cDateTime(2012,01,01,03,00,00))
 
         # Set the organizer. cal-address first, display name later.
         myevent.setOrganizer("John.Doe at example.org", "John Doe")
@@ -61,7 +61,7 @@ class TestEvent(unittest.TestCase):
     def test_event_duration(self):
         myevent = Event()
 
-        myevent.setStart(DateTime(2011,12,31,20,00,00))
+        myevent.setStart(cDateTime(2011,12,31,20,00,00))
 
         # Duration takes weeks, days, hours, minutes, seconds
         duration = Duration(0, 8, 0, 0)
diff --git a/pykolab/format/tests/test-parallel_threads.py b/pykolab/format/tests/test-parallel_threads.py
index 617a74e..b0eae07 100644
--- a/pykolab/format/tests/test-parallel_threads.py
+++ b/pykolab/format/tests/test-parallel_threads.py
@@ -1,6 +1,6 @@
 import unittest
 
-from kolabformat import DateTime
+from kolabformat import cDateTime
 from kolabformat import Duration
 from kolabformat import Event
 from kolabformat import RecurrenceRule
@@ -16,8 +16,8 @@ class ThreadEvent(threading.Thread):
         threading.Thread.__init__(self, target=self.get_uids, args=[kw['sleep']])
         self.myevent = Event()
         # All in UTC.
-        self.myevent.setStart(DateTime(2011,12,31,20,00,00))
-        self.myevent.setEnd(DateTime(2012,01,01,03,00,00))
+        self.myevent.setStart(cDateTime(2011,12,31,20,00,00))
+        self.myevent.setEnd(cDateTime(2012,01,01,03,00,00))
 
         # Set the organizer. cal-address first, display name later.
         self.myevent.setOrganizer("John.Doe at example.org", "John Doe")
diff --git a/pykolab/format/tests/test-thread_safety.py b/pykolab/format/tests/test-thread_safety.py
index 2e21a32..3e46274 100644
--- a/pykolab/format/tests/test-thread_safety.py
+++ b/pykolab/format/tests/test-thread_safety.py
@@ -1,6 +1,6 @@
 import unittest
 
-from kolabformat import DateTime
+from kolabformat import cDateTime
 from kolabformat import Duration
 from kolabformat import Event
 from kolabformat import RecurrenceRule
@@ -19,8 +19,8 @@ class ThreadEvent(threading.Thread):
     def create_event(self):
         self.myevent = Event()
         # All in UTC.
-        self.myevent.setStart(DateTime(2011,12,31,20,00,00))
-        self.myevent.setEnd(DateTime(2012,01,01,03,00,00))
+        self.myevent.setStart(cDateTime(2011,12,31,20,00,00))
+        self.myevent.setEnd(cDateTime(2012,01,01,03,00,00))
 
         # Set the organizer. cal-address first, display name later.
         self.myevent.setOrganizer("John.Doe at example.org", "John Doe")


commit d9ae720778af6e1fe85b9eee0bd09ac01baa85fd
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Wed Mar 7 14:37:52 2012 +0000

    Use cDateTime instead of KoDateTime.

diff --git a/c++/lib/calendaring.cpp b/c++/lib/calendaring.cpp
index 66ca61a..e35af0e 100644
--- a/c++/lib/calendaring.cpp
+++ b/c++/lib/calendaring.cpp
@@ -39,11 +39,11 @@ namespace Kolab {
             return true;
         }
 
-        std::vector<Kolab::KoDateTime> timeInInterval(const Kolab::Event &e, const Kolab::KoDateTime &start, const Kolab::KoDateTime &end)
+        std::vector<Kolab::cDateTime> timeInInterval(const Kolab::Event &e, const Kolab::cDateTime &start, const Kolab::cDateTime &end)
         {
             KCalCore::Event::Ptr k = KCalConversion::toKCalCore(e);
             KCalCore::DateTimeList list = k->recurrence()->timesInInterval(KCalConversion::toDate(start), KCalConversion::toDate(end));
-            std::vector<Kolab::KoDateTime> dtList;
+            std::vector<Kolab::cDateTime> dtList;
             foreach(const KDateTime &dt, list) {
                 dtList.push_back(KCalConversion::fromDate(dt));
             }
diff --git a/c++/lib/calendaring.h b/c++/lib/calendaring.h
index aad7d25..12d7c53 100644
--- a/c++/lib/calendaring.h
+++ b/c++/lib/calendaring.h
@@ -28,7 +28,7 @@ namespace Kolab {
          */
         bool conflicts(const Kolab::Event &, const Kolab::Event &);
 
-        std::vector<Kolab::KoDateTime> timeInInterval(const Kolab::Event &, const Kolab::KoDateTime &start, const Kolab::KoDateTime &end);
+        std::vector<Kolab::cDateTime> timeInInterval(const Kolab::Event &, const Kolab::cDateTime &start, const Kolab::cDateTime &end);
     };
 };
 
diff --git a/c++/lib/incidence_p.h b/c++/lib/incidence_p.h
index 0534d57..99f1883 100644
--- a/c++/lib/incidence_p.h
+++ b/c++/lib/incidence_p.h
@@ -32,15 +32,15 @@ namespace Kolab {
         status(StatusUndefined){}
         
         std::string uid;
-        KoDateTime created;
-        KoDateTime lastModified;
+        cDateTime created;
+        cDateTime lastModified;
         int sequence;
         Classification classification;
         std::vector< std::string > categories;
         std::vector< std::string > relatedTo;
-        KoDateTime start;
+        cDateTime start;
         
-        KoDateTime recurrenceID;
+        cDateTime recurrenceID;
         bool thisAndFuture;
         std::string summary;
         std::string description;
@@ -48,8 +48,8 @@ namespace Kolab {
         int priority;
         Status status;
         RecurrenceRule rrule;
-        std::vector< KoDateTime > recurrenceDates;
-        std::vector< KoDateTime > exceptionDates;
+        std::vector< cDateTime > recurrenceDates;
+        std::vector< cDateTime > exceptionDates;
         std::string organizerEmail;
         std::string organizerName;
         Duration duration;
diff --git a/c++/lib/kolabcontact.cpp b/c++/lib/kolabcontact.cpp
index fc99d83..b516ad8 100644
--- a/c++/lib/kolabcontact.cpp
+++ b/c++/lib/kolabcontact.cpp
@@ -24,7 +24,7 @@ struct DistList::Private
     Private() {}
     
     std::string uid;
-    KoDateTime lastModified;
+    cDateTime lastModified;
     std::vector< std::string > categories;
     
     std::string name;
@@ -69,12 +69,12 @@ std::string DistList::uid() const
     return d->uid;
 }
 
-void DistList::setLastModified(const Kolab::KoDateTime &dt)
+void DistList::setLastModified(const Kolab::cDateTime &dt)
 {
     d->lastModified = dt;
 }
 
-KoDateTime DistList::lastModified() const
+cDateTime DistList::lastModified() const
 {
     return d->lastModified;
 }
@@ -125,8 +125,8 @@ struct Contact::Private
     {}
     
     std::string uid;
-    KoDateTime created;
-    KoDateTime lastModified;
+    cDateTime created;
+    cDateTime lastModified;
     std::vector< std::string > categories;
     
     std::string name;
@@ -139,8 +139,8 @@ struct Contact::Private
     int addressPreferredIndex;
     std::vector<std::string> nickNames;
     std::vector<Related> relateds;
-    KoDateTime bDay;
-    KoDateTime anniversary;
+    cDateTime bDay;
+    cDateTime anniversary;
     std::string photo;
     std::string photoMimetype;
     Gender gender;
@@ -193,12 +193,12 @@ std::string Contact::uid() const
     return d->uid;
 }
 
-void Contact::setLastModified(const Kolab::KoDateTime &dt)
+void Contact::setLastModified(const Kolab::cDateTime &dt)
 {
     d->lastModified = dt;
 }
 
-KoDateTime Contact::lastModified() const
+cDateTime Contact::lastModified() const
 {
     return d->lastModified;
 }
@@ -315,22 +315,22 @@ std::vector< Related > Contact::relateds() const
     return d->relateds;
 }
 
-void Contact::setBDay(const Kolab::KoDateTime &bday)
+void Contact::setBDay(const Kolab::cDateTime &bday)
 {
     d->bDay = bday;
 }
 
-KoDateTime Contact::bDay() const
+cDateTime Contact::bDay() const
 {
     return d->bDay;
 }
 
-void Contact::setAnniversary(const Kolab::KoDateTime& dt)
+void Contact::setAnniversary(const Kolab::cDateTime& dt)
 {
     d->anniversary = dt;
 }
 
-KoDateTime Contact::anniversary() const
+cDateTime Contact::anniversary() const
 {
     return d->anniversary;
 }
diff --git a/c++/lib/kolabcontact.h b/c++/lib/kolabcontact.h
index 5c74f7e..43ba081 100644
--- a/c++/lib/kolabcontact.h
+++ b/c++/lib/kolabcontact.h
@@ -196,8 +196,8 @@ public:
     void setUid(const std::string &);
     std::string uid() const;
 
-    void setLastModified(const KoDateTime &);
-    KoDateTime lastModified() const;
+    void setLastModified(const cDateTime &);
+    cDateTime lastModified() const;
 
     void setName(const std::string &);
     std::string name() const;
@@ -225,8 +225,8 @@ public:
     void setUid(const std::string &);
     std::string uid() const;
     
-    void setLastModified(const KoDateTime &);
-    KoDateTime lastModified() const;
+    void setLastModified(const cDateTime &);
+    cDateTime lastModified() const;
     
     void setCategories(const std::vector<std::string> &);
     void addCategory(const std::string &);
@@ -260,11 +260,11 @@ public:
     void setRelateds(const std::vector<Related> &);
     std::vector<Related> relateds() const;
      
-    void setBDay(const KoDateTime &);
-    KoDateTime bDay() const;
+    void setBDay(const cDateTime &);
+    cDateTime bDay() const;
     
-    void setAnniversary(const KoDateTime &);
-    KoDateTime anniversary() const;
+    void setAnniversary(const cDateTime &);
+    cDateTime anniversary() const;
     
     void setPhoto(const std::string &data, const std::string &mimetype);
     std::string photo() const;
diff --git a/c++/lib/kolabcontainers.cpp b/c++/lib/kolabcontainers.cpp
index 17e1e4d..65201d0 100644
--- a/c++/lib/kolabcontainers.cpp
+++ b/c++/lib/kolabcontainers.cpp
@@ -20,7 +20,7 @@
 
 namespace Kolab {
     
-struct KoDateTime::Private {
+struct cDateTime::Private {
     Private()
     : year(-1),
     month(-1),
@@ -40,14 +40,14 @@ struct KoDateTime::Private {
     std::string timezone;
 };
 
-KoDateTime::KoDateTime()
-: d(new KoDateTime::Private())
+cDateTime::cDateTime()
+: d(new cDateTime::Private())
 {
 
 }
 
-KoDateTime::KoDateTime(int year, int month, int day, int hour, int minute, int second, bool isUtc)
-: d(new KoDateTime::Private())
+cDateTime::cDateTime(int year, int month, int day, int hour, int minute, int second, bool isUtc)
+: d(new cDateTime::Private())
 {
     d->year = year;
     d->month = month;
@@ -58,8 +58,8 @@ KoDateTime::KoDateTime(int year, int month, int day, int hour, int minute, int s
     d->isUtc = isUtc;
 }
 
-KoDateTime::KoDateTime(const std::string& timezone, int year, int month, int day, int hour, int minute, int second)
-: d(new KoDateTime::Private())
+cDateTime::cDateTime(const std::string& timezone, int year, int month, int day, int hour, int minute, int second)
+: d(new cDateTime::Private())
 {
     d->year = year;
     d->month = month;
@@ -70,32 +70,32 @@ KoDateTime::KoDateTime(const std::string& timezone, int year, int month, int day
     d->timezone = timezone;
 }
 
-KoDateTime::KoDateTime(int year, int month, int day)
-: d(new KoDateTime::Private())
+cDateTime::cDateTime(int year, int month, int day)
+: d(new cDateTime::Private())
 {
     d->year = year;
     d->month = month;
     d->day = day;
 }
 
-KoDateTime::KoDateTime(const Kolab::KoDateTime &other)
-: d(new KoDateTime::Private())
+cDateTime::cDateTime(const Kolab::cDateTime &other)
+: d(new cDateTime::Private())
 {
     *d = *other.d;
 }
 
-KoDateTime::~KoDateTime()
+cDateTime::~cDateTime()
 {
 
 }
 
 
-void KoDateTime::operator=(const Kolab::KoDateTime &other)
+void cDateTime::operator=(const Kolab::cDateTime &other)
 {
    *d = *other.d;
 }
 
-bool KoDateTime::operator==(const Kolab::KoDateTime &other) const
+bool cDateTime::operator==(const Kolab::cDateTime &other) const
 {
     if ( d->year == other.year() &&
         d->month == other.month() &&
@@ -112,37 +112,37 @@ bool KoDateTime::operator==(const Kolab::KoDateTime &other) const
 
 
 
-int KoDateTime::year() const
+int cDateTime::year() const
 {
     return d->year;
 }
 
-int KoDateTime::month() const
+int cDateTime::month() const
 {
     return d->month;
 }
 
-int KoDateTime::day() const
+int cDateTime::day() const
 {
     return d->day;
 }
 
-int KoDateTime::hour() const
+int cDateTime::hour() const
 {
     return d->hour;
 }
 
-int KoDateTime::minute() const
+int cDateTime::minute() const
 {
     return d->minute;
 }
 
-int KoDateTime::second() const
+int cDateTime::second() const
 {
     return d->second;
 }
 
-bool KoDateTime::isDateOnly() const
+bool cDateTime::isDateOnly() const
 {
     if ((d->hour < 0) && (d->minute < 0) && (d->second < 0)) {
         return true;
@@ -150,38 +150,38 @@ bool KoDateTime::isDateOnly() const
     return false;
 }
 
-void KoDateTime::setDate(int year, int month, int day)
+void cDateTime::setDate(int year, int month, int day)
 {
     d->year = year;
     d->month = month;
     d->day = day;
 }
-void KoDateTime::setTime(int hour, int minute, int second)
+void cDateTime::setTime(int hour, int minute, int second)
 {
     d->hour = hour;
     d->minute = minute;
     d->second = second;
 }
-void KoDateTime::setTimezone(const std::string &tz)
+void cDateTime::setTimezone(const std::string &tz)
 {
     d->timezone = tz;
 }
-void KoDateTime::setUTC(bool utc)
+void cDateTime::setUTC(bool utc)
 {
     d->isUtc = utc;
 }
 
-bool KoDateTime::isUTC() const
+bool cDateTime::isUTC() const
 {
     return d->isUtc;
 }
 
-std::string KoDateTime::timezone() const
+std::string cDateTime::timezone() const
 {
     return d->timezone;
 }
 
-bool KoDateTime::isValid() const
+bool cDateTime::isValid() const
 {
     return (d->year >= 0 && d->month >= 0 && d->day >= 0);
 }
@@ -196,7 +196,7 @@ struct RecurrenceRule::Private
     
     Frequency freq;
     Weekday weekstart;
-    KoDateTime end;
+    cDateTime end;
     int count;
     int interval;
     std::vector<int> bysecond;
@@ -271,12 +271,12 @@ Kolab::Weekday RecurrenceRule::weekStart() const
     return d->weekstart;
 }
 
-void RecurrenceRule::setEnd(const Kolab::KoDateTime &end)
+void RecurrenceRule::setEnd(const Kolab::cDateTime &end)
 {
     d->end = end;
 }
 
-KoDateTime RecurrenceRule::end() const
+cDateTime RecurrenceRule::end() const
 {
     return d->end;
 }
@@ -599,7 +599,7 @@ struct Alarm::Private
     Attachment audioFile;
     std::string summary;
     std::vector<std::string> attendees;
-    KoDateTime start;
+    cDateTime start;
     Duration relativeDuration;
     Relative relativeTo;
     Duration duration;
@@ -692,12 +692,12 @@ std::vector< std::string > Alarm::attendees() const
     return d->attendees;
 }
 
-void Alarm::setStart(const Kolab::KoDateTime &start)
+void Alarm::setStart(const Kolab::cDateTime &start)
 {
     d->start = start;
 }
 
-KoDateTime Alarm::start() const
+cDateTime Alarm::start() const
 {
     return d->start;
 }
diff --git a/c++/lib/kolabcontainers.h b/c++/lib/kolabcontainers.h
index 78f4014..98bea0e 100644
--- a/c++/lib/kolabcontainers.h
+++ b/c++/lib/kolabcontainers.h
@@ -23,16 +23,16 @@
 
 namespace Kolab {
 
-class KoDateTime {
+class cDateTime {
 public:
-    KoDateTime();
-    KoDateTime(int year, int month, int day, int hour, int minute, int second, bool isUtc=true);
-    KoDateTime(const std::string &timezone, int year, int month, int day, int hour, int minute, int second);
-    KoDateTime(int year, int month, int day);
-    ~KoDateTime();
-    KoDateTime(const KoDateTime &);
-    void operator=(const KoDateTime &);
-    bool operator==(const KoDateTime &) const;
+    cDateTime();
+    cDateTime(int year, int month, int day, int hour, int minute, int second, bool isUtc=true);
+    cDateTime(const std::string &timezone, int year, int month, int day, int hour, int minute, int second);
+    cDateTime(int year, int month, int day);
+    ~cDateTime();
+    cDateTime(const cDateTime &);
+    void operator=(const cDateTime &);
+    bool operator==(const cDateTime &) const;
    
     
     void setDate(int year, int month, int day);
@@ -201,8 +201,8 @@ public:
     Duration relativeStart() const;
     Relative relativeTo() const;
     
-    void setStart(const KoDateTime &);
-    KoDateTime start() const;
+    void setStart(const cDateTime &);
+    cDateTime start() const;
 
     void setDuration(const Duration &, int numrepeat);
     Duration duration() const;
@@ -243,8 +243,8 @@ public:
     void setWeekStart(Weekday);
     Weekday weekStart() const;
     
-    void setEnd(const KoDateTime &);
-    KoDateTime end() const;
+    void setEnd(const cDateTime &);
+    cDateTime end() const;
     
     void setCount(int count);
     int count() const;
diff --git a/c++/lib/kolabevent.cpp b/c++/lib/kolabevent.cpp
index f608773..b58f65d 100644
--- a/c++/lib/kolabevent.cpp
+++ b/c++/lib/kolabevent.cpp
@@ -26,7 +26,7 @@ struct Event::Private: public PrivateIncidence
     : PrivateIncidence(), 
     isTransparent(false){}
 
-    KoDateTime end;
+    cDateTime end;
     bool isTransparent;
     Duration duration;
     std::vector< Event > exceptions;
@@ -70,22 +70,22 @@ std::string Event::uid() const
     return d->uid;
 }
 
-void Event::setCreated(const Kolab::KoDateTime &created)
+void Event::setCreated(const Kolab::cDateTime &created)
 {
     d->created = created;
 }
 
-KoDateTime Event::created() const
+cDateTime Event::created() const
 {
     return d->created;
 }
 
-void Event::setLastModified(const Kolab::KoDateTime &lastMod)
+void Event::setLastModified(const Kolab::cDateTime &lastMod)
 {
     d->lastModified = lastMod;
 }
 
-KoDateTime Event::lastModified() const
+cDateTime Event::lastModified() const
 {
     return d->lastModified;
 }
@@ -125,22 +125,22 @@ std::vector< std::string > Event::categories() const
     return d->categories;
 }
 
-void Event::setStart(const Kolab::KoDateTime &start)
+void Event::setStart(const Kolab::cDateTime &start)
 {
     d->start = start;
 }
 
-KoDateTime Event::start() const
+cDateTime Event::start() const
 {
     return d->start;
 }
 
-void Event::setEnd(const Kolab::KoDateTime &end)
+void Event::setEnd(const Kolab::cDateTime &end)
 {
     d->end = end;
 }
 
-KoDateTime Event::end() const
+cDateTime Event::end() const
 {
     return d->end;
 }
@@ -156,13 +156,13 @@ Duration Event::duration() const
 }
 
 
-void Event::setRecurrenceID(const Kolab::KoDateTime &rID, bool thisandfuture)
+void Event::setRecurrenceID(const Kolab::cDateTime &rID, bool thisandfuture)
 {
     d->recurrenceID = rID;
     d->thisAndFuture = thisandfuture;
 }
 
-KoDateTime Event::recurrenceID() const
+cDateTime Event::recurrenceID() const
 {
     return d->recurrenceID;
 }
@@ -232,32 +232,32 @@ RecurrenceRule Event::recurrenceRule() const
     return d->rrule;
 }
 
-void Event::setRecurrenceDates(const std::vector< KoDateTime > &dates)
+void Event::setRecurrenceDates(const std::vector< cDateTime > &dates)
 {
     d->recurrenceDates = dates;
 }
 
-void Event::addRecurrenceDate(const Kolab::KoDateTime &dt)
+void Event::addRecurrenceDate(const Kolab::cDateTime &dt)
 {
     d->recurrenceDates.push_back(dt);
 }
 
-std::vector< KoDateTime > Event::recurrenceDates() const
+std::vector< cDateTime > Event::recurrenceDates() const
 {
     return d->recurrenceDates;
 }
 
-void Event::setExceptionDates(const std::vector< KoDateTime > &dates)
+void Event::setExceptionDates(const std::vector< cDateTime > &dates)
 {
     d->exceptionDates = dates;
 }
 
-void Event::addExceptionDate(const Kolab::KoDateTime &dt)
+void Event::addExceptionDate(const Kolab::cDateTime &dt)
 {
     d->exceptionDates.push_back(dt);
 }
 
-std::vector< KoDateTime > Event::exceptionDates() const
+std::vector< cDateTime > Event::exceptionDates() const
 {
     return d->exceptionDates;
 }
diff --git a/c++/lib/kolabevent.h b/c++/lib/kolabevent.h
index 5e5573b..4235794 100644
--- a/c++/lib/kolabevent.h
+++ b/c++/lib/kolabevent.h
@@ -36,11 +36,11 @@ public:
     void setUid(const std::string &);
     std::string uid() const;
     
-    void setCreated(const KoDateTime &);
-    KoDateTime created() const;
+    void setCreated(const cDateTime &);
+    cDateTime created() const;
     
-    void setLastModified(const KoDateTime &);
-    KoDateTime lastModified() const;
+    void setLastModified(const cDateTime &);
+    cDateTime lastModified() const;
     
     void setSequence(int);
     int sequence() const;
@@ -52,11 +52,11 @@ public:
     void addCategory(const std::string &);
     std::vector<std::string> categories() const;
     
-    void setStart(const KoDateTime &);
-    KoDateTime start() const;
+    void setStart(const cDateTime &);
+    cDateTime start() const;
     
-    void setEnd(const KoDateTime &);
-    KoDateTime end() const;
+    void setEnd(const cDateTime &);
+    cDateTime end() const;
     
     void setDuration(const Duration &);
     Duration duration() const;
@@ -67,16 +67,16 @@ public:
     void setRecurrenceRule(const RecurrenceRule &);
     RecurrenceRule recurrenceRule() const;
     
-    void setRecurrenceDates(const std::vector<KoDateTime> &);
-    void addRecurrenceDate(const KoDateTime &);
-    std::vector<KoDateTime> recurrenceDates() const;
+    void setRecurrenceDates(const std::vector<cDateTime> &);
+    void addRecurrenceDate(const cDateTime &);
+    std::vector<cDateTime> recurrenceDates() const;
     
-    void setExceptionDates(const std::vector<KoDateTime> &);
-    void addExceptionDate(const KoDateTime &);
-    std::vector<KoDateTime> exceptionDates() const;
+    void setExceptionDates(const std::vector<cDateTime> &);
+    void addExceptionDate(const cDateTime &);
+    std::vector<cDateTime> exceptionDates() const;
     
-    void setRecurrenceID(const KoDateTime &, bool thisandfuture);
-    KoDateTime recurrenceID() const;
+    void setRecurrenceID(const cDateTime &, bool thisandfuture);
+    cDateTime recurrenceID() const;
     bool thisAndFuture() const;
     
     void setSummary(const std::string &);
diff --git a/c++/lib/kolabformat.i b/c++/lib/kolabformat.i
index 34187f8..3b86bdc 100644
--- a/c++/lib/kolabformat.i
+++ b/c++/lib/kolabformat.i
@@ -29,7 +29,7 @@ namespace std {
     %template(vectorattendee) vector<Kolab::Attendee>;
     %template(vectorrelated) vector<Kolab::Related>;
     %template(vectortelephone) vector<Kolab::Telephone>;
-    %template(vectordatetime) vector<Kolab::KoDateTime>;
+    %template(vectordatetime) vector<Kolab::cDateTime>;
 };
 
 %include "global_definitions.h"
diff --git a/c++/lib/kolabjournal.cpp b/c++/lib/kolabjournal.cpp
index 6b8dab4..f13633b 100644
--- a/c++/lib/kolabjournal.cpp
+++ b/c++/lib/kolabjournal.cpp
@@ -61,22 +61,22 @@ std::string Journal::uid() const
     return d->uid;
 }
 
-void Journal::setCreated(const Kolab::KoDateTime &created)
+void Journal::setCreated(const Kolab::cDateTime &created)
 {
     d->created = created;
 }
 
-KoDateTime Journal::created() const
+cDateTime Journal::created() const
 {
     return d->created;
 }
 
-void Journal::setLastModified(const Kolab::KoDateTime &lastMod)
+void Journal::setLastModified(const Kolab::cDateTime &lastMod)
 {
     d->lastModified = lastMod;
 }
 
-KoDateTime Journal::lastModified() const
+cDateTime Journal::lastModified() const
 {
     return d->lastModified;
 }
@@ -116,12 +116,12 @@ std::vector< std::string > Journal::categories() const
     return d->categories;
 }
 
-void Journal::setStart(const Kolab::KoDateTime &start)
+void Journal::setStart(const Kolab::cDateTime &start)
 {
     d->start = start;
 }
 
-KoDateTime Journal::start() const
+cDateTime Journal::start() const
 {
     return d->start;
 }
diff --git a/c++/lib/kolabjournal.h b/c++/lib/kolabjournal.h
index 35c5bac..9a904d3 100644
--- a/c++/lib/kolabjournal.h
+++ b/c++/lib/kolabjournal.h
@@ -36,11 +36,11 @@ public:
     void setUid(const std::string &);
     std::string uid() const;
     
-    void setCreated(const KoDateTime &);
-    KoDateTime created() const;
+    void setCreated(const cDateTime &);
+    cDateTime created() const;
     
-    void setLastModified(const KoDateTime &);
-    KoDateTime lastModified() const;
+    void setLastModified(const cDateTime &);
+    cDateTime lastModified() const;
     
     void setSequence(int);
     int sequence() const;
@@ -52,8 +52,8 @@ public:
     void addCategory(const std::string &);
     std::vector<std::string> categories() const;
     
-    void setStart(const KoDateTime &);
-    KoDateTime start() const;
+    void setStart(const cDateTime &);
+    cDateTime start() const;
     
     void setSummary(const std::string &);
     std::string summary() const;
diff --git a/c++/lib/kolabkcalconversion.cpp b/c++/lib/kolabkcalconversion.cpp
index 59e765d..f7c8c21 100644
--- a/c++/lib/kolabkcalconversion.cpp
+++ b/c++/lib/kolabkcalconversion.cpp
@@ -27,7 +27,7 @@
 namespace Kolab {
 namespace KCalConversion {
 
-KDateTime toDate(const Kolab::KoDateTime &dt)
+KDateTime toDate(const Kolab::cDateTime &dt)
 {
     KDateTime date;
     if (!dt.isValid()) {
@@ -61,13 +61,13 @@ KDateTime toDate(const Kolab::KoDateTime &dt)
     return date;
 }
 
-KoDateTime fromDate(const KDateTime &dt)
+cDateTime fromDate(const KDateTime &dt)
 {
     if (!dt.isValid()) {
 //         qDebug() << "invalid datetime converted";
-        return KoDateTime();
+        return cDateTime();
     }
-    KoDateTime date;
+    cDateTime date;
     if (dt.isDateOnly()) { //Date only
         const QDate &d = dt.date();
         date.setDate(d.year(), d.month(), d.day());
@@ -83,7 +83,7 @@ KoDateTime fromDate(const KDateTime &dt)
             date.setTimezone(dt.timeZone().name().toStdString()); //FIXME use system independent name according to spec
         } else if (dt.timeType() != KDateTime::ClockTime) {
             qWarning() << "invalid timespec, assuming floating time" << dt.timeType();
-            return KoDateTime();
+            return cDateTime();
         }
     }
     Q_ASSERT(date.isValid());
@@ -559,7 +559,7 @@ void setRecurrence(KCalCore::Incidence &e, const T &event)
             defaultRR->setByMonths(QVector<int>::fromStdVector(rrule.bymonth()).toList());
         }
     }
-    foreach (const Kolab::KoDateTime &dt, event.recurrenceDates()) {
+    foreach (const Kolab::cDateTime &dt, event.recurrenceDates()) {
         const KDateTime &date = toDate(dt);
         if (date.isDateOnly()) {
             e.recurrence()->addRDate(date.date());
@@ -567,7 +567,7 @@ void setRecurrence(KCalCore::Incidence &e, const T &event)
             e.recurrence()->addRDateTime(date);
         }
     }
-    foreach (const Kolab::KoDateTime &dt, event.exceptionDates()) {
+    foreach (const Kolab::cDateTime &dt, event.exceptionDates()) {
         const KDateTime &date = toDate(dt);
         if (date.isDateOnly()) {
             e.recurrence()->addExDate(date.date());
@@ -621,7 +621,7 @@ void getRecurrence(T &i, const I &e)
     rrule.setBymonth(defaultRR->byMonths().toVector().toStdVector());
     i.setRecurrenceRule(rrule);
     
-    std::vector<Kolab::KoDateTime> rdates;
+    std::vector<Kolab::cDateTime> rdates;
     foreach (const KDateTime &dt, rec->rDateTimes()) {
         rdates.push_back(fromDate(dt));
     }
@@ -630,7 +630,7 @@ void getRecurrence(T &i, const I &e)
     }
     i.setRecurrenceDates(rdates);
     
-    std::vector<Kolab::KoDateTime> exdates;
+    std::vector<Kolab::cDateTime> exdates;
     foreach (const KDateTime &dt, rec->exDateTimes()) {
         exdates.push_back(fromDate(dt));
     }
diff --git a/c++/lib/kolabkcalconversion.h b/c++/lib/kolabkcalconversion.h
index 416809a..0568d63 100644
--- a/c++/lib/kolabkcalconversion.h
+++ b/c++/lib/kolabkcalconversion.h
@@ -42,8 +42,8 @@ namespace Kolab {
         KCalCore::Journal::Ptr toKCalCore(const Kolab::Journal &);
         Kolab::Journal fromKCalCore(const KCalCore::Journal &);
 
-        KDateTime toDate(const Kolab::KoDateTime &dt);
-        KoDateTime fromDate(const KDateTime &dt);
+        KDateTime toDate(const Kolab::cDateTime &dt);
+        cDateTime fromDate(const KDateTime &dt);
 
     };
 };
diff --git a/c++/lib/kolabtodo.cpp b/c++/lib/kolabtodo.cpp
index fb45934..90b7899 100644
--- a/c++/lib/kolabtodo.cpp
+++ b/c++/lib/kolabtodo.cpp
@@ -27,7 +27,7 @@ struct Todo::Private: public PrivateIncidence
     : PrivateIncidence(),
     percentComplete(0){}
     
-    KoDateTime due;
+    cDateTime due;
     int percentComplete;
 };
 
@@ -68,22 +68,22 @@ std::string Todo::uid() const
     return d->uid;
 }
 
-void Todo::setCreated(const Kolab::KoDateTime &created)
+void Todo::setCreated(const Kolab::cDateTime &created)
 {
     d->created = created;
 }
 
-KoDateTime Todo::created() const
+cDateTime Todo::created() const
 {
     return d->created;
 }
 
-void Todo::setLastModified(const Kolab::KoDateTime &lastMod)
+void Todo::setLastModified(const Kolab::cDateTime &lastMod)
 {
     d->lastModified = lastMod;
 }
 
-KoDateTime Todo::lastModified() const
+cDateTime Todo::lastModified() const
 {
     return d->lastModified;
 }
@@ -138,33 +138,33 @@ std::vector< std::string > Todo::relatedTo() const
     return d->relatedTo;
 }
 
-void Todo::setStart(const Kolab::KoDateTime &start)
+void Todo::setStart(const Kolab::cDateTime &start)
 {
     d->start = start;
 }
 
-KoDateTime Todo::start() const
+cDateTime Todo::start() const
 {
     return d->start;
 }
 
-void Todo::setDue(const Kolab::KoDateTime &due)
+void Todo::setDue(const Kolab::cDateTime &due)
 {
     d->due = due;
 }
 
-KoDateTime Todo::due() const
+cDateTime Todo::due() const
 {
     return d->due;
 }
 
-void Todo::setRecurrenceID(const Kolab::KoDateTime &rID, bool thisandfuture)
+void Todo::setRecurrenceID(const Kolab::cDateTime &rID, bool thisandfuture)
 {
     d->recurrenceID = rID;
     d->thisAndFuture = thisandfuture;
 }
 
-KoDateTime Todo::recurrenceID() const
+cDateTime Todo::recurrenceID() const
 {
     return d->recurrenceID;
 }
@@ -244,32 +244,32 @@ RecurrenceRule Todo::recurrenceRule() const
     return d->rrule;
 }
 
-void Todo::setRecurrenceDates(const std::vector< KoDateTime > &dates)
+void Todo::setRecurrenceDates(const std::vector< cDateTime > &dates)
 {
     d->recurrenceDates = dates;
 }
 
-void Todo::addRecurrenceDate(const Kolab::KoDateTime &dt)
+void Todo::addRecurrenceDate(const Kolab::cDateTime &dt)
 {
     d->recurrenceDates.push_back(dt);
 }
 
-std::vector< KoDateTime > Todo::recurrenceDates() const
+std::vector< cDateTime > Todo::recurrenceDates() const
 {
     return d->recurrenceDates;
 }
 
-void Todo::setExceptionDates(const std::vector< KoDateTime > &dates)
+void Todo::setExceptionDates(const std::vector< cDateTime > &dates)
 {
     d->exceptionDates = dates;
 }
 
-void Todo::addExceptionDate(const Kolab::KoDateTime &dt)
+void Todo::addExceptionDate(const Kolab::cDateTime &dt)
 {
     d->exceptionDates.push_back(dt);
 }
 
-std::vector< KoDateTime > Todo::exceptionDates() const
+std::vector< cDateTime > Todo::exceptionDates() const
 {
     return d->exceptionDates;
 }
diff --git a/c++/lib/kolabtodo.h b/c++/lib/kolabtodo.h
index 6ca67ed..b2cf54a 100644
--- a/c++/lib/kolabtodo.h
+++ b/c++/lib/kolabtodo.h
@@ -37,11 +37,11 @@ public:
     void setUid(const std::string &);
     std::string uid() const;
     
-    void setCreated(const KoDateTime &);
-    KoDateTime created() const;
+    void setCreated(const cDateTime &);
+    cDateTime created() const;
     
-    void setLastModified(const KoDateTime &);
-    KoDateTime lastModified() const;
+    void setLastModified(const cDateTime &);
+    cDateTime lastModified() const;
     
     void setSequence(int);
     int sequence() const;
@@ -57,25 +57,25 @@ public:
     void addRelatedTo(const std::string &);
     std::vector<std::string> relatedTo() const;
     
-    void setStart(const KoDateTime &);
-    KoDateTime start() const;
+    void setStart(const cDateTime &);
+    cDateTime start() const;
     
-    void setDue(const KoDateTime &);
-    KoDateTime due() const;
+    void setDue(const cDateTime &);
+    cDateTime due() const;
 
     void setRecurrenceRule(const RecurrenceRule &);
     RecurrenceRule recurrenceRule() const;
     
-    void setRecurrenceDates(const std::vector<KoDateTime> &);
-    void addRecurrenceDate(const KoDateTime &);
-    std::vector<KoDateTime> recurrenceDates() const;
+    void setRecurrenceDates(const std::vector<cDateTime> &);
+    void addRecurrenceDate(const cDateTime &);
+    std::vector<cDateTime> recurrenceDates() const;
     
-    void setExceptionDates(const std::vector<KoDateTime> &);
-    void addExceptionDate(const KoDateTime &);
-    std::vector<KoDateTime> exceptionDates() const;
+    void setExceptionDates(const std::vector<cDateTime> &);
+    void addExceptionDate(const cDateTime &);
+    std::vector<cDateTime> exceptionDates() const;
     
-    void setRecurrenceID(const KoDateTime &, bool thisandfuture);
-    KoDateTime recurrenceID() const;
+    void setRecurrenceID(const cDateTime &, bool thisandfuture);
+    cDateTime recurrenceID() const;
     bool thisAndFuture() const;
     
     void setSummary(const std::string &);
diff --git a/c++/lib/python/test.py b/c++/lib/python/test.py
index d4113ac..f7a306e 100644
--- a/c++/lib/python/test.py
+++ b/c++/lib/python/test.py
@@ -3,7 +3,7 @@ e = kolabformat.Event()
 
 ex = e.exceptionDates()
 ex.size()
-ex.push_back(kolabformat.KoDateTime(1,1,1))
+ex.push_back(kolabformat.cDateTime(1,1,1))
 ex.size()
 e.exceptionDates().size()
 e.setExceptionDates(ex)
diff --git a/c++/lib/utils.cpp b/c++/lib/utils.cpp
index d476dfd..9603504 100644
--- a/c++/lib/utils.cpp
+++ b/c++/lib/utils.cpp
@@ -98,13 +98,13 @@ std::string getUID(const std::string &s)
     return s;
 }
 
-KoDateTime getCurrentTime()
+cDateTime getCurrentTime()
 {
     time_t rawtime;
     struct tm * ptm;
     time(&rawtime);
     ptm = gmtime(&rawtime);
-    return KoDateTime(ptm->tm_year+1900, ptm->tm_mon+1, ptm->tm_mday, ptm->tm_hour, ptm->tm_min, ptm->tm_sec, true);
+    return cDateTime(ptm->tm_year+1900, ptm->tm_mon+1, ptm->tm_mday, ptm->tm_hour, ptm->tm_min, ptm->tm_sec, true);
 }
 
 
diff --git a/c++/lib/utils.h b/c++/lib/utils.h
index b7b69ea..b3a0766 100644
--- a/c++/lib/utils.h
+++ b/c++/lib/utils.h
@@ -31,7 +31,7 @@ namespace Kolab {
  */
 std::string getUID(const std::string & = std::string());
 
-KoDateTime getCurrentTime();
+cDateTime getCurrentTime();
 
 void logMessage(const std::string &,const std::string &, int, ErrorSeverity s);
      
diff --git a/c++/lib/xcalconversions.h b/c++/lib/xcalconversions.h
index 932b000..1ac57e8 100644
--- a/c++/lib/xcalconversions.h
+++ b/c++/lib/xcalconversions.h
@@ -420,20 +420,20 @@ icalendar_2_0::AttachPropType fromAttachment(const Kolab::Attachment &a)
     return attachment;
 }
 
-//==== KoDateTime ====
+//==== cDateTime ====
 
-typedef boost::shared_ptr<KoDateTime> KoDateTimePtr;
+typedef boost::shared_ptr<cDateTime> cDateTimePtr;
 
-    static KoDateTimePtr toDate(const  xml_schema::date &dt)
+    static cDateTimePtr toDate(const  xml_schema::date &dt)
     {
-        KoDateTimePtr date(new KoDateTime());
+        cDateTimePtr date(new cDateTime());
         date->setDate(dt.year(), dt.month(), dt.day());
         return date;
     }
 
-    static KoDateTimePtr toDate(const xml_schema::date_time &dt)
+    static cDateTimePtr toDate(const xml_schema::date_time &dt)
     {
-        KoDateTimePtr date(new KoDateTime());
+        cDateTimePtr date(new cDateTime());
         date->setDate(dt.year(), dt.month(), dt.day());
         date->setTime(dt.hours(), dt.minutes(), dt.seconds());
         if (dt.zone_present()) {
@@ -442,7 +442,7 @@ typedef boost::shared_ptr<KoDateTime> KoDateTimePtr;
         return date;
     }
     
-    static xml_schema::date_time fromDateTime(const KoDateTime &d)
+    static xml_schema::date_time fromDateTime(const cDateTime &d)
     {
         xml_schema::date_time date(d.year(), d.month(), d.day(), d.hour(), d.minute(), d.second());
         if (d.isUTC()) {
@@ -453,7 +453,7 @@ typedef boost::shared_ptr<KoDateTime> KoDateTimePtr;
         return date;
     }
 
-    static xml_schema::date fromDate(const KoDateTime &d)
+    static xml_schema::date fromDate(const cDateTime &d)
     {
         xml_schema::date date(d.year(), d.month(), d.day());
         return date;
@@ -474,9 +474,9 @@ typedef boost::shared_ptr<KoDateTime> KoDateTimePtr;
     return std::string();
 }
 
-KoDateTimePtr toDate(const icalendar_2_0::DateDatetimePropertyType &dtProperty)
+cDateTimePtr toDate(const icalendar_2_0::DateDatetimePropertyType &dtProperty)
 {
-    KoDateTimePtr date;
+    cDateTimePtr date;
     if (dtProperty.date_time()) {
         date = toDate(*dtProperty.date_time());
     } else if (dtProperty.date()) {
@@ -493,13 +493,13 @@ KoDateTimePtr toDate(const icalendar_2_0::DateDatetimePropertyType &dtProperty)
 }
 
 
-KoDateTimePtr toDate(const icalendar_2_0::UtcDatetimePropertyType &dtProperty)
+cDateTimePtr toDate(const icalendar_2_0::UtcDatetimePropertyType &dtProperty)
 {
-    KoDateTimePtr date;
+    cDateTimePtr date;
     if (dtProperty.date_time()) {
         date = toDate(*dtProperty.date_time());
     } else { //The utc-date-time element shouldn't even exist
-        date = KoDateTimePtr(new KoDateTime());
+        date = cDateTimePtr(new cDateTime());
         ERROR("This element shouldn't even be existing");
         //TODO Implement anyways?
         return date;
@@ -509,7 +509,7 @@ KoDateTimePtr toDate(const icalendar_2_0::UtcDatetimePropertyType &dtProperty)
 }
 
 template <typename I>
-std::auto_ptr<I> fromDate(const KoDateTime &dt)
+std::auto_ptr<I> fromDate(const cDateTime &dt)
 {
     std::auto_ptr<I> ptr(new I);
     if (dt.isDateOnly()) {
@@ -532,9 +532,9 @@ std::auto_ptr<I> fromDate(const KoDateTime &dt)
 
 
 template <typename I>
-std::vector<KoDateTime> toDateTimeList(I datelistProperty)
+std::vector<cDateTime> toDateTimeList(I datelistProperty)
 {
-    std::vector<KoDateTime>  list;
+    std::vector<cDateTime>  list;
     
     std::string tzid;
     if (datelistProperty.parameters()) {
@@ -546,7 +546,7 @@ std::vector<KoDateTime> toDateTimeList(I datelistProperty)
         }
     } else if (!datelistProperty.date_time().empty()) {
         BOOST_FOREACH(const xml_schema::date_time &d, datelistProperty.date_time()) {
-            KoDateTimePtr date = toDate(d);
+            cDateTimePtr date = toDate(d);
             if (tzid.size()) {
                 date->setTimezone(tzid);
             }
@@ -557,11 +557,11 @@ std::vector<KoDateTime> toDateTimeList(I datelistProperty)
 }
 
 template <typename I>
-std::auto_ptr<I> fromDateTimeList(const std::vector<KoDateTime> &dtlist)
+std::auto_ptr<I> fromDateTimeList(const std::vector<cDateTime> &dtlist)
 {
     
     std::auto_ptr<I> ptr(new I);
-    BOOST_FOREACH(const KoDateTime &dt, dtlist) {
+    BOOST_FOREACH(const cDateTime &dt, dtlist) {
         if (dt.isDateOnly()) {
             ptr->date().push_back(fromDate(dt));
         } else {
@@ -588,7 +588,7 @@ std::auto_ptr<I> fromDateTimeList(const std::vector<KoDateTime> &dtlist)
 
     
 
-//---- KoDateTime ----
+//---- cDateTime ----
 
 
 
@@ -781,7 +781,7 @@ RecurrencePtr toRRule(const icalendar_2_0::RecurType &rrule)
     RecurrencePtr r(new RecurrenceRule());
     r->setFrequency(mapRecurrenceFrequency(rrule.freq()));
     if (rrule.until()) {
-        KoDateTimePtr date;
+        cDateTimePtr date;
         if ((*rrule.until()).date_time()) {
             date = toDate(*(*rrule.until()).date_time());
         } else if ((*rrule.until()).date()) {
@@ -839,7 +839,7 @@ void setIncidenceProperties(I &inc, const T &prop)
     }
     
     if (prop.dtstart()) {
-        const KoDateTimePtr date = toDate(*prop.dtstart());
+        const cDateTimePtr date = toDate(*prop.dtstart());
         inc.setStart(*date);
     }
 
@@ -999,7 +999,7 @@ std::auto_ptr< icalendar_2_0::RrulePropType > recurrenceProperty(const Recurrenc
     std::auto_ptr< RrulePropType > rruleProp(new RrulePropType(mapRecurrenceFrequency(r.frequency())));
     
     RecurPropertyType::recur_type &recur = rruleProp->recur();
-    const KoDateTime &endDate = r.end();
+    const cDateTime &endDate = r.end();
     if (endDate.isValid()) {
         RecurPropertyType::recur_type::until_type until;
         if (endDate.isDateOnly()) {
diff --git a/c++/lib/xcardconversions.h b/c++/lib/xcardconversions.h
index 5f7bbe8..a2a240a 100644
--- a/c++/lib/xcardconversions.h
+++ b/c++/lib/xcardconversions.h
@@ -114,7 +114,7 @@ std::vector<std::string> toStringList(const ::xsd::cxx::tree::sequence< ::xml_sc
     return d;
 }
 
-std::string fromDate(const KoDateTime &dt)
+std::string fromDate(const cDateTime &dt)
 {
     if (!dt.isDateOnly()) {
         WARNING("fromDate called on date time value");
@@ -130,7 +130,7 @@ std::string fromDate(const KoDateTime &dt)
     return s.str();
 }
 
-std::string fromDateTime(const KoDateTime &dt)
+std::string fromDateTime(const cDateTime &dt)
 {
     std::stringstream s;
     s.fill('0');
@@ -158,7 +158,7 @@ std::string fromDateTime(const KoDateTime &dt)
     return s.str();
 }
 
-KoDateTime toDateTime(const std::string &input)
+cDateTime toDateTime(const std::string &input)
 {
     int year = 0, month = 0, day = 0, hour = 0, minute = 0, second = 0;
     bool isUtc = false;
@@ -169,7 +169,7 @@ KoDateTime toDateTime(const std::string &input)
         if (input.size() >= 15) { //Minimum for time
             if (input.at(8) != 'T') {
                 ERROR("Wrong demiliter");
-                return KoDateTime();
+                return cDateTime();
             }
             hour = boost::lexical_cast<int>(input.substr(9, 2));
             minute = boost::lexical_cast<int>(input.substr(11, 2));
@@ -177,29 +177,29 @@ KoDateTime toDateTime(const std::string &input)
         } else {
             if (input.size() >= 9) {
                 ERROR("Invalid dt " + input);
-                return KoDateTime();
+                return cDateTime();
             }
-            return KoDateTime(year, month, day);
+            return cDateTime(year, month, day);
         }
         if (input.size() >= 16) {
             if (input.at(15) == 'Z') {
                 isUtc = true;
             } else {
                 ERROR("wrong utc char? " + input.at(15));
-                return KoDateTime();
+                return cDateTime();
             }
         }
     } catch (boost::bad_lexical_cast &c) {
         ERROR("failed to convert: "+std::string(c.what()));
-        return KoDateTime();
+        return cDateTime();
     } catch (...) {
         ERROR("failed to convert: unkown exception");
-        return KoDateTime();
+        return cDateTime();
     }
-    return KoDateTime(year, month, day, hour, minute, second, isUtc);
+    return cDateTime(year, month, day, hour, minute, second, isUtc);
 }
 
-KoDateTime toDateTime(const vcard_4_0::DateDatetimePropertyType &prop)
+cDateTime toDateTime(const vcard_4_0::DateDatetimePropertyType &prop)
 {
     if (prop.date_time()) {
         return toDateTime(*prop.date_time());
@@ -207,11 +207,11 @@ KoDateTime toDateTime(const vcard_4_0::DateDatetimePropertyType &prop)
         return toDateTime(*prop.date());
     }
     ERROR("no date and no datetime");
-    return KoDateTime();
+    return cDateTime();
 }
 
 template <typename T>
-T fromDateTime(const Kolab::KoDateTime &dt)
+T fromDateTime(const Kolab::cDateTime &dt)
 {
     T prop;
 
@@ -345,7 +345,7 @@ void writeCard<Kolab::Contact>(vcard_4_0::vcard &vcard, const Kolab::Contact &co
     }
     
     if (contact.bDay().isValid()) {
-        Kolab::KoDateTime dt = contact.bDay();
+        Kolab::cDateTime dt = contact.bDay();
         if (dt.isUTC() || !dt.timezone().empty()) {
             WARNING("Must be local time, local time assumed");
             dt.setUTC(false);
@@ -354,7 +354,7 @@ void writeCard<Kolab::Contact>(vcard_4_0::vcard &vcard, const Kolab::Contact &co
     }
     
     if (contact.anniversary().isValid()) {
-        Kolab::KoDateTime dt = contact.anniversary();
+        Kolab::cDateTime dt = contact.anniversary();
         if (dt.isUTC() || !dt.timezone().empty()) {
             WARNING("Must be local time, local time assumed");
             dt.setUTC(false);
diff --git a/c++/tests/bindingstest.cpp b/c++/tests/bindingstest.cpp
index 2ed8882..3b43b67 100644
--- a/c++/tests/bindingstest.cpp
+++ b/c++/tests/bindingstest.cpp
@@ -28,11 +28,11 @@ template <typename T>
 void setIncidence(T &ev)
 {
     ev.setUid("UID");
-    ev.setCreated(Kolab::KoDateTime(2006,1,6,12,0,0)); //UTC
+    ev.setCreated(Kolab::cDateTime(2006,1,6,12,0,0)); //UTC
     ev.setSequence(1);
     ev.setClassification(Kolab::ClassConfidential);
     ev.addCategory("Category");
-    ev.setStart(Kolab::KoDateTime("Europe/Zurich", 2006,1,6,12,0,0));
+    ev.setStart(Kolab::cDateTime("Europe/Zurich", 2006,1,6,12,0,0));
     
     Kolab::RecurrenceRule rule;
     rule.setFrequency(Kolab::RecurrenceRule::Daily);
@@ -54,9 +54,9 @@ void setIncidence(T &ev)
     rule.setBymonth(list);
     
     ev.setRecurrenceRule(rule);
-    ev.addRecurrenceDate(Kolab::KoDateTime("Europe/Zurich", 2006,1,6,12,0,0));
-    ev.addExceptionDate(Kolab::KoDateTime("Europe/Zurich", 2006,1,6,12,0,0));
-    ev.setRecurrenceID(Kolab::KoDateTime("Europe/Zurich", 2006,1,6,12,0,0), true);
+    ev.addRecurrenceDate(Kolab::cDateTime("Europe/Zurich", 2006,1,6,12,0,0));
+    ev.addExceptionDate(Kolab::cDateTime("Europe/Zurich", 2006,1,6,12,0,0));
+    ev.setRecurrenceID(Kolab::cDateTime("Europe/Zurich", 2006,1,6,12,0,0), true);
     ev.setSummary("summary");
     ev.setDescription("description");
     ev.setPriority(3);
@@ -116,12 +116,12 @@ void setIncidence(T &ev)
     att.push_back("attendee1");
     att.push_back("attendee2");
     Kolab::Alarm emailAlarm("ident", "value", att);
-    emailAlarm.setStart(Kolab::KoDateTime(2003,2,3,2,3,4, true));
+    emailAlarm.setStart(Kolab::cDateTime(2003,2,3,2,3,4, true));
     alarms.push_back(emailAlarm);
     Kolab::Attachment audiofile;
     audiofile.setUri("ksdjlksdflj", "sdkljdfl");
     Kolab::Alarm audio(audiofile);
-    audio.setStart(Kolab::KoDateTime(2003,2,3,2,3,4, true));
+    audio.setStart(Kolab::cDateTime(2003,2,3,2,3,4, true));
     alarms.push_back(audio);
     ev.setAlarms(alarms);
 }
@@ -181,7 +181,7 @@ void BindingsTest::eventCompletness()
 {
     Kolab::Event ev;
     setIncidence(ev);
-    ev.setEnd(Kolab::KoDateTime("Europe/Zurich", 2006,1,8,12,0,0));
+    ev.setEnd(Kolab::cDateTime("Europe/Zurich", 2006,1,8,12,0,0));
     ev.setTransparency(true);
     
     std::string result = Kolab::writeEvent(ev);
@@ -213,7 +213,7 @@ void BindingsTest::todoCompletness()
 {
     Kolab::Todo ev;
     setIncidence(ev);
-    ev.setDue(Kolab::KoDateTime("Europe/Zurich", 2006,1,8,12,0,0));
+    ev.setDue(Kolab::cDateTime("Europe/Zurich", 2006,1,8,12,0,0));
     ev.addRelatedTo("rel1");
     ev.addRelatedTo("rel2");
     ev.setPercentComplete(50);
@@ -235,11 +235,11 @@ void BindingsTest::journalCompletness()
     
     
     ev.setUid("UID");
-    ev.setCreated(Kolab::KoDateTime(2006,1,6,12,0,0)); //UTC
+    ev.setCreated(Kolab::cDateTime(2006,1,6,12,0,0)); //UTC
     ev.setSequence(1);
     ev.setClassification(Kolab::ClassConfidential);
     ev.addCategory("Category");
-    ev.setStart(Kolab::KoDateTime("Europe/Zurich", 2006,1,6,12,0,0));
+    ev.setStart(Kolab::cDateTime("Europe/Zurich", 2006,1,6,12,0,0));
     Kolab::Attendee attendee("email");
     attendee.setName("name");
     attendee.setPartStat(Kolab::PartDelegated);
@@ -330,8 +330,8 @@ void BindingsTest::contactCompletness()
     c.setFreeBusyUrl("freebusy");
     c.setUrls(stringlist);
     c.setNickNames(stringlist);
-    c.setBDay(Kolab::KoDateTime(2001,12,10,12,12,12,false));
-    c.setAnniversary(Kolab::KoDateTime(2001,3,2,1,1,1,false));
+    c.setBDay(Kolab::cDateTime(2001,12,10,12,12,12,false));
+    c.setAnniversary(Kolab::cDateTime(2001,3,2,1,1,1,false));
     c.setPhoto("photo", "mimetype");
     c.setGender(Kolab::Contact::Male);
     c.setLanguages(stringlist);
diff --git a/c++/tests/conversiontest.cpp b/c++/tests/conversiontest.cpp
index bc2ebcc..0752c90 100644
--- a/c++/tests/conversiontest.cpp
+++ b/c++/tests/conversiontest.cpp
@@ -10,15 +10,15 @@
 
 Q_DECLARE_METATYPE(Kolab::Duration);
 Q_DECLARE_METATYPE(Kolab::DayPos);
-Q_DECLARE_METATYPE(Kolab::KoDateTime);
+Q_DECLARE_METATYPE(Kolab::cDateTime);
 Q_DECLARE_METATYPE(Kolab::ErrorSeverity);
 
 using namespace Kolab::XCAL;
 
 void ConversionTest::dateComparatorTest()
 {
-    QVERIFY( !(Kolab::KoDateTime(2001, 01, 02, 03, 04 ,05, false) == Kolab::KoDateTime()));
-    QVERIFY( Kolab::KoDateTime(2001, 01, 02, 03, 04 ,05, false) == Kolab::KoDateTime(2001, 01, 02, 03, 04 ,05, false));
+    QVERIFY( !(Kolab::cDateTime(2001, 01, 02, 03, 04 ,05, false) == Kolab::cDateTime()));
+    QVERIFY( Kolab::cDateTime(2001, 01, 02, 03, 04 ,05, false) == Kolab::cDateTime(2001, 01, 02, 03, 04 ,05, false));
 }
 
  
@@ -111,15 +111,15 @@ void ConversionTest::dayPosSerializerTest()
 void ConversionTest::xcardDateParserTest_data()
 {
     QTest::addColumn<QString>("input");
-    QTest::addColumn<Kolab::KoDateTime>("expected");
+    QTest::addColumn<Kolab::cDateTime>("expected");
     QTest::addColumn<Kolab::ErrorSeverity>("errorState");
 
-    QTest::newRow("datetime local") << "20010102T030405" << Kolab::KoDateTime(2001, 01, 02, 03, 04 ,05, false) << Kolab::NoError;
-    QTest::newRow("datetime utc") << "20010102T030405Z" << Kolab::KoDateTime(2001, 01, 02, 03, 04 ,05, true) << Kolab::NoError;
-    QTest::newRow("date only") << "20010102" << Kolab::KoDateTime(2001, 01, 02) << Kolab::NoError;
-    QTest::newRow("fail 1 short") << "20010102T03040" << Kolab::KoDateTime() << Kolab::Error;
-    QTest::newRow("fail non utc") << "20010102T030401s" << Kolab::KoDateTime() << Kolab::Error;
-    QTest::newRow("fail no time") << "20010102T" << Kolab::KoDateTime() << Kolab::Error;
+    QTest::newRow("datetime local") << "20010102T030405" << Kolab::cDateTime(2001, 01, 02, 03, 04 ,05, false) << Kolab::NoError;
+    QTest::newRow("datetime utc") << "20010102T030405Z" << Kolab::cDateTime(2001, 01, 02, 03, 04 ,05, true) << Kolab::NoError;
+    QTest::newRow("date only") << "20010102" << Kolab::cDateTime(2001, 01, 02) << Kolab::NoError;
+    QTest::newRow("fail 1 short") << "20010102T03040" << Kolab::cDateTime() << Kolab::Error;
+    QTest::newRow("fail non utc") << "20010102T030401s" << Kolab::cDateTime() << Kolab::Error;
+    QTest::newRow("fail no time") << "20010102T" << Kolab::cDateTime() << Kolab::Error;
     Kolab::Utils::clearErrors();
 }
 
@@ -127,9 +127,9 @@ void ConversionTest::xcardDateParserTest_data()
 void ConversionTest::xcardDateParserTest()
 {
     QFETCH(QString, input);
-    QFETCH(Kolab::KoDateTime, expected);
+    QFETCH(Kolab::cDateTime, expected);
     QFETCH(Kolab::ErrorSeverity, errorState);
-    const Kolab::KoDateTime &dt = Kolab::XCARD::toDateTime(input.toStdString());
+    const Kolab::cDateTime &dt = Kolab::XCARD::toDateTime(input.toStdString());
     QCOMPARE(dt, expected);
     QCOMPARE(Kolab::Utils::getError(), errorState);
 }
@@ -137,18 +137,18 @@ void ConversionTest::xcardDateParserTest()
 void ConversionTest::xCardSerializerTest_data()
 {
     QTest::addColumn<QString>("expected");
-    QTest::addColumn<Kolab::KoDateTime>("dt");
+    QTest::addColumn<Kolab::cDateTime>("dt");
 
-    QTest::newRow("datetime local") << "20010102T030405" << Kolab::KoDateTime(2001, 01, 02, 03, 04 ,05, false);
-    QTest::newRow("datetime utc") << "20010102T030405Z" << Kolab::KoDateTime(2001, 01, 02, 03, 04 ,05, true);
-    QTest::newRow("dateonly") << "20010102" << Kolab::KoDateTime(2001, 01, 02);
+    QTest::newRow("datetime local") << "20010102T030405" << Kolab::cDateTime(2001, 01, 02, 03, 04 ,05, false);
+    QTest::newRow("datetime utc") << "20010102T030405Z" << Kolab::cDateTime(2001, 01, 02, 03, 04 ,05, true);
+    QTest::newRow("dateonly") << "20010102" << Kolab::cDateTime(2001, 01, 02);
     Kolab::Utils::clearErrors();
 }
 
 void ConversionTest::xCardSerializerTest()
 {
     QFETCH(QString, expected);
-    QFETCH(Kolab::KoDateTime, dt);
+    QFETCH(Kolab::cDateTime, dt);
     const std::string &s = Kolab::XCARD::fromDateTime(dt);
     QCOMPARE(QString::fromStdString(s), expected);
     if (dt.isDateOnly()) {
diff --git a/c++/tests/kcalconversiontest.cpp b/c++/tests/kcalconversiontest.cpp
index 5dac8f0..74ff3f3 100644
--- a/c++/tests/kcalconversiontest.cpp
+++ b/c++/tests/kcalconversiontest.cpp
@@ -14,11 +14,11 @@
 using namespace Kolab::KCalConversion;
 
 Q_DECLARE_METATYPE(Kolab::Duration);
-Q_DECLARE_METATYPE(Kolab::KoDateTime);
+Q_DECLARE_METATYPE(Kolab::cDateTime);
 Q_DECLARE_METATYPE(Kolab::Event);
 Q_DECLARE_METATYPE(Kolab::Todo);
 Q_DECLARE_METATYPE(Kolab::Journal);
-Q_DECLARE_METATYPE(std::vector<Kolab::KoDateTime>);
+Q_DECLARE_METATYPE(std::vector<Kolab::cDateTime>);
 Q_DECLARE_METATYPE(KCalCore::Event);
 Q_DECLARE_METATYPE(KCalCore::Todo);
 Q_DECLARE_METATYPE(KCalCore::Journal);
@@ -180,25 +180,25 @@ void comparePointerVectors(const QVector<T> &list, const QVector<T> &other)
 
 void KCalConversionTest::testDate_data()
 {
-    QTest::addColumn<Kolab::KoDateTime>( "input" );
+    QTest::addColumn<Kolab::cDateTime>( "input" );
     QTest::addColumn<KDateTime>( "result" );
 
-    QTest::newRow( "datetime with tz" ) << Kolab::KoDateTime("Europe/Zurich",2006,1,8,12,0,0) << KDateTime(QDate(2006, 1, 8), QTime(12, 0, 0), KSystemTimeZones::zone("Europe/Zurich"));
-    QTest::newRow( "floating datetime" ) << Kolab::KoDateTime(2006,1,8,12,0,0, false) << KDateTime(QDate(2006, 1, 8), QTime(12, 0, 0), KDateTime::Spec(KDateTime::ClockTime));
-    QTest::newRow( "utc datetime" ) << Kolab::KoDateTime(2006,1,8,12,0,0, true) << KDateTime(KDateTime(QDate(2006, 1, 8), QTime(12, 0, 0), KDateTime::UTC));
-    QTest::newRow( "date only" ) << Kolab::KoDateTime(2006,1,8) << KDateTime(QDate(2006, 1, 8));
+    QTest::newRow( "datetime with tz" ) << Kolab::cDateTime("Europe/Zurich",2006,1,8,12,0,0) << KDateTime(QDate(2006, 1, 8), QTime(12, 0, 0), KSystemTimeZones::zone("Europe/Zurich"));
+    QTest::newRow( "floating datetime" ) << Kolab::cDateTime(2006,1,8,12,0,0, false) << KDateTime(QDate(2006, 1, 8), QTime(12, 0, 0), KDateTime::Spec(KDateTime::ClockTime));
+    QTest::newRow( "utc datetime" ) << Kolab::cDateTime(2006,1,8,12,0,0, true) << KDateTime(KDateTime(QDate(2006, 1, 8), QTime(12, 0, 0), KDateTime::UTC));
+    QTest::newRow( "date only" ) << Kolab::cDateTime(2006,1,8) << KDateTime(QDate(2006, 1, 8));
 }
 
 
 void KCalConversionTest::testDate()
 {
-    QFETCH(Kolab::KoDateTime, input);
+    QFETCH(Kolab::cDateTime, input);
     QFETCH(KDateTime, result);
     
     const KDateTime &r = Kolab::KCalConversion::toDate(input);
     QCOMPARE(r, result);
     
-    const Kolab::KoDateTime &r2 = Kolab::KCalConversion::fromDate(result);
+    const Kolab::cDateTime &r2 = Kolab::KCalConversion::fromDate(result);
     QCOMPARE(r2, input);
 }
 
@@ -233,16 +233,16 @@ void KCalConversionTest::testDuration()
 
 void KCalConversionTest::testDateTZ_data()
 {
-    QTest::addColumn<Kolab::KoDateTime>( "input" );
+    QTest::addColumn<Kolab::cDateTime>( "input" );
     QTest::addColumn<KDateTime>( "result" );
     QTest::addColumn<int>( "offset" );
        
-    QTest::newRow( "berlin" ) << Kolab::KoDateTime("Europe/Berlin",2006,1,8,12,0,0) << KDateTime(QDate(2006, 1, 8), QTime(12, 0, 0), KSystemTimeZones::zone("Europe/Berlin")) << 3600;
+    QTest::newRow( "berlin" ) << Kolab::cDateTime("Europe/Berlin",2006,1,8,12,0,0) << KDateTime(QDate(2006, 1, 8), QTime(12, 0, 0), KSystemTimeZones::zone("Europe/Berlin")) << 3600;
 }
 
 void KCalConversionTest::testDateTZ()
 {
-    QFETCH(Kolab::KoDateTime, input);
+    QFETCH(Kolab::cDateTime, input);
     QFETCH(KDateTime, result);
     QFETCH(int, offset);
     
@@ -250,7 +250,7 @@ void KCalConversionTest::testDateTZ()
     QCOMPARE(result.timeZone().name(), QString::fromStdString(input.timezone()));
     QCOMPARE(r.timeZone().currentOffset(), offset);
     
-    const Kolab::KoDateTime &r2 = Kolab::KCalConversion::fromDate(result);
+    const Kolab::cDateTime &r2 = Kolab::KCalConversion::fromDate(result);
     QCOMPARE(QString::fromStdString(r2.timezone()), result.timeZone().name());
 }
 
@@ -260,9 +260,9 @@ void KCalConversionTest::testConversion_data()
     QTest::addColumn<KCalCore::Event>( "kcal" );
     QTest::addColumn<Kolab::Event>( "kolab" );
     
-    Kolab::KoDateTime date(2011,2,2,12,11,10);
-    Kolab::KoDateTime date2(2011,2,2,12,12,10);
-    Kolab::KoDateTime date3(2012,2,2,12,12,10);
+    Kolab::cDateTime date(2011,2,2,12,11,10);
+    Kolab::cDateTime date2(2011,2,2,12,12,10);
+    Kolab::cDateTime date3(2012,2,2,12,12,10);
     std::vector<int> intVector;
     intVector.push_back(1);
     intVector.push_back(-3);
@@ -346,8 +346,8 @@ void KCalConversionTest::testConversion_data()
         
         kolab.setRecurrenceRule(rrule);
         kolab.setRecurrenceID(date2, true);
-        kolab.setRecurrenceDates(std::vector<Kolab::KoDateTime>() << date2 << Kolab::KoDateTime(date2.year(), date2.month(), date2.day()));
-        kolab.setExceptionDates(std::vector<Kolab::KoDateTime>() << date3 << Kolab::KoDateTime(date3.year(), date3.month(), date3.day()));
+        kolab.setRecurrenceDates(std::vector<Kolab::cDateTime>() << date2 << Kolab::cDateTime(date2.year(), date2.month(), date2.day()));
+        kolab.setExceptionDates(std::vector<Kolab::cDateTime>() << date3 << Kolab::cDateTime(date3.year(), date3.month(), date3.day()));
         
         kolab.setSummary("summary");
         kolab.setDescription("description");
@@ -399,8 +399,8 @@ void KCalConversionTest::testConversion_data()
         QTest::newRow("with duration and recurrence endDate") << kcal << kolab;
     }
     {
-        Kolab::KoDateTime start(2011,1,1);
-        Kolab::KoDateTime end(2011,1,3);
+        Kolab::cDateTime start(2011,1,1);
+        Kolab::cDateTime end(2011,1,3);
         
         KCalCore::Event kcal;
         kcal.setUid("uid");
@@ -492,8 +492,8 @@ void KCalConversionTest::testTodoConversion_data()
     QTest::addColumn<KCalCore::Todo>( "kcal" );
     QTest::addColumn<Kolab::Todo>( "kolab" );
     
-    Kolab::KoDateTime date(2011,2,2,12,11,10);
-    Kolab::KoDateTime date2(2011,2,2,12,12,10);
+    Kolab::cDateTime date(2011,2,2,12,11,10);
+    Kolab::cDateTime date2(2011,2,2,12,12,10);
     
     {
         KCalCore::Todo kcal;
@@ -533,8 +533,8 @@ void KCalConversionTest::testJournalConversion_data()
     QTest::addColumn<KCalCore::Journal>( "kcal" );
     QTest::addColumn<Kolab::Journal>( "kolab" );
     
-    Kolab::KoDateTime date(2011,2,2,12,11,10);
-    Kolab::KoDateTime date2(2011,2,2,12,12,10);
+    Kolab::cDateTime date(2011,2,2,12,11,10);
+    Kolab::cDateTime date2(2011,2,2,12,12,10);
     
     {
         KCalCore::Journal kcal;
@@ -577,60 +577,60 @@ void KCalConversionTest::testEventConflict_data()
     QTest::addColumn<bool>( "result" );
     {
         Kolab::Event e1;
-        e1.setStart(Kolab::KoDateTime(2011,10,10,12,1,1));
-        e1.setEnd(Kolab::KoDateTime(2011,10,11,12,1,1));
+        e1.setStart(Kolab::cDateTime(2011,10,10,12,1,1));
+        e1.setEnd(Kolab::cDateTime(2011,10,11,12,1,1));
         
         Kolab::Event e2;
-        e2.setStart(Kolab::KoDateTime(2011,11,10,12,1,1));
-        e2.setEnd(Kolab::KoDateTime(2011,11,11,12,1,1));
+        e2.setStart(Kolab::cDateTime(2011,11,10,12,1,1));
+        e2.setEnd(Kolab::cDateTime(2011,11,11,12,1,1));
         
         QTest::newRow( "after" ) << e1 << e2 << false;
     }
     
     {
         Kolab::Event e1;
-        e1.setStart(Kolab::KoDateTime(2011,10,10,12,1,1));
-        e1.setEnd(Kolab::KoDateTime(2011,10,11,12,1,1));
+        e1.setStart(Kolab::cDateTime(2011,10,10,12,1,1));
+        e1.setEnd(Kolab::cDateTime(2011,10,11,12,1,1));
         
         Kolab::Event e2;
-        e2.setStart(Kolab::KoDateTime(2011,9,10,12,1,1));
-        e2.setEnd(Kolab::KoDateTime(2011,9,11,12,1,1));
+        e2.setStart(Kolab::cDateTime(2011,9,10,12,1,1));
+        e2.setEnd(Kolab::cDateTime(2011,9,11,12,1,1));
         
         QTest::newRow( "before" ) << e1 << e2 << false;
     }
     
     {
         Kolab::Event e1;
-        e1.setStart(Kolab::KoDateTime(2011,10,10,12,1,1));
-        e1.setEnd(Kolab::KoDateTime(2011,10,11,12,1,1));
+        e1.setStart(Kolab::cDateTime(2011,10,10,12,1,1));
+        e1.setEnd(Kolab::cDateTime(2011,10,11,12,1,1));
         
         Kolab::Event e2;
-        e2.setStart(Kolab::KoDateTime(2011,10,10,12,1,1));
-        e2.setEnd(Kolab::KoDateTime(2011,10,11,12,1,1));
+        e2.setStart(Kolab::cDateTime(2011,10,10,12,1,1));
+        e2.setEnd(Kolab::cDateTime(2011,10,11,12,1,1));
         
         QTest::newRow( "conflict" ) << e1 << e2 << true;
     }
     
     {
         Kolab::Event e1;
-        e1.setStart(Kolab::KoDateTime("Europe/Zurich", 2011,10,10,6,1,1));
-        e1.setEnd(Kolab::KoDateTime("Europe/Zurich", 2011,10,10,6,1,2));
+        e1.setStart(Kolab::cDateTime("Europe/Zurich", 2011,10,10,6,1,1));
+        e1.setEnd(Kolab::cDateTime("Europe/Zurich", 2011,10,10,6,1,2));
         
         Kolab::Event e2;
-        e2.setStart(Kolab::KoDateTime("Asia/Dubai",2011,10,10,6,1,1));
-        e2.setEnd(Kolab::KoDateTime("Asia/Dubai",2011,10,10,6,1,2));
+        e2.setStart(Kolab::cDateTime("Asia/Dubai",2011,10,10,6,1,1));
+        e2.setEnd(Kolab::cDateTime("Asia/Dubai",2011,10,10,6,1,2));
         
         QTest::newRow( "tz non-conflict" ) << e1 << e2 << false;
     }
     
     {
         Kolab::Event e1;
-        e1.setStart(Kolab::KoDateTime("Europe/Berlin", 2011,10,10,6,1,1));
-        e1.setEnd(Kolab::KoDateTime("Europe/Berlin", 2011,10,10,6,1,2));
+        e1.setStart(Kolab::cDateTime("Europe/Berlin", 2011,10,10,6,1,1));
+        e1.setEnd(Kolab::cDateTime("Europe/Berlin", 2011,10,10,6,1,2));
         
         Kolab::Event e2;
-        e2.setStart(Kolab::KoDateTime("Europe/Zurich",2011,10,10,6,1,1));
-        e2.setEnd(Kolab::KoDateTime("Europe/Zurich",2011,10,10,6,1,2));
+        e2.setStart(Kolab::cDateTime("Europe/Zurich",2011,10,10,6,1,1));
+        e2.setEnd(Kolab::cDateTime("Europe/Zurich",2011,10,10,6,1,2));
         
         QTest::newRow( "tz conflict" ) << e1 << e2 << true;
     }
@@ -649,27 +649,27 @@ void KCalConversionTest::testEventConflict()
 void KCalConversionTest::testTimesInInterval_data()
 {
     QTest::addColumn<Kolab::Event>( "event" );
-    QTest::addColumn<Kolab::KoDateTime>( "start" );
-    QTest::addColumn<Kolab::KoDateTime>( "end" );
-    QTest::addColumn< std::vector<Kolab::KoDateTime> >( "result" );
+    QTest::addColumn<Kolab::cDateTime>( "start" );
+    QTest::addColumn<Kolab::cDateTime>( "end" );
+    QTest::addColumn< std::vector<Kolab::cDateTime> >( "result" );
     {
         {
             Kolab::Event event;
-            event.setStart(Kolab::KoDateTime(2011,1,1,1,1,1));
-            event.setEnd(Kolab::KoDateTime(2011,1,1,2,1,1));
+            event.setStart(Kolab::cDateTime(2011,1,1,1,1,1));
+            event.setEnd(Kolab::cDateTime(2011,1,1,2,1,1));
             Kolab::RecurrenceRule rrule;
             rrule.setFrequency(Kolab::RecurrenceRule::Daily);
             rrule.setInterval(1);
             rrule.setCount(5);
             event.setRecurrenceRule(rrule);
 
-            std::vector<Kolab::KoDateTime> result;
-            result.push_back(Kolab::KoDateTime(2011,1,1,1,1,1)); 
-            result.push_back(Kolab::KoDateTime(2011,1,2,1,1,1));
-            result.push_back(Kolab::KoDateTime(2011,1,3,1,1,1)); 
-            result.push_back(Kolab::KoDateTime(2011,1,4,1,1,1));
-            result.push_back(Kolab::KoDateTime(2011,1,5,1,1,1)); 
-            QTest::newRow( "simple" ) << event << Kolab::KoDateTime(2011,1,1,1,1,1) << Kolab::KoDateTime(2011,1,5,1,1,1) << result;
+            std::vector<Kolab::cDateTime> result;
+            result.push_back(Kolab::cDateTime(2011,1,1,1,1,1)); 
+            result.push_back(Kolab::cDateTime(2011,1,2,1,1,1));
+            result.push_back(Kolab::cDateTime(2011,1,3,1,1,1)); 
+            result.push_back(Kolab::cDateTime(2011,1,4,1,1,1));
+            result.push_back(Kolab::cDateTime(2011,1,5,1,1,1)); 
+            QTest::newRow( "simple" ) << event << Kolab::cDateTime(2011,1,1,1,1,1) << Kolab::cDateTime(2011,1,5,1,1,1) << result;
         }
     }
 }
@@ -677,17 +677,17 @@ void KCalConversionTest::testTimesInInterval_data()
 void KCalConversionTest::testTimesInInterval()
 {
     QFETCH(Kolab::Event, event);
-    QFETCH(Kolab::KoDateTime, start);
-    QFETCH(Kolab::KoDateTime, end);
-    QFETCH(std::vector<Kolab::KoDateTime>, result);
+    QFETCH(Kolab::cDateTime, start);
+    QFETCH(Kolab::cDateTime, end);
+    QFETCH(std::vector<Kolab::cDateTime>, result);
     QCOMPARE(Kolab::Calendaring::timeInInterval(event,start, end), result);
 }
 
 void KCalConversionTest::testTimesInIntervalBenchmark()
 {
     Kolab::Event event;
-    event.setStart(Kolab::KoDateTime(2011,1,1,1,1,1));
-    event.setEnd(Kolab::KoDateTime(2011,1,1,2,1,1));
+    event.setStart(Kolab::cDateTime(2011,1,1,1,1,1));
+    event.setEnd(Kolab::cDateTime(2011,1,1,2,1,1));
     Kolab::RecurrenceRule rrule;
     rrule.setFrequency(Kolab::RecurrenceRule::Daily);
     rrule.setInterval(1);
@@ -695,9 +695,9 @@ void KCalConversionTest::testTimesInIntervalBenchmark()
     event.setRecurrenceRule(rrule);
     
     QBENCHMARK {
-        Kolab::Calendaring::timeInInterval(event, Kolab::KoDateTime(2011,1,1,1,1,1), Kolab::KoDateTime(2013,1,1,1,1,1));
+        Kolab::Calendaring::timeInInterval(event, Kolab::cDateTime(2011,1,1,1,1,1), Kolab::cDateTime(2013,1,1,1,1,1));
     }
-    const std::vector<Kolab::KoDateTime> &result = Kolab::Calendaring::timeInInterval(event, Kolab::KoDateTime(2011,1,1,1,1,1), Kolab::KoDateTime(2013,1,1,1,1,1));
+    const std::vector<Kolab::cDateTime> &result = Kolab::Calendaring::timeInInterval(event, Kolab::cDateTime(2011,1,1,1,1,1), Kolab::cDateTime(2013,1,1,1,1,1));
     QVERIFY(result.size() == 500);
 //     qDebug() << QTest::toString(result);    
 }
diff --git a/c++/tests/serializers.h b/c++/tests/serializers.h
index c92f577..71459cc 100644
--- a/c++/tests/serializers.h
+++ b/c++/tests/serializers.h
@@ -7,9 +7,9 @@
 
 namespace QTest {
     template<>
-    char *toString(const Kolab::KoDateTime &dt)
+    char *toString(const Kolab::cDateTime &dt)
     {
-        QByteArray ba = "Kolab::KoDateTime(";
+        QByteArray ba = "Kolab::cDateTime(";
         ba += QByteArray::number(dt.year()) + ", " + QByteArray::number(dt.month())+ ", " + QByteArray::number(dt.day()) + ", ";
         ba += QByteArray::number(dt.hour()) + ", " + QByteArray::number(dt.minute()) + ", " + QByteArray::number(dt.second())+ ", ";
         ba += QString(dt.isUTC()?QString("UTC"):QString("TZ: "+QString::fromStdString(dt.timezone()))).toAscii();
@@ -18,9 +18,9 @@ namespace QTest {
     }
 
     template<>
-    char *toString(const std::vector<Kolab::KoDateTime> &v)
+    char *toString(const std::vector<Kolab::cDateTime> &v)
     {
-        QByteArray ba = "vector<Kolab::KoDateTime>(";
+        QByteArray ba = "vector<Kolab::cDateTime>(";
         for (int i = 0; i < v.size(); i++) {
             ba += QByteArray(toString(v.at(i)))+ "\n";
         }





More information about the commits mailing list