From: Steve Brokenshire Date: Wed, 27 Jan 2016 20:41:57 +0000 (+0000) Subject: Added code to process REQUEST-STATUS in CalendarEventObject. X-Git-Tag: release-0.02~617 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=fc3dc983c20fd9ec122323f155f0820b3c60e56c;p=xestiacalendar%2F.git Added code to process REQUEST-STATUS in CalendarEventObject. --- 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++; + + } + }