Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code to process PRIORITY in CalendarTaskObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 12:04:21 +0000 (12:04 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 12:04:21 +0000 (12:04 +0000)
source/objects/calendartask/CalendarTask.cpp

index beb1780..4a0fa1d 100644 (file)
@@ -503,4 +503,28 @@ void CalendarTaskObject::ProcessData(){
                
        }
        
+       // 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();
+               }
+               
+       }
+       
 }
\ 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