Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Replaced DataTimeEnd* with DateTimeEnd* due to incorrect spelling.
[xestiacalendar/.git] / source / objects / calendarobject / CalendarObject.h
1 #include <string>
2 #include <iostream>
3 #include <fstream>
4 #include <sstream>
5 #include <vector>
6 #include <stdexcept>
7 #include <map>
9 #include "../../common/text.h"
11 using namespace std;
13 enum CalendarObjectLoadResult {
14     CALENDAROBJECTLOAD_UNITTESTFAIL = -1,
15     CALENDAROBJECTLOAD_OK,
16     CALENDAROBJECTLOAD_MISSING,
17     CALENDAROBJECTLOAD_INVALIDFORMAT,
18     CALENDAROBJECTLOAD_CANNOTOPEN
19 };
21 enum CalendarObjectValidResult{
22     CALENDAROBJECTVALID_UNITTESTFAIL = -1,
23     CALENDAROBJECTVALID_OK,
24     CALENDAROBJECTVALID_INVALIDFORMAT
25 };
27 class CalendarObject{
29         public:
30         CalendarObjectLoadResult LoadFile(std::string LoadFilename);
31         CalendarObjectLoadResult LoadString(std::string *LoadStringData);
32         CalendarObjectValidResult ValidBaseObject();
33         void ProcessBaseData();
34         
35         // Setup virtual subroutines for use by objects
36         // inheriting from CalendarObject later on.
37         
38         virtual CalendarObjectValidResult ValidObject() { return CALENDAROBJECTVALID_OK; };
39         virtual void Clear() {};
40         
41         // Object data.
42         
43         std::string MethodData;
44         std::string MethodTokens;
45         
46         std::string CalendarScaleData;
47         std::string CalendarScaleTokens;
48         
49         std::string UniqueID;
50         std::string UniqueIDTokens;
51         
52         vector<std::string> AttachList;
53         vector<std::string> AttachListTokens;
54         vector<std::string> AttachListEncoding;
55         vector<std::string> AttachListValue;
56         
57         vector<std::string> CategoriesList;
58         vector<std::string> CategoriesListLanguage;
59         vector<std::string> CateogriesListTokens;
60         
61         std::string ClassData;
62         std::string ClassDataTokens;
63         
64         vector<std::string> CommentList;
65         vector<std::string> CommentListAltID;
66         vector<std::string> CommentListLanguage;
67         vector<std::string> CommentListTokens;
68         
69         vector<std::string> DescriptionList;
70         vector<std::string> DescriptionListAltRep;
71         vector<std::string> DescriptionListLanguage;
72         vector<std::string> DescriptionListTokens;
73         
74         std::string GeographicData;
75         std::string GeographicTokens;
76         
77         std::string LocationData;
78         std::string LocationDataAltRep;
79         std::string LocationDataLanguage;
80         std::string LocationDataTokens;
81         
82         std::string PercentCompleteData;
83         std::string PercentCompleteTokens;
84         
85         int PriorityData = -1;
86         std::string PriorityTokens;
87         
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;
95         
96         std::string SummaryData;
97         std::string SummaryDataAltRep;
98         std::string SummaryDataLanguage;
99         std::string SummaryDataTokens;
100         
101         std::string DateTimeEndData;
102         std::string DateTimeEndDataValue;
103         std::string DateTimeEndDataTimeZoneID;
104         std::string DateTimeEndDataTokens;
106         std::string DueData;
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;
125         
126         std::string TimeZoneData;
127         std::string TimeZoneDataTokens;
128         
129         vector<std::string> TimeZoneNameList;
130         vector<std::string> TimeZoneNameListLanguage;
131         vector<std::string> TimeZoneNameListTokens;
132         
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;
160         
161         std::string OrganiserData;
162         std::string OrganiserDataCommonName;
163         std::string OrganiserDataDirectoryEntry;
164         std::string OrganiserDataSentByParam;
165         std::string OrganiserDataLanguage;
166         std::string OrganiserDataTokens;
167         
168         std::string RecurranceIDData;
169         std::string RecurranceIDDataTimeZoneParam;
170         std::string RecurranceIDDataRangeParam;
171         std::string RecurranceIDDataValue;
172         std::string RecurranceIDDataTokens;
173         
174         vector<std::string> RelatedToData;
175         vector<std::string> RelatedToDataRelationType;
176         vector<std::string> RelatedToDataTokens;
177         
178         std::string URLData;
179         std::string URLDataTokens;
181         vector<std::string> ExcludeDateData;
182         vector<std::string> ExcludeDateDataValue;
183         vector<std::string> ExcludeDateDataTimeZoneParam;
184         vector<std::string> ExcludeDateDataTokens;
185         
186         vector<std::string> RecurranceDateData;
187         vector<std::string> RecurranceDateDataValue;
188         vector<std::string> RecurranceDateDataTimeZoneParam;
189         vector<std::string> RecurranceDateDataTokens;
190         
191         std::string RecurranceRuleData;
192         std::string RecurranceRuleDataTokens;
193         
194         std::string TriggerDataList;
195         std::string TriggerDataValue;
196         std::string TriggerDataRelatedParam;
197         std::string TriggerDataTokens;
198         
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;
217         
218         protected:
219         // Initial Loading Data.
220         vector<std::string> ObjectName;
221         vector<std::string> ObjectData;
223         private:
224         virtual void ProcessData() {};
225   
226 };
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy