From: Steve Brokenshire Date: Sun, 31 Jan 2016 15:03:04 +0000 (+0000) Subject: Added code to process the RRULE property in CalendarJournalObject. X-Git-Tag: release-0.02~471 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=5765775e2004150f6f43953dcb8c655b55a928db;p=xestiacalendar%2F.git Added code to process the RRULE property in CalendarJournalObject. --- diff --git a/source/objects/calendarjournal/CalendarJournal.cpp b/source/objects/calendarjournal/CalendarJournal.cpp index 4312bcf..e6e6f96 100644 --- a/source/objects/calendarjournal/CalendarJournal.cpp +++ b/source/objects/calendarjournal/CalendarJournal.cpp @@ -521,4 +521,22 @@ void CalendarJournalObject::ProcessData(){ } + // Process the data from RRULE. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "RRULE"); + + if (DataReceived.begin() != DataReceived.end()){ + + try { + RecurranceRuleDataTokens = DataReceived.begin()->first.substr(6); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + RecurranceRuleData = DataReceived.begin()->second; + + } + } \ No newline at end of file