int SeekCount = 0;
string PropertyName;
- // Look for BEGIN:VEVENT.
+ // Look for BEGIN:VTODO.
for (vector<string>::iterator iter = ObjectName.begin();
iter != ObjectName.end(); iter++){
}
SeekCount++;
-
+
}
SeekCount = 0;
SeekCount = 0;
- // Look for END:VEVENT.
+ // Look for END:VTODO.
for (vector<string>::iterator iter = ObjectName.begin();
iter != ObjectName.end(); iter++){
}
- // Check if the VEVENT is valid.
-
+ // Check if the VTODO is valid.
+
if (ValidBegin == true &&
ValidEnd == true &&
ValidDateTimeStamp == true &&
ValidUniqueID == true){
-
+
return CALENDAROBJECTVALID_OK;
} else {
void CalendarTaskObject::ProcessData(){
+ // Process the data.
+
+ multimap<string,string> DataReceived;
+ map<string,string> PropertyData;
+ string *PropertyNameData = nullptr;
+ int ObjectSeekCount = 0;
+
+ // Get the Date Time Stamp (DTSTAMP).
+
+ DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "DTSTAMP");
+
+ // Process the data from DTSTAMP.
+
+ if (DataReceived.begin() != DataReceived.end()){
+
+ try {
+ DateTimeStampTokens = DataReceived.begin()->first.substr(8);
+ }
+
+ catch(const out_of_range &oor){
+ // Do nothing as there is no data.
+ }
+
+ DateTimeStampData = DataReceived.begin()->second;
+
+ }
+
}
\ No newline at end of file