From bc5cf34863009de78a24864551c093921ff139e6 Mon Sep 17 00:00:00 2001 From: "jinwoo.shin" Date: Mon, 31 Aug 2015 20:47:52 +0900 Subject: Add to store notification readed time Change-Id: I7440895ea29041203c2af2a9d5163d0c2c764747 Signed-off-by: jinwoo.shin --- CMakeLists.txt | 3 +-- include/util.h | 1 + packaging/org.tizen.infosquare.spec | 1 - src/notification_view.c | 2 ++ src/util.c | 10 ++++++++++ 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 399f7f3..cb2efd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,8 +61,7 @@ pkg_check_modules(PKGS REQUIRED edje capi-appfw-application app-utils - notification - vconf) + notification) FOREACH(flag ${PKGS_CFLAGS}) SET(EXTRA_CFLGAS "${EXTRA_CFLGAS} ${flag}") diff --git a/include/util.h b/include/util.h index f48ef25..97dc643 100644 --- a/include/util.h +++ b/include/util.h @@ -25,5 +25,6 @@ Evas_Object *util_add_icon(Evas_Object *parent, const char *file, const char *part); Evas_Object *util_add_button(Evas_Object *parent, const char *part, const char *text, const char *style); +void util_set_last_viewed(void); #endif diff --git a/packaging/org.tizen.infosquare.spec b/packaging/org.tizen.infosquare.spec index 84b88fd..634693c 100644 --- a/packaging/org.tizen.infosquare.spec +++ b/packaging/org.tizen.infosquare.spec @@ -13,7 +13,6 @@ BuildRequires: pkgconfig(ecore) BuildRequires: pkgconfig(edje) BuildRequires: pkgconfig(app-utils) BuildRequires: pkgconfig(notification) -BuildRequires: pkgconfig(vconf) BuildRequires: gettext-devel BuildRequires: edje-bin diff --git a/src/notification_view.c b/src/notification_view.c index cd81959..395cd87 100644 --- a/src/notification_view.c +++ b/src/notification_view.c @@ -336,6 +336,8 @@ static void _update_list(struct _priv *priv) if (it) elm_object_item_focus_set(it, EINA_TRUE); } + + util_set_last_viewed(); } static char *_grid_label_get(void *data, diff --git a/src/util.c b/src/util.c index e51da3a..3c7b615 100644 --- a/src/util.c +++ b/src/util.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "define.h" @@ -168,3 +169,12 @@ Evas_Object *util_add_button(Evas_Object *parent, const char *part, return btn; } + +void util_set_last_viewed(void) +{ + int r; + + r = app_contents_set_basis_time(CONTENTS_NOTI); + if (r != APP_CONTENTS_ERROR_NONE) + _ERR("failed to set basis time"); +} -- cgit v1.2.3