diff options
Diffstat (limited to 'include/datetime/menu.h')
-rw-r--r-- | include/datetime/menu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/datetime/menu.h b/include/datetime/menu.h index acd9ed8..0074ea5 100644 --- a/include/datetime/menu.h +++ b/include/datetime/menu.h @@ -21,6 +21,7 @@ #define INDICATOR_DATETIME_MENU_H #include <datetime/actions.h> +#include <datetime/appointment.h> #include <datetime/state.h> #include <memory> // std::shared_ptr @@ -49,6 +50,11 @@ public: Profile profile() const; GMenuModel* menu_model(); + static std::vector<Appointment> get_display_appointments( + const std::vector<Appointment>&, + const DateTime& start, + unsigned int max_items=5); + protected: Menu (Profile profile_in, const std::string& name_in); virtual ~Menu() =default; |