Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code to process the DTSTAMP property in CalendarFreeBusyObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 17:38:16 +0000 (17:38 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 17:38:16 +0000 (17:38 +0000)
source/objects/calendarfreebusy/CalendarFreeBusy.cpp

index 5e729bc..227e77d 100644 (file)
@@ -146,4 +146,24 @@ void CalendarFreeBusyObject::ProcessData(){
        string *PropertyNameData = nullptr;
        int ObjectSeekCount = 0;
        
+       // Get the Date Time Stamp (DTSTAMP).
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "DTSTAMP");
+       
+       // Process the data from DTSTAMP.
+       
+       if (DataReceived.begin() != DataReceived.end()){
+       
+               try {
+                       DateTimeStampTokens = DataReceived.begin()->first.substr(8);
+               }
+               
+               catch(const out_of_range &oor){
+                       // Do nothing as there is no data.
+               }               
+               
+               DateTimeStampData = 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