From 46e98c317cf8ecf30ef6e198b4b837b69d824c13 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 14 Feb 2016 14:26:47 +0000 Subject: [PATCH] Added code to check for an EMAIL VALARM. --- source/objects/calendarevent/CalendarEvent.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/objects/calendarevent/CalendarEvent.cpp b/source/objects/calendarevent/CalendarEvent.cpp index 7b3e3e2..7a23341 100644 --- a/source/objects/calendarevent/CalendarEvent.cpp +++ b/source/objects/calendarevent/CalendarEvent.cpp @@ -1456,7 +1456,7 @@ void CalendarEventObject::ProcessData(){ // Process Alarm section. - ProcessAlarms(); + //ProcessAlarms(); int SeekCount = 0; int AlarmObjectCount = 0; @@ -1474,6 +1474,7 @@ void CalendarEventObject::ProcessData(){ bool AlarmTriggerFound = false; bool AlarmDurationFound = false; bool AlarmDescriptionFound = false; + bool AlarmSummaryFound = false; DataReceived = ProcessTextVectors(&EventAlarmName[SeekCount], &EventAlarmData[SeekCount], false, "ACTION"); @@ -1920,6 +1921,14 @@ void CalendarEventObject::ProcessData(){ CalendarAlarmData.push_back(NewAlarmData); + } else if (NewAlarmData.AlarmType == CALENDARALARM_EMAIL && + AlarmActionFound == true && + AlarmTriggerFound == true && + AlarmDescriptionFound == true && + AlarmSummaryFound == true){ + + CalendarAlarmData.push_back(NewAlarmData); + } SeekCount++; -- 2.39.5