From: Steve Brokenshire Date: Sun, 14 Feb 2016 14:26:47 +0000 (+0000) Subject: Added code to check for an EMAIL VALARM. X-Git-Tag: release-0.02~360 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=46e98c317cf8ecf30ef6e198b4b837b69d824c13;p=xestiacalendar%2F.git Added code to check for an EMAIL VALARM. --- 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++;