From d8e2be3c682fe8194c3de4f011a1a257bcf2bd73 Mon Sep 17 00:00:00 2001 From: Szymon Jastrzebski Date: Wed, 8 Mar 2017 13:18:56 +0100 Subject: [PATCH] [Notification] Changed visibility of StatusNotification methods Some StatusNotification methods from Notification module will be needed in new Alarm module implementation. Change-Id: Ifb41b6287b830cdafc5a67f407cd142c2e7f7f2b Signed-off-by: Szymon Jastrzebski --- src/notification/notification.gyp | 5 +++++ src/notification/status_notification.h | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/notification/notification.gyp b/src/notification/notification.gyp index 35fc1351..766fbb39 100755 --- a/src/notification/notification.gyp +++ b/src/notification/notification.gyp @@ -31,6 +31,11 @@ }, }], ], + 'direct_dependent_settings': { + 'libraries' : [ + '-ltizen_notification', + ], + }, }, ], } diff --git a/src/notification/status_notification.h b/src/notification/status_notification.h index 51aab91f..896abee2 100644 --- a/src/notification/status_notification.h +++ b/src/notification/status_notification.h @@ -23,6 +23,8 @@ #include "common/picojson.h" #include "common/platform_result.h" +#include "common/XW_Extension.h" + namespace extension { namespace notification { @@ -31,20 +33,22 @@ typedef std::map ImageEnumMap; class StatusNotification { public: - static common::PlatformResult ToJson(int id, + XW_EXPORT static common::PlatformResult ToJson(int id, notification_h noti_handle, app_control_h app_handle, picojson::object* out_ptr); - static common::PlatformResult GetNotiHandleFromJson(const picojson::object& args, + XW_EXPORT static common::PlatformResult GetNotiHandleFromJson(const picojson::object& args, bool is_update, notification_h *noti_handle); static common::PlatformResult FromJson(const picojson::object& args, bool is_update, picojson::object* out_ptr); - static common::PlatformResult GetAppControl(notification_h noti_handle, + XW_EXPORT static common::PlatformResult GetAppControl(notification_h noti_handle, app_control_h* app_control); static common::PlatformResult GetNotiHandle(int id, notification_h* noti_handle); + XW_EXPORT static common::PlatformResult SetAppControl(notification_h noti_handle, + app_control_h app_control); private: StatusNotification(); @@ -128,8 +132,6 @@ class StatusNotification { time_t* posted_time); static common::PlatformResult SetLayout(notification_h noti_handle, const std::string& noti_type); - static common::PlatformResult SetAppControl(notification_h noti_handle, - app_control_h app_control); static common::PlatformResult CreateAppControl(app_control_h* app_control); static bool IsColorFormatNumberic(const std::string& color); -- 2.34.1