2
* Copyright 2014 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as published
6
* by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License along
14
* with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Charles Kerr <charles.kerr@canonical.com>
20
#ifndef INDICATOR_DATETIME_PLANNER_UPCOMING_H
21
#define INDICATOR_DATETIME_PLANNER_UPCOMING_H
23
#include <datetime/planner.h>
25
#include <datetime/date-time.h>
26
#include <datetime/planner-range.h>
28
#include <memory> // std::shared_ptr
35
* \brief A collection of upcoming appointments starting from the specified date
37
class UpcomingPlanner: public Planner
40
UpcomingPlanner(const std::shared_ptr<RangePlanner>& range_planner,
41
const DateTime& date);
42
~UpcomingPlanner() =default;
44
core::Property<std::vector<Appointment>>& appointments();
45
core::Property<DateTime>& date();
48
std::shared_ptr<RangePlanner> m_range_planner;
49
core::Property<DateTime> m_date;
52
} // namespace datetime
53
} // namespace indicator
56
#endif // INDICATOR_DATETIME_PLANNER_UPCOMING_H