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

index 6f7a9a7..115ecb3 100644 (file)
@@ -1049,4 +1049,63 @@ void CalendarJournalObject::ProcessData(){
                
        }
        
+       // Process the data from RDATE.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, true, "RDATE");
+
+       ObjectSeekCount = 0;
+       
+       for(multimap<string,string>::iterator iter = DataReceived.begin(); 
+               iter != DataReceived.end(); 
+               ++iter){
+               
+               RecurranceDateDataTokens.push_back("");
+               RecurranceDateDataValue.push_back("");
+               RecurranceDateDataTimeZoneParam.push_back("");
+               RecurranceDateData.push_back("");
+                       
+               bool TokenData = false;
+               string PropertyTokens;
+               
+               PropertyNameData = (string*)&iter->first;
+               
+               PropertyData = SplitValues(*PropertyNameData);
+                       
+               for(map<string,string>::iterator dataiter = PropertyData.begin();
+                       dataiter != PropertyData.end(); dataiter++){
+                       
+                       if (dataiter->first == "VALUE"){
+                               
+                               RecurranceDateDataValue[ObjectSeekCount] = dataiter->second;
+                               
+                       } else if (dataiter->first == "TZID"){
+                               
+                               RecurranceDateDataTimeZoneParam[ObjectSeekCount] = dataiter->second;
+                               
+                       } else {
+                               
+                               if (TokenData == false){
+                                       TokenData = true;
+                               } else {
+                                       PropertyTokens += ";";
+                               }
+                               
+                               PropertyTokens += dataiter->first;
+                               PropertyTokens += "=";
+                               PropertyTokens += dataiter->second;
+                               
+                       }
+                               
+               }
+               
+               if (PropertyTokens.size() > 0){
+                       RecurranceDateDataTokens[ObjectSeekCount] = PropertyTokens;
+               }
+                       
+               RecurranceDateData[ObjectSeekCount] = iter->second;
+               
+               ObjectSeekCount++;
+               
+       }
+       
 }
\ 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