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

index 655d7de..5331fb3 100644 (file)
@@ -395,4 +395,54 @@ void CalendarEventObject::ProcessData(){
                
        }
        
+       // Process the data from LOCATION.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "LOCATION");
+       
+       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"){
+                               
+                               LocationDataAltRep = iter->second;
+                               
+                       } else if (iter->first == "LANGUAGE"){
+                               
+                               LocationDataLanguage = iter->second;
+                               
+                       } else {
+                               
+                               if (TokenData == false){
+                                       TokenData = true;
+                               } else {
+                                       PropertyTokens += ";";
+                               }
+                               
+                               PropertyTokens += iter->first;
+                               PropertyTokens += "=";
+                               PropertyTokens += iter->second;
+                               
+                       }
+                               
+               }
+               
+               if (PropertyTokens.size() > 0){
+                       
+                       LocationDataTokens = PropertyTokens;
+                       
+               }
+               
+               LocationData = 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