2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef NOTIFICATION_NOTIFICATION_INSTANCE_H_
18 #define NOTIFICATION_NOTIFICATION_INSTANCE_H_
20 #include "common/extension.h"
21 #include "notification/notification_manager.h"
24 namespace notification {
26 class NotificationInstance : public common::ParsedInstance {
28 NotificationInstance();
29 virtual ~NotificationInstance();
32 NotificationManager* manager_;
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);
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);
49 } // namespace notification
50 } // namespace extension
52 #endif // NOTIFICATION_NOTIFICATION_INSTANCE_H_