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

index 0623177..50b535b 100644 (file)
@@ -807,4 +807,27 @@ void CalendarEventObject::ProcessData(){
                
        }
        
+       if (DateTimeEndProcessed == false){
+               
+               // Process the data from DURATION if DTEND 
+               // hasn't already been processed.
+               
+               DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "DURATION");
+               
+               if (DataReceived.begin() != DataReceived.end()){
+       
+                       try {
+                               DurationDataTokens = DataReceived.begin()->first.substr(9);
+                       }
+               
+                       catch(const out_of_range &oor){
+                               // Do nothing as there is no data.
+                       }               
+               
+                       DurationData = DataReceived.begin()->second;
+               
+               }
+               
+       }
+       
 }
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