From 089fa36abd90e08c6155f9b2c0bce50a33e146e7 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 17 Jan 2016 22:26:31 +0000 Subject: [PATCH] Partially implemented support for RFC5545 --- .../objects/calendarobject/CalendarObject.h | 84 ++++++++++++++++++- 1 file changed, 80 insertions(+), 4 deletions(-) diff --git a/source/objects/calendarobject/CalendarObject.h b/source/objects/calendarobject/CalendarObject.h index 48d9978..dfcf448 100644 --- a/source/objects/calendarobject/CalendarObject.h +++ b/source/objects/calendarobject/CalendarObject.h @@ -4,6 +4,8 @@ #include #include +using namespace std; + enum CalendarObjectLoadResult { CALENDAROBJECTLOAD_UNITTESTFAIL = -1, CALENDAROBJECTLOAD_OK, @@ -30,13 +32,87 @@ class CalendarObject{ virtual CalendarObjectValidResult ValidObject() { return CALENDAROBJECTVALID_OK; }; virtual void Clear() {}; - virtual void ProcessData() {}; protected: - std::vector ObjectName; - std::vector ObjectData; + // Initial Loading Data. + vector ObjectName; + vector ObjectData; - private: + // Object data. + + vector AttachList; + vector AttachListTokens; + vector AttachListEncoding; + vector AttachListValue; + + vector CategoriesList; + vector CategoriesListLanguage; + vector CateogriesListTokens; + + std::string ClassData; + std::string ClassListTokens; + + vector CommentList; + vector CommentListAltID; + vector CommentListLanguage; + vector CommentListTokens; + + vector DescriptionList; + vector DescriptionListAltID; + vector DescriptionListLanguage; + vector DescriptionListTokens; + + std::string GeographicData; + std::string GeographicTokens; + + std::string LocationData; + std::string LocationDataAltID; + + std::string PercentCompleteData; + std::string PercentCompleteTokens; + + int PriorityData; + std::string PriorityTokens; + + std::string ResourcesData; + std::string ResourcesDataAltID; + std::string ResourcesDataLanguage; + std::string ResourcesDataTokens; + + std::string StatusData; + std::string StatusTokens; + + std::string SummaryData; + std::string SummaryDataAltID; + std::string SummaryDataLanguage; + std::string SummaryDataTokens; + + std::string DataTimeEndData; + std::string DataTimeEndDataValue; + std::string DataTimeEndDataTimeZoneID; + std::string DataTimeEndDataTokens; + + std::string DueData; + std::string DueDataValue; + std::string DueDataTimeZoneID; + std::string DueDataTokens; + + std::string DataTimeStartData; + std::string DataTimeStartDataValue; + std::string DataTimeStartDataTimeZoneID; + std::string DataTimeStartDataTokens; + std::string DurationData; + std::string DurationDataTokens; + + vector FreeBusyList; + vector FreeBusyListType; + vector FreeBusyListTokens; + + std::string TimeTransparencyData; + std::string TimeTransparencyDataTokens; + + private: + virtual void ProcessData() {}; }; -- 2.39.5