1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD 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
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module gio.DBusInterfaceIF;
26 
27 private import gio.DBusInterfaceInfo;
28 private import gio.DBusObject;
29 private import gio.DBusObjectIF;
30 private import gobject.ObjectG;
31 private import gtkc.gio;
32 public  import gtkc.giotypes;
33 
34 
35 /**
36  * The #GDBusInterface type is the base type for D-Bus interfaces both
37  * on the service side (see #GDBusInterfaceSkeleton) and client side
38  * (see #GDBusProxy).
39  *
40  * Since: 2.30
41  */
42 public interface DBusInterfaceIF{
43 	/** Get the main Gtk struct */
44 	public GDBusInterface* getDBusInterfaceStruct();
45 
46 	/** the main Gtk struct as a void* */
47 	protected void* getStruct();
48 
49 
50 	/**
51 	 * Gets the #GDBusObject that @interface_ belongs to, if any.
52 	 *
53 	 * Return: A #GDBusObject or %NULL. The returned
54 	 *     reference should be freed with g_object_unref().
55 	 *
56 	 * Since: 2.32
57 	 */
58 	public DBusObjectIF dupObject();
59 
60 	/**
61 	 * Gets D-Bus introspection information for the D-Bus interface
62 	 * implemented by @interface_.
63 	 *
64 	 * Return: A #GDBusInterfaceInfo. Do not free.
65 	 *
66 	 * Since: 2.30
67 	 */
68 	public DBusInterfaceInfo getInfo();
69 
70 	/**
71 	 * Gets the #GDBusObject that @interface_ belongs to, if any.
72 	 *
73 	 * It is not safe to use the returned object if @interface_ or
74 	 * the returned object is being used from other threads. See
75 	 * g_dbus_interface_dup_object() for a thread-safe alternative.
76 	 *
77 	 * Return: A #GDBusObject or %NULL. The returned
78 	 *     reference belongs to @interface_ and should not be freed.
79 	 *
80 	 * Since: 2.30
81 	 */
82 	public DBusObjectIF getObject();
83 
84 	/**
85 	 * Sets the #GDBusObject for @interface_ to @object.
86 	 *
87 	 * Note that @interface_ will hold a weak reference to @object.
88 	 *
89 	 * Params:
90 	 *     object = A #GDBusObject or %NULL.
91 	 *
92 	 * Since: 2.30
93 	 */
94 	public void setObject(DBusObjectIF object);
95 }