From: Steve Brokenshire Date: Sun, 24 Jan 2016 09:29:25 +0000 (+0000) Subject: Added code to process LAST-MODIFIED in CalendarEventObject. X-Git-Tag: release-0.02~698 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=892653e5e2c5eeee9fb2eeb172c17cd11567a640;p=xestiacalendar%2F.git Added code to process LAST-MODIFIED in CalendarEventObject. --- diff --git a/source/objects/calendarevent/CalendarEvent.cpp b/source/objects/calendarevent/CalendarEvent.cpp index 823edce..655d7de 100644 --- a/source/objects/calendarevent/CalendarEvent.cpp +++ b/source/objects/calendarevent/CalendarEvent.cpp @@ -377,4 +377,22 @@ void CalendarEventObject::ProcessData(){ } + // Process the data from LAST-MODIFIED. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "LAST-MODIFIED"); + + if (DataReceived.begin() != DataReceived.end()){ + + try { + LastModifiedTokens = DataReceived.begin()->first.substr(14); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + LastModifiedData = DataReceived.begin()->second; + + } + }