Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code to process ATTACH in CalendarTaskObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 13:18:30 +0000 (13:18 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 13:18:30 +0000 (13:18 +0000)
source/objects/calendartask/CalendarTask.cpp

index 6c082ab..7d118a8 100644 (file)
@@ -811,5 +811,67 @@ void CalendarTaskObject::ProcessData(){
                }
                
        }
+
+       // Process the data from ATTACH.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, true, "ATTACH");
+       
+       for(multimap<string,string>::iterator iter = DataReceived.begin(); 
+               iter != DataReceived.end(); 
+               ++iter){
+               
+               AttachListEncoding.push_back("");
+               AttachListValue.push_back("");
+               AttachListFormatType.push_back("");
+               AttachListTokens.push_back("");
+               AttachList.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 == "ENCODING"){
+                               
+                               AttachListEncoding[ObjectSeekCount] = dataiter->second;
+                               
+                       } else if (dataiter->first == "VALUE"){
+                               
+                               AttachListValue[ObjectSeekCount] = dataiter->second;
+                               
+                       } else if (dataiter->first == "FMTTYPE"){
+                               
+                               AttachListFormatType[ObjectSeekCount] = dataiter->second;
+                               
+                       } else {
+                               
+                               if (TokenData == false){
+                                       TokenData = true;
+                               } else {
+                                       PropertyTokens += ";";
+                               }
+                               
+                               PropertyTokens += dataiter->first;
+                               PropertyTokens += "=";
+                               PropertyTokens += dataiter->second;
+                               
+                       }
+                               
+               }
+               
+               if (PropertyTokens.size() > 0){
+                       AttachListTokens[ObjectSeekCount] = PropertyTokens;
+               }
+                       
+               AttachList[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