Added the code and unit tests for the VALARM:DURATION property.
}
+ // Process the DURATION VALARM value.
+
+ if (CalendarAlarmData[CalendarAlarmDataSeek].DurationData.size() > 0){
+
+ DataLine += "DURATION";
+
+ if (CalendarAlarmData[CalendarAlarmDataSeek].DurationTokens.size() > 0){
+
+ DataLine += ";";
+ DataLine += CalendarAlarmData[CalendarAlarmDataSeek].DurationTokens;
+
+ }
+
+ DataLine += ":";
+ DataLine += CalendarAlarmData[CalendarAlarmDataSeek].DurationData;
+ DataLine += "\n";
+
+ DataLineProcessed = OutputText(&DataLine);
+
+ *SaveData += DataLineProcessed;
+
+ DataLine.clear();
+ DataLineProcessed.clear();
+
+ }
+
*SaveData += "END:VALARM\n";
}
"BEGIN:VALARM\n"
"ACTION;FUNKY=SOUNDS:AUDIO\n"
"TRIGGER;RELATED=END;VALUE=DATE-TIME;PUSH=BUTTON:20160220T160000Z\n"
+ "DURATION;FLYING=NO:PT5H\n"
"END:VALARM\n"
"BEGIN:VALARM\n"
"ACTION;FLASHING=LIGHTS:DISPLAY\n"
"TRIGGER;RELATED=END;VALUE=DATE-TIME;PUSH=BUTTON:20160230T110000Z\n"
+ "DURATION;FLYING=YES:PT7H\n"
"END:VALARM\n"
"BEGIN:VALARM\n"
"ACTION;FLASHING=LIGHTS:EMAIL\n"
"TRIGGER;RELATED=END;VALUE=DATE-TIME;PUSH=BUTTON:20160230T120000Z\n"
+ "DURATION;FLYING=YES:PT7H\n"
"END:VALARM\n"
"END:VEVENT\n"
"END:VCARD";