From: Steve Brokenshire Date: Sun, 24 Jan 2016 11:04:30 +0000 (+0000) Subject: Added code to process STATUS in CalendarEventObject. X-Git-Tag: release-0.02~678 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=2b588a2ca61648b8c1e3dc7b1ff780798463c8e7;p=xestiacalendar%2F.git Added code to process STATUS in CalendarEventObject. --- 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; + + } + }