[Notification] Changed visibility of StatusNotification methods 68/118068/1
authorSzymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
Wed, 8 Mar 2017 12:18:56 +0000 (13:18 +0100)
committerSzymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
Wed, 8 Mar 2017 12:18:56 +0000 (13:18 +0100)
Some StatusNotification methods from Notification module will be needed
in new Alarm module implementation.

Change-Id: Ifb41b6287b830cdafc5a67f407cd142c2e7f7f2b
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
src/notification/notification.gyp
src/notification/status_notification.h

index 35fc1351f85d9e1cfbf4ee4477401ed02abfcd80..766fbb3907df9a752c92d0218062b8c9e49e2ce2 100755 (executable)
           },
         }],
       ],
+      'direct_dependent_settings': {
+        'libraries' : [
+          '-ltizen_notification',
+        ],
+      },
     },
   ],
 }
index 51aab91f53e8f3fda013d001137432d1564087f5..896abee222fcec1d18e4501468efaa0fda08f260 100644 (file)
@@ -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<int, notification_image_type_e> 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);