Merge branch 'tizen_3.0' into tizen
[platform/core/api/webapi-plugins.git] / src / notification / notification_manager.h
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Apache License, Version 2.0 (the "License");
5  *    you may not use this file except in compliance with the License.
6  *    You may obtain a copy of the License at
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *    Unless required by applicable law or agreed to in writing, software
11  *    distributed under the License is distributed on an "AS IS" BASIS,
12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *    See the License for the specific language governing permissions and
14  *    limitations under the License.
15  */
16
17 #ifndef NOTIFICATION_NOTIFICATION_MANAGER_H_
18 #define NOTIFICATION_NOTIFICATION_MANAGER_H_
19
20 #include <notification.h>
21
22 #include "common/picojson.h"
23 #include "common/platform_result.h"
24
25 namespace extension {
26 namespace notification {
27
28 class NotificationManager {
29  public:
30   static NotificationManager* GetInstance();
31
32   common::PlatformResult Post(const picojson::object& args,
33                               picojson::object& out);
34   common::PlatformResult Update(const picojson::object& args);
35   common::PlatformResult Remove(const picojson::object& args);
36   common::PlatformResult RemoveAll();
37   common::PlatformResult Get(const picojson::object& args,
38                              picojson::object& out);
39   common::PlatformResult GetAll(picojson::array& out);
40
41   common::PlatformResult PlayLEDCustomEffect(const picojson::object& args);
42   common::PlatformResult StopLEDCustomEffect();
43
44   common::PlatformResult SaveTemplate(const picojson::object& args);
45   common::PlatformResult CreateFromTemplate(const picojson::object& args,
46                                             picojson::object& out);
47
48  private:
49   NotificationManager();
50   virtual ~NotificationManager();
51 };
52
53 }  // namespace notification
54 }  // namespace extension
55
56 #endif /* NOTIFICATION_NOTIFICATION_MANAGER_H_ */