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