[Notification] Add API for using buttons and a text input in a notification and getti...
[platform/core/api/webapi-plugins.git] / src / notification / notification_manager.h
index 85cd85f..6a49cd4 100644 (file)
 namespace extension {
 namespace notification {
 
+typedef std::map<notification_block_state_e, std::string> BlockStateEnumMap;
+
 class NotificationManager {
  public:
+  static const BlockStateEnumMap block_state_map_;
+
   static NotificationManager* GetInstance();
 
-  common::PlatformResult Post(const picojson::object& args,
-                              picojson::object& out);
+  common::PlatformResult Post(const picojson::object& args, picojson::object& out);
+  common::PlatformResult PostUserNoti(const picojson::object& args, picojson::object& out);
   common::PlatformResult Update(const picojson::object& args);
+  common::PlatformResult UpdateUserNoti(const picojson::object& args);
   common::PlatformResult Remove(const picojson::object& args);
   common::PlatformResult RemoveAll();
-  common::PlatformResult Get(const picojson::object& args,
-                             picojson::object& out);
-  common::PlatformResult GetAll(picojson::array& out);
+  common::PlatformResult Get(const picojson::object& args, picojson::object& out,
+                             bool is_new_impl = false);
+  common::PlatformResult GetAll(picojson::array& out, bool is_new_impl = false);
+  common::PlatformResult GetBlockState(picojson::value& out);
 
   common::PlatformResult PlayLEDCustomEffect(const picojson::object& args);
   common::PlatformResult StopLEDCustomEffect();
 
+  // TODO needed also below functions for new design?
   common::PlatformResult SaveTemplate(const picojson::object& args);
-  common::PlatformResult CreateFromTemplate(const picojson::object& args,
-                                            picojson::object& out);
+  common::PlatformResult CreateFromTemplate(const picojson::object& args, picojson::object& out);
 
  private:
   NotificationManager();