Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code to process SUMMARY in CalendarEventObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 24 Jan 2016 11:54:26 +0000 (11:54 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 24 Jan 2016 11:54:26 +0000 (11:54 +0000)
source/objects/calendarevent/CalendarEvent.cpp

index c94152e..abc34fd 100644 (file)
@@ -597,4 +597,54 @@ void CalendarEventObject::ProcessData(){
                
        }
        
+       // Process the data from SUMMARY.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "SUMMARY");
+       
+       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 == "ALTREP"){
+                               
+                               SummaryDataAltRep = iter->second;
+                               
+                       } else if (iter->first == "LANGUAGE"){
+                               
+                               SummaryDataLanguage = iter->second;
+                               
+                       } else {
+                               
+                               if (TokenData == false){
+                                       TokenData = true;
+                               } else {
+                                       PropertyTokens += ";";
+                               }
+                               
+                               PropertyTokens += iter->first;
+                               PropertyTokens += "=";
+                               PropertyTokens += iter->second;
+                               
+                       }
+                               
+               }
+               
+               if (PropertyTokens.size() > 0){
+                       
+                       SummaryDataTokens = PropertyTokens;
+                       
+               }
+               
+               SummaryData = DataReceived.begin()->second;
+               
+       }
+       
 }
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