From: Steve Brokenshire Date: Mon, 1 Feb 2016 21:21:16 +0000 (+0000) Subject: Added code to process the URL property in CalendarFreeBusyObject. X-Git-Tag: release-0.02~421 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=a24f9c480bd625335e2adea8e47276f1c542fe35;p=xestiacalendar%2F.git Added code to process the URL property in CalendarFreeBusyObject. --- diff --git a/source/objects/calendarfreebusy/CalendarFreeBusy.cpp b/source/objects/calendarfreebusy/CalendarFreeBusy.cpp index a993d46..89bef5a 100644 --- a/source/objects/calendarfreebusy/CalendarFreeBusy.cpp +++ b/source/objects/calendarfreebusy/CalendarFreeBusy.cpp @@ -405,4 +405,22 @@ void CalendarFreeBusyObject::ProcessData(){ } + // Process the data from URL. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "URL"); + + if (DataReceived.begin() != DataReceived.end()){ + + try { + URLDataTokens = DataReceived.begin()->first.substr(4); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + URLData = DataReceived.begin()->second; + + } + } \ No newline at end of file