From 867e6848594a4bd9ef190c8a3ab7408e8a46cc80 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 11:03:11 +0000 Subject: [PATCH] Added code to process COMPLETED in CalendarTaskObject. --- source/objects/calendartask/CalendarTask.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/objects/calendartask/CalendarTask.cpp b/source/objects/calendartask/CalendarTask.cpp index 3e7a342..ae4b339 100644 --- a/source/objects/calendartask/CalendarTask.cpp +++ b/source/objects/calendartask/CalendarTask.cpp @@ -203,4 +203,22 @@ void CalendarTaskObject::ProcessData(){ } + // Process the data from COMPLETED. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "COMPLETED"); + + if (DataReceived.begin() != DataReceived.end()){ + + try { + CompletedDataTokens = DataReceived.begin()->first.substr(10); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + CompletedData = DataReceived.begin()->second; + + } + } \ No newline at end of file -- 2.39.5