2 * Copyright (c) 2011 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 * @file ace_service_dbus_interface.h
18 * @author Tomasz Swierczek (t.swierczek@samsung.com)
20 * @brief Class that handles ACE server API.
22 #ifndef WRT_SRC_RPC_SECURITY_DAEMON_ACE_SERVER_DBUS_INTERFACE_H_
23 #define WRT_SRC_RPC_SECURITY_DAEMON_ACE_SERVER_DBUS_INTERFACE_H_
25 #include <dpl/dbus/dbus_interface_dispatcher.h>
26 #include "api/ace_server_dbus_api.h"
30 class AceServerDBusInterface : public DPL::DBus::InterfaceDispatcher {
32 AceServerDBusInterface():
33 DPL::DBus::InterfaceDispatcher(WrtSecurity::AceServerApi::INTERFACE_NAME())
35 using namespace WrtSecurity;
37 setXmlSignature("<node>"
38 " <interface name='" + AceServerApi::INTERFACE_NAME() + "'>"
39 " <method name='" + AceServerApi::ECHO_METHOD() + "'>"
40 " <arg type='s' name='input' direction='in'/>"
41 " <arg type='s' name='output' direction='out'/>"
43 " <method name='" + AceServerApi::CHECK_ACCESS_METHOD() + "'>"
44 " <arg type='i' name='handle' direction='in'/>"
45 " <arg type='s' name='subject' direction='in'/>"
46 " <arg type='s' name='resource' direction='in'/>"
47 " <arg type='as' name='parameter names' direction='in'/>"
48 " <arg type='as' name='parameter values' direction='in'/>"
49 " <arg type='s' name='session' direction='in'/>"
50 " <arg type='i' name='output' direction='out'/>"
52 " <method name='" + AceServerApi::CHECK_ACCESS_INSTALL_METHOD() + "'>"
53 " <arg type='i' name='handle' direction='in'/>"
54 " <arg type='s' name='resource' direction='in'/>"
55 " <arg type='i' name='output' direction='out'/>"
57 " <method name='" + AceServerApi::UPDATE_POLICY_METHOD() + "'>"
63 virtual ~AceServerDBusInterface()
66 virtual void onMethodCall(const gchar* methodName,
68 GDBusMethodInvocation* invocation);
73 #endif // WRT_SRC_RPC_SECURITY_DAEMON_ACE_SERVER_DBUS_INTERFACE_H_