You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
617 B

#pragma once
#include <string>
#include <memory>
#include <ical/IcalObject.h>
namespace ical {
enum class action {
DISPLAY, AUDIO, EMAIL, PROC
};
enum class trigger_type {
ABSOLUTE, RELATIVE
};
class Alarm {
public:
Alarm(icalcomponent* alarm_component);
void parse(icalcomponent* alarm_component);
void parse_action(icalcomponent* alarm_component);
void parse_description(icalcomponent* alarm_component);
void parse_trigger(icalcomponent* alarm_component);
std::string print();
private:
action a;
trigger_type trigger;
std::string description;
};
}