Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code to process the RECURRENCE-ID property in CalendarJournalObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 14:49:55 +0000 (14:49 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 14:49:55 +0000 (14:49 +0000)
source/objects/calendarjournal/CalendarJournal.cpp

index 8a70db0..a6e3ddc 100644 (file)
@@ -329,4 +329,58 @@ void CalendarJournalObject::ProcessData(){
                
        }
        
+       // Process the data from RECURRENCE-ID.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "RECURRENCE-ID");
+       
+       if (DataReceived.begin() != DataReceived.end()){
+       
+               bool TokenData = false;
+               string PropertyTokens;
+               
+               PropertyNameData = (string*)&DataReceived.begin()->first;
+               
+               PropertyData = SplitValues(*PropertyNameData);
+               
+               for(map<string,string>::iterator iter = PropertyData.begin();
+                       iter != PropertyData.end(); iter++){
+                       
+                       if (iter->first == "TZID"){
+                               
+                               RecurranceIDDataTimeZoneParam = iter->second;
+                               
+                       } else if (iter->first == "VALUE"){
+                               
+                               RecurranceIDDataValue = iter->second;
+                               
+                       } else if (iter->first == "RANGE"){
+                               
+                               RecurranceIDDataRangeParam = iter->second;
+                               
+                       } else {
+                               
+                               if (TokenData == false){
+                                       TokenData = true;
+                               } else {
+                                       PropertyTokens += ";";
+                               }
+                               
+                               PropertyTokens += iter->first;
+                               PropertyTokens += "=";
+                               PropertyTokens += iter->second;
+                               
+                       }
+                               
+               }
+               
+               if (PropertyTokens.size() > 0){
+                       
+                       RecurranceIDDataTokens = PropertyTokens;
+                       
+               }
+               
+               RecurranceIDData = DataReceived.begin()->second;
+               
+       }
+       
 }
\ No newline at end of file
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