From: Steve Brokenshire Date: Sun, 31 Jan 2016 11:08:45 +0000 (+0000) Subject: Added code to process CREATED in CalendarTaskObject. X-Git-Tag: release-0.02~580 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=64f16356b21e7d3930a804decbbf31a545360bdc;p=xestiacalendar%2F.git Added code to process CREATED in CalendarTaskObject. --- diff --git a/source/objects/calendartask/CalendarTask.cpp b/source/objects/calendartask/CalendarTask.cpp index ae4b339..36933b1 100644 --- a/source/objects/calendartask/CalendarTask.cpp +++ b/source/objects/calendartask/CalendarTask.cpp @@ -221,4 +221,22 @@ void CalendarTaskObject::ProcessData(){ } + // Process the data from CREATED. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "CREATED"); + + if (DataReceived.begin() != DataReceived.end()){ + + try { + DateTimeCreatedTokens = DataReceived.begin()->first.substr(8); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + DateTimeCreatedData = DataReceived.begin()->second; + + } + } \ No newline at end of file