diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2015-04-09 13:08:24 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2015-04-09 13:08:24 -0500 |
commit | 8d282df37c72ff27a006ff928f1b151d98aa0e45 (patch) | |
tree | 89d5ecc46c7e674e753e907f48d8e8acd4935d1a /include/datetime/appointment.h | |
parent | d5002c6b27cf0e00828555a10e89778008d6cd01 (diff) | |
parent | 49f49d4c18c2cc77a1a305c93a74e9e8ec903526 (diff) | |
download | ayatana-indicator-datetime-8d282df37c72ff27a006ff928f1b151d98aa0e45.tar.gz ayatana-indicator-datetime-8d282df37c72ff27a006ff928f1b151d98aa0e45.tar.bz2 ayatana-indicator-datetime-8d282df37c72ff27a006ff928f1b151d98aa0e45.zip |
sync with trunk
Diffstat (limited to 'include/datetime/appointment.h')
-rw-r--r-- | include/datetime/appointment.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/include/datetime/appointment.h b/include/datetime/appointment.h index ab89c2f..e323c9c 100644 --- a/include/datetime/appointment.h +++ b/include/datetime/appointment.h @@ -21,14 +21,28 @@ #define INDICATOR_DATETIME_APPOINTMENT_H #include <datetime/date-time.h> + #include <string> +#include <vector> namespace unity { namespace indicator { namespace datetime { /** - * \brief Plain Old Data Structure that represents a calendar appointment. + * \brief Basic information required to raise a notification about some Appointment. + */ +struct Alarm +{ + std::string text; + std::string audio_url; + DateTime time; + + bool operator== (const Alarm& that) const; +}; + +/** + * \brief An instance of an appointment; e.g. a calendar event or clock-app alarm * * @see Planner */ @@ -39,14 +53,15 @@ public: Type type = EVENT; bool is_ubuntu_alarm() const { return type == UBUNTU_ALARM; } + std::string uid; std::string color; std::string summary; - std::string url; - std::string uid; - std::string audio_url; + std::string activation_url; DateTime begin; DateTime end; + std::vector<Alarm> alarms; + bool operator== (const Appointment& that) const; }; |