Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code to process the FREEBUSY property in CalendarFreeBusyObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 2 Feb 2016 23:06:44 +0000 (23:06 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 2 Feb 2016 23:06:44 +0000 (23:06 +0000)
source/objects/calendarfreebusy/CalendarFreeBusy.cpp

index fd9ed9b..347c3dc 100644 (file)
@@ -586,4 +586,58 @@ void CalendarFreeBusyObject::ProcessData(){
                
        }
        
+       // Process the data from FREEBUSY.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, true, "FREEBUSY");
+
+       ObjectSeekCount = 0;
+       
+       for(multimap<string,string>::iterator iter = DataReceived.begin(); 
+               iter != DataReceived.end(); 
+               ++iter){
+               
+               FreeBusyListTokens.push_back("");
+               FreeBusyListType.push_back("");
+               FreeBusyList.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 == "FBTYPE"){
+                               
+                               FreeBusyListType[ObjectSeekCount] = dataiter->second;
+                               
+                       } else {
+                               
+                               if (TokenData == false){
+                                       TokenData = true;
+                               } else {
+                                       PropertyTokens += ";";
+                               }
+                               
+                               PropertyTokens += dataiter->first;
+                               PropertyTokens += "=";
+                               PropertyTokens += dataiter->second;
+                               
+                       }
+                               
+               }
+               
+               if (PropertyTokens.size() > 0){
+                       FreeBusyListTokens[ObjectSeekCount] = PropertyTokens;
+               }
+                       
+               FreeBusyList[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