From 0cfd3d8c640fecbe912a8666b8b8dc8771cec825 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 30 Jan 2016 17:56:26 +0000 Subject: [PATCH] Added code to process X-* in CalendarEventObject. --- .../objects/calendarevent/CalendarEvent.cpp | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/source/objects/calendarevent/CalendarEvent.cpp b/source/objects/calendarevent/CalendarEvent.cpp index 4cda82d..32b0a6f 100644 --- a/source/objects/calendarevent/CalendarEvent.cpp +++ b/source/objects/calendarevent/CalendarEvent.cpp @@ -1454,4 +1454,30 @@ void CalendarEventObject::ProcessData(){ } + ObjectSeekCount = 0; + + // Process data from X-* + + for(vector::iterator iter = ObjectName.begin(); + iter != ObjectName.end(); ++iter){ + + RequestStatusTokens.push_back(""); + RequestStatusLanguage.push_back(""); + RequestStatusData.push_back(""); + + bool TokenData = false; + string PropertyTokens; + + if (iter->substr(0,2) == "X-" && + iter->size() > 2){ + + XTokensData.push_back(ObjectData[ObjectSeekCount]); + XTokensDataTokens.push_back(ObjectName[ObjectSeekCount]); + + } + + ObjectSeekCount++; + + } + } -- 2.39.5