#include "common/picojson.h"
#include "common/platform_result.h"
+#include "common/XW_Extension.h"
+
namespace extension {
namespace notification {
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();
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);