From: Steve Brokenshire Date: Sun, 31 Jan 2016 12:48:08 +0000 (+0000) Subject: Added code to process RRULE in CalendarTaskObject. X-Git-Tag: release-0.02~543 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=f84dae521abbf4ea9e713808b49ac49958deb3d8;p=xestiacalendar%2F.git Added code to process RRULE in CalendarTaskObject. --- diff --git a/source/objects/calendartask/CalendarTask.cpp b/source/objects/calendartask/CalendarTask.cpp index 57c288e..36e44a3 100644 --- a/source/objects/calendartask/CalendarTask.cpp +++ b/source/objects/calendartask/CalendarTask.cpp @@ -719,4 +719,22 @@ void CalendarTaskObject::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