summaryrefslogtreecommitdiff
path: root/alarm-app/inc
diff options
context:
space:
mode:
authorEugene Kurzberg <i.kurtsberg@samsung.com>2017-02-02 14:39:27 +0200
committerEugene Kurzberg <i.kurtsberg@samsung.com>2017-02-02 14:39:27 +0200
commitd2e8aeb6242ef75e22f333244aabc6245dd06369 (patch)
tree763f6cd6f574f778f19df793aa802bbbe921e162 /alarm-app/inc
parent0923eb4e941f98ca0cd4c49ec3cff971ff7e9d35 (diff)
downloadalarm-d2e8aeb6242ef75e22f333244aabc6245dd06369.tar.gz
alarm-d2e8aeb6242ef75e22f333244aabc6245dd06369.tar.bz2
alarm-d2e8aeb6242ef75e22f333244aabc6245dd06369.zip
TizenRefApp-7977 Integrate AlarmProvider into AlarmsView
Change-Id: Ic326ea0c98b3863c3cbee7386e03e406a7418b59 Signed-off-by: Eugene Kurzberg <i.kurtsberg@samsung.com>
Diffstat (limited to 'alarm-app/inc')
-rw-r--r--alarm-app/inc/List/AlarmItem.h4
-rw-r--r--alarm-app/inc/List/AlarmsView.h10
2 files changed, 11 insertions, 3 deletions
diff --git a/alarm-app/inc/List/AlarmItem.h b/alarm-app/inc/List/AlarmItem.h
index af1f2dc..5260f5f 100644
--- a/alarm-app/inc/List/AlarmItem.h
+++ b/alarm-app/inc/List/AlarmItem.h
@@ -32,7 +32,7 @@ namespace List
class AlarmItem: public Ux::SelectItem
{
public:
- explicit AlarmItem(Common::Model::Alarm *alarm);
+ explicit AlarmItem(Common::Model::Alarm &alarm);
protected:
/**
@@ -58,7 +58,7 @@ namespace List
private:
bool is24HourFormat() const;
- Common::Model::Alarm *m_Alarm;
+ Common::Model::Alarm &m_Alarm;
};
}
diff --git a/alarm-app/inc/List/AlarmsView.h b/alarm-app/inc/List/AlarmsView.h
index e751145..f7795c1 100644
--- a/alarm-app/inc/List/AlarmsView.h
+++ b/alarm-app/inc/List/AlarmsView.h
@@ -17,6 +17,7 @@
#ifndef LIST_ALARMS_VIEW_H
#define LIST_ALARMS_VIEW_H
+#include "Common/Model/AlarmProvider.h"
#include "Ux/SelectView.h"
#include <system_settings.h>
@@ -27,23 +28,30 @@ namespace Ui
namespace List
{
+ class AlarmItem;
class AlarmsView: public Ux::SelectView
{
public:
AlarmsView();
virtual ~AlarmsView() override;
+ private:
virtual Evas_Object *onCreate(Evas_Object *parent) override;
virtual void onCreated() override;
virtual void onPageAttached(Ui::NavigatorPage *page) override;
virtual void onNavigation(bool isCurrent) override;
Evas_Object *createGenlist(Evas_Object *parent);
+ AlarmItem *createItem(::Model::DataItem &dataItem);
- private:
+ void onAlarmInserted(::Model::DataItem &dataItem);
+ void onAlarmUpdated(AlarmItem *item, int changes);
+ void onAlarmDeleted(AlarmItem *item);
void onFormatChanged(system_settings_key_e key);
Ui::Genlist *m_Genlist;
+ Ui::GenItem *m_AddAlarmItem;
+ Common::Model::AlarmProvider m_Provider;
};
}