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

index c6d7a0d..6e96575 100644 (file)
@@ -502,5 +502,29 @@ void CalendarEventObject::ProcessData(){
                OrganiserData = DataReceived.begin()->second;
                
        }
+
+       // Process the data from PRIORITY.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "PRIORITY");
+       
+       if (DataReceived.begin() != DataReceived.end()){
+       
+               try {
+                       PriorityTokens = DataReceived.begin()->first.substr(9);
+               }
+               
+               catch(const out_of_range &oor){
+                       // Do nothing as there is no data.
+               }               
+               
+               try {
+                       PriorityData = stoi(DataReceived.begin()->second);
+               }
+               
+               catch(const invalid_argument &oor){
+                       PriorityTokens.clear();
+               }
+               
+       }
        
 }
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