Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code to process REQUEST-STATUS in CalendarEventObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 27 Jan 2016 20:41:57 +0000 (20:41 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 27 Jan 2016 20:41:57 +0000 (20:41 +0000)
source/objects/calendarevent/CalendarEvent.cpp

index 2b20b56..16aa5f6 100644 (file)
@@ -1228,4 +1228,58 @@ void CalendarEventObject::ProcessData(){
                
        }
        
+       // Process the data from REQUEST-STATUS.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, true, "REQUEST-STATUS");
+
+       ObjectSeekCount = 0;
+       
+       for(multimap<string,string>::iterator iter = DataReceived.begin(); 
+               iter != DataReceived.end(); 
+               ++iter){
+               
+               RequestStatusTokens.push_back("");
+               RequestStatusLanguage.push_back("");
+               RequestStatusData.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 == "LANGUAGE"){
+                               
+                               RequestStatusLanguage[ObjectSeekCount] = dataiter->second;
+                               
+                       } else {
+                               
+                               if (TokenData == false){
+                                       TokenData = true;
+                               } else {
+                                       PropertyTokens += ";";
+                               }
+                               
+                               PropertyTokens += dataiter->first;
+                               PropertyTokens += "=";
+                               PropertyTokens += dataiter->second;
+                               
+                       }
+                               
+               }
+               
+               if (PropertyTokens.size() > 0){
+                       RequestStatusTokens[ObjectSeekCount] = PropertyTokens;
+               }
+                       
+               RequestStatusData[ObjectSeekCount] = iter->second;
+               
+               ObjectSeekCount++;
+               
+       }
+       
 }
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