Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added code to process the SEQUENCE property in CalendarJournalObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 14:52:01 +0000 (14:52 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 14:52:01 +0000 (14:52 +0000)
source/objects/calendarjournal/CalendarJournal.cpp

index a6e3ddc..61beba0 100644 (file)
@@ -382,5 +382,29 @@ void CalendarJournalObject::ProcessData(){
                RecurranceIDData = DataReceived.begin()->second;
                
        }
+
+       // Process the data from SEQUENCE.
+       
+       DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "SEQUENCE");
+       
+       if (DataReceived.begin() != DataReceived.end()){
+       
+               try {
+                       SequenceTokens = DataReceived.begin()->first.substr(9);
+               }
+               
+               catch(const out_of_range &oor){
+                       // Do nothing as there is no data.
+               }               
+               
+               try {
+                       SequenceData = stoi(DataReceived.begin()->second);
+               }
+               
+               catch(const invalid_argument &oor){
+                       SequenceTokens.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