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);
87 GType g_dbus_object_manager_client_get_type (void) G_GNUC_CONST;
88 void g_dbus_object_manager_client_new (GDBusConnection *connection,
89 GDBusObjectManagerClientFlags flags,
91 const gchar *object_path,
92 GDBusProxyTypeFunc get_proxy_type_func,
93 gpointer get_proxy_type_user_data,
94 GDestroyNotify get_proxy_type_destroy_notify,
95 GCancellable *cancellable,
96 GAsyncReadyCallback callback,
98 GDBusObjectManager *g_dbus_object_manager_client_new_finish (GAsyncResult *res,
100 GDBusObjectManager *g_dbus_object_manager_client_new_sync (GDBusConnection *connection,
101 GDBusObjectManagerClientFlags flags,
103 const gchar *object_path,
104 GDBusProxyTypeFunc get_proxy_type_func,
105 gpointer get_proxy_type_user_data,
106 GDestroyNotify get_proxy_type_destroy_notify,
107 GCancellable *cancellable,
109 void g_dbus_object_manager_client_new_for_bus (GBusType bus_type,
110 GDBusObjectManagerClientFlags flags,
112 const gchar *object_path,
113 GDBusProxyTypeFunc get_proxy_type_func,
114 gpointer get_proxy_type_user_data,
115 GDestroyNotify get_proxy_type_destroy_notify,
116 GCancellable *cancellable,
117 GAsyncReadyCallback callback,
119 GDBusObjectManager *g_dbus_object_manager_client_new_for_bus_finish (GAsyncResult *res,
121 GDBusObjectManager *g_dbus_object_manager_client_new_for_bus_sync (GBusType bus_type,
122 GDBusObjectManagerClientFlags flags,
124 const gchar *object_path,
125 GDBusProxyTypeFunc get_proxy_type_func,
126 gpointer get_proxy_type_user_data,
127 GDestroyNotify get_proxy_type_destroy_notify,
128 GCancellable *cancellable,
130 GDBusConnection *g_dbus_object_manager_client_get_connection (GDBusObjectManagerClient *manager);
131 GDBusObjectManagerClientFlags g_dbus_object_manager_client_get_flags (GDBusObjectManagerClient *manager);
132 const gchar *g_dbus_object_manager_client_get_name (GDBusObjectManagerClient *manager);
133 gchar *g_dbus_object_manager_client_get_name_owner (GDBusObjectManagerClient *manager);
137 #endif /* __G_DBUS_OBJECT_MANAGER_CLIENT_H */