0d730906e27e935dd6c1ea88ba767611be42ee10
[platform/core/api/webapi-plugins.git] / src / notification / notification_instance.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_INSTANCE_H_
18 #define NOTIFICATION_NOTIFICATION_INSTANCE_H_
19
20 #include "common/extension.h"
21 #include "notification/notification_manager.h"
22
23 namespace extension {
24 namespace notification {
25
26 class NotificationInstance : public common::ParsedInstance {
27  public:
28   NotificationInstance();
29   virtual ~NotificationInstance();
30
31  private:
32   NotificationManager* manager_;
33
34   void NotificationManagerPost(const picojson::value& args, picojson::object& out);
35   void NotificationManagerUpdate(const picojson::value& args, picojson::object& out);
36   void NotificationManagerRemove(const picojson::value& args, picojson::object& out);
37   void NotificationManagerRemoveAll(const picojson::value& args, picojson::object& out);
38   void NotificationManagerGet(const picojson::value& args, picojson::object& out);
39   void NotificationManagerGetAll(const picojson::value& args, picojson::object& out);
40
41   void NotificationManagerPlayLEDCustomEffect(const picojson::value& args, picojson::object& out);
42   void NotificationManagerStopLEDCustomEffect(const picojson::value& args, picojson::object& out);
43   void NotificationManagerSaveNotificationAsTemplate(const picojson::value& args,
44                                                      picojson::object& out);
45   void NotificationManagerCreateNotificationFromTemplate(const picojson::value& args,
46                                                          picojson::object& out);
47 };
48
49 }  // namespace notification
50 }  // namespace extension
51
52 #endif  // NOTIFICATION_NOTIFICATION_INSTANCE_H_