From 5765775e2004150f6f43953dcb8c655b55a928db Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 15:03:04 +0000 Subject: [PATCH] Added code to process the RRULE property in CalendarJournalObject. --- .../calendarjournal/CalendarJournal.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 -- 2.39.5