From 53581f77a365f318d057077c914ea9732677a701 Mon Sep 17 00:00:00 2001 From: Eugene Kurzberg Date: Thu, 23 Feb 2017 13:40:53 +0200 Subject: Refactor InputView action button to support 3 pages. Change-Id: I8b9a85ef58dc8d9ffc2d50abf2dfaa9214d9d97a Signed-off-by: Eugene Kurzberg --- alarm-app/inc/Input/InputView.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'alarm-app/inc') diff --git a/alarm-app/inc/Input/InputView.h b/alarm-app/inc/Input/InputView.h index c40df49..eb129ca 100644 --- a/alarm-app/inc/Input/InputView.h +++ b/alarm-app/inc/Input/InputView.h @@ -31,10 +31,9 @@ namespace Input class InputView : public Ui::ScrollNavigator { public: - /** * @brief Called when alarm is created. - * @param id Created Alarm ID + * @param id Created Alarm ID */ typedef std::function CreateCallback; @@ -61,17 +60,25 @@ namespace Input Evas_Object *createScroller(Evas_Object *parent); void updateButton(); + void navigateNext(); void saveAlarm(); void deleteAlarm(); void handleDuplicateAlarm(); - bool isFirstPage() const; void onTimeChanged(Evas_Object *datetime, void *eventInfo); void onPageChanged(Evas_Object *scroller, void *eventInfo); void onButtonPressed(Evas_Object *button, void *eventInfo); + enum ButtonType + { + ButtonNext, + ButtonDelete, + ButtonSave + }; + Evas_Object *m_Scroller; Evas_Object *m_Button; + ButtonType m_ButtonType; bool m_HasDeleteButton; CreateCallback m_OnCreated; -- cgit v1.2.3