diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-03-14 17:37:00 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-03-14 17:37:00 +0000 |
commit | 9f3136ba1c79020c10e58fa53e87a84bcce7dc29 (patch) | |
tree | fa0c19e8e5c7f362b7a04f0ad3e6f57d96c1462c /include/datetime/planner.h | |
parent | 39d8fc602053397a3596d6d35afb5738b09b05a6 (diff) | |
parent | 35b0a3601f1d7d9f757467ffc7b909c461c2f49d (diff) | |
download | ayatana-indicator-datetime-9f3136ba1c79020c10e58fa53e87a84bcce7dc29.tar.gz ayatana-indicator-datetime-9f3136ba1c79020c10e58fa53e87a84bcce7dc29.tar.bz2 ayatana-indicator-datetime-9f3136ba1c79020c10e58fa53e87a84bcce7dc29.zip |
When the user clicks on a date in the calendar, update the "Upcoming Events" section to show events starting at that date. Fixes: 1290169, 1290171, 1291468
Diffstat (limited to 'include/datetime/planner.h')
-rw-r--r-- | include/datetime/planner.h | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/include/datetime/planner.h b/include/datetime/planner.h index 376a31f..e6ef927 100644 --- a/include/datetime/planner.h +++ b/include/datetime/planner.h @@ -32,41 +32,16 @@ namespace indicator { namespace datetime { /** - * \brief Simple appointment book - * - * @see EdsPlanner - * @see State + * \brief Simple collection of appointments */ class Planner { public: virtual ~Planner() =default; - - /** - * \brief Timestamp used to determine the appointments in the `upcoming' and `this_month' properties. - * Setting this value will cause the planner to re-query its backend and - * update the `upcoming' and `this_month' properties. - */ - core::Property<DateTime> time; - - /** - * \brief The next few appointments that follow the time specified in the time property. - */ - core::Property<std::vector<Appointment>> upcoming; - - /** - * \brief The appointments that occur in the same month as the time property - */ - core::Property<std::vector<Appointment>> this_month; + virtual core::Property<std::vector<Appointment>>& appointments() =0; protected: Planner() =default; - -private: - - // disable copying - Planner(const Planner&) =delete; - Planner& operator=(const Planner&) =delete; }; } // namespace datetime |