Improve GSettings test coverage
[platform/upstream/glib.git] / gio / gdbusobjectmanagerclient.h
1 /* GDBus - GLib D-Bus Library
2  *
3  * Copyright (C) 2008-2010 Red Hat, Inc.
4  *
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.
9  *
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.
14  *
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.
19  *
20  * Author: David Zeuthen <davidz@redhat.com>
21  */
22
23 #ifndef __G_DBUS_OBJECT_MANAGER_CLIENT_H__
24 #define __G_DBUS_OBJECT_MANAGER_CLIENT_H__
25
26 #include <gio/giotypes.h>
27
28 G_BEGIN_DECLS
29
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))
36
37 typedef struct _GDBusObjectManagerClientClass   GDBusObjectManagerClientClass;
38 typedef struct _GDBusObjectManagerClientPrivate GDBusObjectManagerClientPrivate;
39
40 /**
41  * GDBusObjectManagerClient:
42   *
43  * The #GDBusObjectManagerClient structure contains private data and should
44  * only be accessed using the provided API.
45  *
46  * Since: 2.30
47  */
48 struct _GDBusObjectManagerClient
49 {
50   /*< private >*/
51   GObject parent_instance;
52   GDBusObjectManagerClientPrivate *priv;
53 };
54
55 /**
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.
60  *
61  * Class structure for #GDBusObjectManagerClient.
62  *
63  * Since: 2.30
64  */
65 struct _GDBusObjectManagerClientClass
66 {
67   GObjectClass parent_class;
68
69   /* signals */
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);
76
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);
82
83   /*< private >*/
84   gpointer padding[8];
85 };
86
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,
90                                                                                const gchar                   *name,
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,
97                                                                                gpointer                       user_data);
98 GDBusObjectManager           *g_dbus_object_manager_client_new_finish         (GAsyncResult                  *res,
99                                                                                GError                       **error);
100 GDBusObjectManager           *g_dbus_object_manager_client_new_sync           (GDBusConnection               *connection,
101                                                                                GDBusObjectManagerClientFlags  flags,
102                                                                                const gchar                   *name,
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,
108                                                                                GError                       **error);
109 void                          g_dbus_object_manager_client_new_for_bus        (GBusType                       bus_type,
110                                                                                GDBusObjectManagerClientFlags  flags,
111                                                                                const gchar                   *name,
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,
118                                                                                gpointer                       user_data);
119 GDBusObjectManager           *g_dbus_object_manager_client_new_for_bus_finish (GAsyncResult                  *res,
120                                                                                GError                       **error);
121 GDBusObjectManager           *g_dbus_object_manager_client_new_for_bus_sync   (GBusType                       bus_type,
122                                                                                GDBusObjectManagerClientFlags  flags,
123                                                                                const gchar                   *name,
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,
129                                                                                GError                       **error);
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);
134
135 G_END_DECLS
136
137 #endif /* __G_DBUS_OBJECT_MANAGER_CLIENT_H */