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.
18 * @author Zbigniew Kostrzewa (z.kostrzewa@samsung.com)
23 #ifndef DPL_DBUS_DISPATCHER_H
24 #define DPL_DBUS_DISPATCHER_H
34 virtual ~Dispatcher() =0;
37 * Called on method invocation.
42 * @param interfaceName
47 * @see GLib DBus documentation.
49 virtual void onMethodCall(GDBusConnection* connection,
51 const gchar* objectPath,
52 const gchar* interfaceName,
53 const gchar* methodName,
55 GDBusMethodInvocation* invocation) =0;
58 * Called on property get.
63 * @param interfaceName
65 * @return Porperty value.
67 * @see GLib DBus documentation.
69 virtual GVariant* onPropertyGet(GDBusConnection* connection,
71 const gchar* objectPath,
72 const gchar* interfaceName,
73 const gchar* propertyName,
77 * Called on property set.
82 * @param interfaceName
85 * @return TRUE if successfully set, FALSE otherwise.
87 * @see GLib DBus documentation.
89 virtual gboolean onPropertySet(GDBusConnection* connection,
91 const gchar* objectPath,
92 const gchar* interfaceName,
93 const gchar* propertyName,
101 #endif // DPL_DBUS_DISPATCHER_H