GSettings: properly support 'extends'
[glib.git] / gio / gdbusinterfaceskeleton.h
blobca79c53382757a5c22f755f265eb4867d9da8a3d
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_INTERFACE_SKELETON_H__
24 #define __G_DBUS_INTERFACE_SKELETON_H__
26 #include <gio/giotypes.h>
28 G_BEGIN_DECLS
30 #define G_TYPE_DBUS_INTERFACE_SKELETON (g_dbus_interface_skeleton_get_type ())
31 #define G_DBUS_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_INTERFACE_SKELETON, GDBusInterfaceSkeleton))
32 #define G_DBUS_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DBUS_INTERFACE_SKELETON, GDBusInterfaceSkeletonClass))
33 #define G_DBUS_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DBUS_INTERFACE_SKELETON, GDBusInterfaceSkeletonClass))
34 #define G_IS_DBUS_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_INTERFACE_SKELETON))
35 #define G_IS_DBUS_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DBUS_INTERFACE_SKELETON))
37 typedef struct _GDBusInterfaceSkeletonClass GDBusInterfaceSkeletonClass;
38 typedef struct _GDBusInterfaceSkeletonPrivate GDBusInterfaceSkeletonPrivate;
40 /**
41 * GDBusInterfaceSkeleton:
43 * The #GDBusInterfaceSkeleton structure contains private data and should
44 * only be accessed using the provided API.
46 * Since: 2.30
48 struct _GDBusInterfaceSkeleton
50 /*< private >*/
51 GObject parent_instance;
52 GDBusInterfaceSkeletonPrivate *priv;
55 /**
56 * GDBusInterfaceSkeletonClass:
57 * @parent_class: The parent class.
58 * @get_info: Returns a #GDBusInterfaceInfo. See g_dbus_interface_skeleton_get_info() for details.
59 * @get_vtable: Returns a #GDBusInterfaceVTable. See g_dbus_interface_skeleton_get_vtable() for details.
60 * @get_properties: Returns a #GVariant with all properties. See g_dbus_interface_skeleton_get_properties().
61 * @flush: Emits outstanding changes, if any. See g_dbus_interface_skeleton_flush().
62 * @g_authorize_method: Signal class handler for the #GDBusInterfaceSkeleton::g-authorize-method signal.
64 * Class structure for #GDBusInterfaceSkeleton.
66 * Since: 2.30
68 struct _GDBusInterfaceSkeletonClass
70 GObjectClass parent_class;
72 /* Virtual Functions */
73 GDBusInterfaceInfo *(*get_info) (GDBusInterfaceSkeleton *interface_);
74 GDBusInterfaceVTable *(*get_vtable) (GDBusInterfaceSkeleton *interface_);
75 GVariant *(*get_properties) (GDBusInterfaceSkeleton *interface_);
76 void (*flush) (GDBusInterfaceSkeleton *interface_);
78 /*< private >*/
79 gpointer vfunc_padding[8];
80 /*< public >*/
82 /* Signals */
83 gboolean (*g_authorize_method) (GDBusInterfaceSkeleton *interface_,
84 GDBusMethodInvocation *invocation);
86 /*< private >*/
87 gpointer signal_padding[8];
90 GLIB_AVAILABLE_IN_ALL
91 GType g_dbus_interface_skeleton_get_type (void) G_GNUC_CONST;
92 GLIB_AVAILABLE_IN_ALL
93 GDBusInterfaceSkeletonFlags g_dbus_interface_skeleton_get_flags (GDBusInterfaceSkeleton *interface_);
94 GLIB_AVAILABLE_IN_ALL
95 void g_dbus_interface_skeleton_set_flags (GDBusInterfaceSkeleton *interface_,
96 GDBusInterfaceSkeletonFlags flags);
97 GLIB_AVAILABLE_IN_ALL
98 GDBusInterfaceInfo *g_dbus_interface_skeleton_get_info (GDBusInterfaceSkeleton *interface_);
99 GLIB_AVAILABLE_IN_ALL
100 GDBusInterfaceVTable *g_dbus_interface_skeleton_get_vtable (GDBusInterfaceSkeleton *interface_);
101 GLIB_AVAILABLE_IN_ALL
102 GVariant *g_dbus_interface_skeleton_get_properties (GDBusInterfaceSkeleton *interface_);
103 GLIB_AVAILABLE_IN_ALL
104 void g_dbus_interface_skeleton_flush (GDBusInterfaceSkeleton *interface_);
106 GLIB_AVAILABLE_IN_ALL
107 gboolean g_dbus_interface_skeleton_export (GDBusInterfaceSkeleton *interface_,
108 GDBusConnection *connection,
109 const gchar *object_path,
110 GError **error);
111 GLIB_AVAILABLE_IN_ALL
112 void g_dbus_interface_skeleton_unexport (GDBusInterfaceSkeleton *interface_);
113 GLIB_AVAILABLE_IN_ALL
114 void g_dbus_interface_skeleton_unexport_from_connection (GDBusInterfaceSkeleton *interface_,
115 GDBusConnection *connection);
117 GLIB_AVAILABLE_IN_ALL
118 GDBusConnection *g_dbus_interface_skeleton_get_connection (GDBusInterfaceSkeleton *interface_);
119 GLIB_AVAILABLE_IN_ALL
120 GList *g_dbus_interface_skeleton_get_connections (GDBusInterfaceSkeleton *interface_);
121 GLIB_AVAILABLE_IN_ALL
122 gboolean g_dbus_interface_skeleton_has_connection (GDBusInterfaceSkeleton *interface_,
123 GDBusConnection *connection);
124 GLIB_AVAILABLE_IN_ALL
125 const gchar *g_dbus_interface_skeleton_get_object_path (GDBusInterfaceSkeleton *interface_);
127 G_END_DECLS
129 #endif /* __G_DBUS_INTERFACE_SKELETON_H */