Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code to get the UID and tokens in CalendarEventObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 23 Jan 2016 13:48:40 +0000 (13:48 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 23 Jan 2016 13:48:40 +0000 (13:48 +0000)
source/objects/calendarevent/CalendarEvent.cpp

index 0450b2e..ee003f9 100644 (file)
@@ -161,5 +161,25 @@ void CalendarEventObject::ProcessData(){
                DateTimeStampData = DataReceived.begin()->second;
                
        }
+
+       // Get the Unique ID (UID).
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "UID");
+       
+       // Process the data from DTSTAMP.
+       
+       if (DataReceived.begin() != DataReceived.end()){
+       
+               try {
+                       UniqueIDTokens = DataReceived.begin()->first.substr(4);
+               }
+               
+               catch(const out_of_range &oor){
+                       // Do nothing as there is no data.
+               }               
+               
+               UniqueID = 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