9 #include "../../common/text.h"
13 enum CalendarObjectLoadResult {
14 CALENDAROBJECTLOAD_UNITTESTFAIL = -1,
15 CALENDAROBJECTLOAD_OK,
16 CALENDAROBJECTLOAD_MISSING,
17 CALENDAROBJECTLOAD_INVALIDFORMAT,
18 CALENDAROBJECTLOAD_CANNOTOPEN
21 enum CalendarObjectValidResult{
22 CALENDAROBJECTVALID_UNITTESTFAIL = -1,
23 CALENDAROBJECTVALID_OK,
24 CALENDAROBJECTVALID_INVALIDFORMAT
30 CalendarObjectLoadResult LoadFile(std::string LoadFilename);
31 CalendarObjectLoadResult LoadString(std::string *LoadStringData);
32 CalendarObjectValidResult ValidBaseObject();
33 void ProcessBaseData();
35 // Setup virtual subroutines for use by objects
36 // inheriting from CalendarObject later on.
38 virtual CalendarObjectValidResult ValidObject() { return CALENDAROBJECTVALID_OK; };
39 virtual void Clear() {};
43 std::string MethodData;
44 std::string MethodTokens;
46 std::string CalendarScaleData;
47 std::string CalendarScaleTokens;
50 std::string UniqueIDTokens;
52 vector<std::string> AttachList;
53 vector<std::string> AttachListTokens;
54 vector<std::string> AttachListEncoding;
55 vector<std::string> AttachListValue;
57 vector<std::string> CategoriesList;
58 vector<std::string> CategoriesListLanguage;
59 vector<std::string> CateogriesListTokens;
61 std::string ClassData;
62 std::string ClassDataTokens;
64 vector<std::string> CommentList;
65 vector<std::string> CommentListAltID;
66 vector<std::string> CommentListLanguage;
67 vector<std::string> CommentListTokens;
69 vector<std::string> DescriptionList;
70 vector<std::string> DescriptionListAltRep;
71 vector<std::string> DescriptionListLanguage;
72 vector<std::string> DescriptionListTokens;
74 std::string GeographicData;
75 std::string GeographicTokens;
77 std::string LocationData;
78 std::string LocationDataAltRep;
79 std::string LocationDataLanguage;
80 std::string LocationDataTokens;
82 std::string PercentCompleteData;
83 std::string PercentCompleteTokens;
85 int PriorityData = -1;
86 std::string PriorityTokens;
88 vector<std::string> ResourcesData;
89 vector<std::string> ResourcesDataAltID;
90 vector<std::string> ResourcesDataLanguage;
91 vector<std::string> ResourcesDataTokens;
93 std::string StatusData;
94 std::string StatusTokens;
96 std::string SummaryData;
97 std::string SummaryDataAltRep;
98 std::string SummaryDataLanguage;
99 std::string SummaryDataTokens;
101 std::string DateTimeEndData;
102 std::string DateTimeEndDataValue;
103 std::string DateTimeEndDataTimeZoneID;
104 std::string DateTimeEndDataTokens;
107 std::string DueDataValue;
108 std::string DueDataTimeZoneID;
109 std::string DueDataTokens;
111 std::string DateTimeStartData;
112 std::string DateTimeStartDataValue;
113 std::string DateTimeStartDataTimeZoneID;
114 std::string DateTimeStartDataTokens;
116 std::string DurationData;
117 std::string DurationDataTokens;
119 vector<std::string> FreeBusyList;
120 vector<std::string> FreeBusyListType;
121 vector<std::string> FreeBusyListTokens;
123 std::string TimeTransparencyData;
124 std::string TimeTransparencyDataTokens;
126 std::string TimeZoneData;
127 std::string TimeZoneDataTokens;
129 vector<std::string> TimeZoneNameList;
130 vector<std::string> TimeZoneNameListLanguage;
131 vector<std::string> TimeZoneNameListTokens;
133 std::string TimeZoneOffsetFromData;
134 std::string TimeZoneOffsetFromDataTokens;
136 std::string TimeZoneOffsetToData;
137 std::string TimeZoneOffsetToDataTokens;
139 std::string TimeZoneURLData;
140 std::string TimeZoneURLTokens;
142 vector<std::string> AttendeeList;
143 vector<std::string> AttendeeListMember;
144 vector<std::string> AttendeeListDelegatedFrom;
145 vector<std::string> AttendeeListDelegatedTo;
146 vector<std::string> AttendeeListRole;
147 vector<std::string> AttendeeListRSVP;
148 vector<std::string> AttendeeListDirectoryEntry;
149 vector<std::string> AttendeeListSentBy;
150 vector<std::string> AttendeeListCommonName;
151 vector<std::string> AttendeeListCalendarUserType;
152 vector<std::string> AttendeeListParticipationStatus;
153 vector<std::string> AttendeeListLanguage;
154 vector<std::string> AttendeeListTokens;
156 vector<std::string> ContactList;
157 vector<std::string> ContactListAltID;
158 vector<std::string> ContactListLanguage;
159 vector<std::string> ContactListTokens;
161 std::string OrganiserData;
162 std::string OrganiserDataCommonName;
163 std::string OrganiserDataDirectoryEntry;
164 std::string OrganiserDataSentByParam;
165 std::string OrganiserDataLanguage;
166 std::string OrganiserDataTokens;
168 std::string RecurranceIDData;
169 std::string RecurranceIDDataTimeZoneParam;
170 std::string RecurranceIDDataRangeParam;
171 std::string RecurranceIDDataValue;
172 std::string RecurranceIDDataTokens;
174 vector<std::string> RelatedToData;
175 vector<std::string> RelatedToDataRelationType;
176 vector<std::string> RelatedToDataTokens;
179 std::string URLDataTokens;
181 vector<std::string> ExcludeDateData;
182 vector<std::string> ExcludeDateDataValue;
183 vector<std::string> ExcludeDateDataTimeZoneParam;
184 vector<std::string> ExcludeDateDataTokens;
186 vector<std::string> RecurranceDateData;
187 vector<std::string> RecurranceDateDataValue;
188 vector<std::string> RecurranceDateDataTimeZoneParam;
189 vector<std::string> RecurranceDateDataTokens;
191 std::string RecurranceRuleData;
192 std::string RecurranceRuleDataTokens;
194 std::string TriggerDataList;
195 std::string TriggerDataValue;
196 std::string TriggerDataRelatedParam;
197 std::string TriggerDataTokens;
199 std::string DateTimeCreatedData;
200 std::string DateTimeCreatedTokens;
202 std::string DateTimeStampData;
203 std::string DateTimeStampTokens;
205 std::string LastModifiedData;
206 std::string LastModifiedTokens;
208 int SequenceData = -1;
209 std::string SequenceTokens;
211 vector<std::string> XTokensData;
212 vector<std::string> XTokensDataTokens;
214 std::string RequestStatusData;
215 std::string RequestStatusLanguage;
216 std::string RequestStatusTokens;
219 // Initial Loading Data.
220 vector<std::string> ObjectName;
221 vector<std::string> ObjectData;
224 virtual void ProcessData() {};