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

index 1d762eb..4d4e7ea 100644 (file)
@@ -1051,4 +1051,63 @@ void CalendarEventObject::ProcessData(){
                
        }
        
+       // Process the data from COMMENT.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, true, "COMMENT");
+
+       ObjectSeekCount = 0;
+       
+       for(multimap<string,string>::iterator iter = DataReceived.begin(); 
+               iter != DataReceived.end(); 
+               ++iter){
+               
+               CommentListTokens.push_back("");
+               CommentListAltRep.push_back("");
+               CommentListLanguage.push_back("");
+               CommentList.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 == "ALTREP"){
+                               
+                               CommentListAltRep[ObjectSeekCount] = dataiter->second;
+                               
+                       } else if (dataiter->first == "LANGUAGE"){
+                               
+                               CommentListLanguage[ObjectSeekCount] = dataiter->second;
+                               
+                       } else {
+                               
+                               if (TokenData == false){
+                                       TokenData = true;
+                               } else {
+                                       PropertyTokens += ";";
+                               }
+                               
+                               PropertyTokens += dataiter->first;
+                               PropertyTokens += "=";
+                               PropertyTokens += dataiter->second;
+                               
+                       }
+                               
+               }
+               
+               if (PropertyTokens.size() > 0){
+                       CommentListTokens[ObjectSeekCount] = PropertyTokens;
+               }
+                       
+               CommentList[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