From fc3dc983c20fd9ec122323f155f0820b3c60e56c Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 27 Jan 2016 20:41:57 +0000 Subject: [PATCH] Added code to process REQUEST-STATUS in CalendarEventObject. --- .../objects/calendarevent/CalendarEvent.cpp | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/source/objects/calendarevent/CalendarEvent.cpp b/source/objects/calendarevent/CalendarEvent.cpp index 2b20b56..16aa5f6 100644 --- a/source/objects/calendarevent/CalendarEvent.cpp +++ b/source/objects/calendarevent/CalendarEvent.cpp @@ -1228,4 +1228,58 @@ void CalendarEventObject::ProcessData(){ } + // Process the data from REQUEST-STATUS. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, true, "REQUEST-STATUS"); + + ObjectSeekCount = 0; + + for(multimap::iterator iter = DataReceived.begin(); + iter != DataReceived.end(); + ++iter){ + + RequestStatusTokens.push_back(""); + RequestStatusLanguage.push_back(""); + RequestStatusData.push_back(""); + + bool TokenData = false; + string PropertyTokens; + + PropertyNameData = (string*)&iter->first; + + PropertyData = SplitValues(*PropertyNameData); + + for(map::iterator dataiter = PropertyData.begin(); + dataiter != PropertyData.end(); dataiter++){ + + if (dataiter->first == "LANGUAGE"){ + + RequestStatusLanguage[ObjectSeekCount] = dataiter->second; + + } else { + + if (TokenData == false){ + TokenData = true; + } else { + PropertyTokens += ";"; + } + + PropertyTokens += dataiter->first; + PropertyTokens += "="; + PropertyTokens += dataiter->second; + + } + + } + + if (PropertyTokens.size() > 0){ + RequestStatusTokens[ObjectSeekCount] = PropertyTokens; + } + + RequestStatusData[ObjectSeekCount] = iter->second; + + ObjectSeekCount++; + + } + } -- 2.39.5