1 /* GDBus - GLib D-Bus Library
3 * Copyright (C) 2008-2010 Red Hat, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General
16 * Public License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Author: David Zeuthen <davidz@redhat.com>
23 #ifndef __G_DBUS_OBJECT_MANAGER_CLIENT_H__
24 #define __G_DBUS_OBJECT_MANAGER_CLIENT_H__
26 #include <gio/giotypes.h>
30 #define G_TYPE_DBUS_OBJECT_MANAGER_CLIENT (g_dbus_object_manager_client_get_type ())
31 #define G_DBUS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT, GDBusObjectManagerClient))
32 #define G_DBUS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT, GDBusObjectManagerClientClass))
33 #define G_DBUS_OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT, GDBusObjectManagerClientClass))
34 #define G_IS_DBUS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT))
35 #define G_IS_DBUS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT))
37 typedef struct _GDBusObjectManagerClientClass GDBusObjectManagerClientClass;
38 typedef struct _GDBusObjectManagerClientPrivate GDBusObjectManagerClientPrivate;
41 * GDBusObjectManagerClient:
43 * The #GDBusObjectManagerClient structure contains private data and should
44 * only be accessed using the provided API.
48 struct _GDBusObjectManagerClient
51 GObject parent_instance;
52 GDBusObjectManagerClientPrivate *priv;
56 * GDBusObjectManagerClientClass:
57 * @parent_class: The parent class.
58 * @interface_proxy_signal: Signal class handler for the #GDBusObjectManagerClient::interface-proxy-signal signal.
59 * @interface_proxy_properties_changed: Signal class handler for the #GDBusObjectManagerClient::interface-proxy-properties-changed signal.
61 * Class structure for #GDBusObjectManagerClient.
65 struct _GDBusObjectManagerClientClass
67 GObjectClass parent_class;
70 void (*interface_proxy_signal) (GDBusObjectManagerClient *manager,
71 GDBusObjectProxy *object_proxy,
72 GDBusProxy *interface_proxy,
73 const gchar *sender_name,
74 const gchar *signal_name,
75 GVariant *parameters);
77 void (*interface_proxy_properties_changed) (GDBusObjectManagerClient *manager,
78 GDBusObjectProxy *object_proxy,
79 GDBusProxy *interface_proxy,
80 GVariant *changed_properties,
81 const gchar* const *invalidated_properties);
88 GType g_dbus_object_manager_client_get_type (void) G_GNUC_CONST;
90 void g_dbus_object_manager_client_new (GDBusConnection *connection,
91 GDBusObjectManagerClientFlags flags,
93 const gchar *object_path,
94 GDBusProxyTypeFunc get_proxy_type_func,
95 gpointer get_proxy_type_user_data,
96 GDestroyNotify get_proxy_type_destroy_notify,
97 GCancellable *cancellable,
98 GAsyncReadyCallback callback,
100 GLIB_AVAILABLE_IN_ALL
101 GDBusObjectManager *g_dbus_object_manager_client_new_finish (GAsyncResult *res,
103 GLIB_AVAILABLE_IN_ALL
104 GDBusObjectManager *g_dbus_object_manager_client_new_sync (GDBusConnection *connection,
105 GDBusObjectManagerClientFlags flags,
107 const gchar *object_path,
108 GDBusProxyTypeFunc get_proxy_type_func,
109 gpointer get_proxy_type_user_data,
110 GDestroyNotify get_proxy_type_destroy_notify,
111 GCancellable *cancellable,
113 GLIB_AVAILABLE_IN_ALL
114 void g_dbus_object_manager_client_new_for_bus (GBusType bus_type,
115 GDBusObjectManagerClientFlags flags,
117 const gchar *object_path,
118 GDBusProxyTypeFunc get_proxy_type_func,
119 gpointer get_proxy_type_user_data,
120 GDestroyNotify get_proxy_type_destroy_notify,
121 GCancellable *cancellable,
122 GAsyncReadyCallback callback,
124 GLIB_AVAILABLE_IN_ALL
125 GDBusObjectManager *g_dbus_object_manager_client_new_for_bus_finish (GAsyncResult *res,
127 GLIB_AVAILABLE_IN_ALL
128 GDBusObjectManager *g_dbus_object_manager_client_new_for_bus_sync (GBusType bus_type,
129 GDBusObjectManagerClientFlags flags,
131 const gchar *object_path,
132 GDBusProxyTypeFunc get_proxy_type_func,
133 gpointer get_proxy_type_user_data,
134 GDestroyNotify get_proxy_type_destroy_notify,
135 GCancellable *cancellable,
137 GLIB_AVAILABLE_IN_ALL
138 GDBusConnection *g_dbus_object_manager_client_get_connection (GDBusObjectManagerClient *manager);
139 GLIB_AVAILABLE_IN_ALL
140 GDBusObjectManagerClientFlags g_dbus_object_manager_client_get_flags (GDBusObjectManagerClient *manager);
141 GLIB_AVAILABLE_IN_ALL
142 const gchar *g_dbus_object_manager_client_get_name (GDBusObjectManagerClient *manager);
143 GLIB_AVAILABLE_IN_ALL
144 gchar *g_dbus_object_manager_client_get_name_owner (GDBusObjectManagerClient *manager);
148 #endif /* __G_DBUS_OBJECT_MANAGER_CLIENT_H */