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.
 
 
 
 

34 lines
643 B

#pragma once
#include <string>
#include <memory>
#include <libical/ical.h>
#include <io/debug.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() const;
private:
action a;
trigger_type trigger;
std::string description;
};
}