From 2b588a2ca61648b8c1e3dc7b1ff780798463c8e7 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 24 Jan 2016 11:04:30 +0000 Subject: [PATCH] Added code to process STATUS in CalendarEventObject. --- .../objects/calendarevent/CalendarEvent.cpp | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/source/objects/calendarevent/CalendarEvent.cpp b/source/objects/calendarevent/CalendarEvent.cpp index a383279..c94152e 100644 --- a/source/objects/calendarevent/CalendarEvent.cpp +++ b/source/objects/calendarevent/CalendarEvent.cpp @@ -551,4 +551,50 @@ void CalendarEventObject::ProcessData(){ } + // Process the data from STATUS. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "STATUS"); + + if (DataReceived.begin() != DataReceived.end()){ + + bool TokenData = false; + string PropertyTokens; + + PropertyNameData = (string*)&DataReceived.begin()->first; + + PropertyData = SplitValues(*PropertyNameData); + + for(map::iterator iter = PropertyData.begin(); + iter != PropertyData.end(); iter++){ + + if (iter->first == "LANGUAGE"){ + + RequestStatusLanguage = iter->second; + + } else { + + if (TokenData == false){ + TokenData = true; + } else { + PropertyTokens += ";"; + } + + PropertyTokens += iter->first; + PropertyTokens += "="; + PropertyTokens += iter->second; + + } + + } + + if (PropertyTokens.size() > 0){ + + RequestStatusTokens = PropertyTokens; + + } + + RequestStatusData = DataReceived.begin()->second; + + } + } -- 2.39.5