From: Steve Brokenshire Date: Sun, 24 Jan 2016 15:13:47 +0000 (+0000) Subject: Added code to process RRULE in CalendarEventObject. X-Git-Tag: release-0.02~659 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=7ddbe003d6b41966a9710ea53aa6b639cb07baf5;p=xestiacalendar%2F.git Added code to process RRULE in CalendarEventObject. --- diff --git a/source/objects/calendarevent/CalendarEvent.cpp b/source/objects/calendarevent/CalendarEvent.cpp index f5454e7..42b1a33 100644 --- a/source/objects/calendarevent/CalendarEvent.cpp +++ b/source/objects/calendarevent/CalendarEvent.cpp @@ -737,4 +737,22 @@ void CalendarEventObject::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; + + } + }