Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code to process GEO and LAST-MODIFIED in CalendarTaskObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 11:45:05 +0000 (11:45 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 11:45:05 +0000 (11:45 +0000)
source/objects/calendartask/CalendarTask.cpp

index 3eb05c6..216f372 100644 (file)
@@ -341,4 +341,40 @@ void CalendarTaskObject::ProcessData(){
                
        }
        
+       // Process the data from GEO.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "GEO");
+       
+       if (DataReceived.begin() != DataReceived.end()){
+       
+               try {
+                       GeographicTokens = DataReceived.begin()->first.substr(4);
+               }
+               
+               catch(const out_of_range &oor){
+                       // Do nothing as there is no data.
+               }               
+               
+               GeographicData = DataReceived.begin()->second;
+               
+       }
+       
+       // Process the data from LAST-MODIFIED.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "LAST-MODIFIED");
+       
+       if (DataReceived.begin() != DataReceived.end()){
+       
+               try {
+                       LastModifiedTokens = DataReceived.begin()->first.substr(14);
+               }
+               
+               catch(const out_of_range &oor){
+                       // Do nothing as there is no data.
+               }               
+               
+               LastModifiedData = DataReceived.begin()->second;
+               
+       }
+       
 }
\ 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