From: Steve Brokenshire Date: Sun, 31 Jan 2016 10:54:03 +0000 (+0000) Subject: Added code to process UID in CalendarTaskObject. X-Git-Tag: release-0.02~590 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=454dcc0988ad8d52e9e6dcaa436edae7a382695e;p=xestiacalendar%2F.git Added code to process UID in CalendarTaskObject. --- diff --git a/source/objects/calendartask/CalendarTask.cpp b/source/objects/calendartask/CalendarTask.cpp index 86571f8..cb22857 100644 --- a/source/objects/calendartask/CalendarTask.cpp +++ b/source/objects/calendartask/CalendarTask.cpp @@ -165,4 +165,24 @@ void CalendarTaskObject::ProcessData(){ } + // Get the Unique ID (UID). + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "UID"); + + // Process the data from UID. + + if (DataReceived.begin() != DataReceived.end()){ + + try { + UniqueIDTokens = DataReceived.begin()->first.substr(4); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + UniqueID = DataReceived.begin()->second; + + } + } \ No newline at end of file