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.DBusObjectIF;
26 
27 private import gio.DBusInterfaceIF;
28 private import gio.c.functions;
29 public  import gio.c.types;
30 private import glib.ListG;
31 private import glib.Str;
32 private import glib.c.functions;
33 private import gobject.ObjectG;
34 private import gobject.Signals;
35 private import std.algorithm;
36 
37 
38 /**
39  * The #GDBusObject type is the base type for D-Bus objects on both
40  * the service side (see #GDBusObjectSkeleton) and the client side
41  * (see #GDBusObjectProxy). It is essentially just a container of
42  * interfaces.
43  */
44 public interface DBusObjectIF{
45 	/** Get the main Gtk struct */
46 	public GDBusObject* getDBusObjectStruct(bool transferOwnership = false);
47 
48 	/** the main Gtk struct as a void* */
49 	protected void* getStruct();
50 
51 
52 	/** */
53 	public static GType getType()
54 	{
55 		return g_dbus_object_get_type();
56 	}
57 
58 	/**
59 	 * Gets the D-Bus interface with name @interface_name associated with
60 	 * @object, if any.
61 	 *
62 	 * Params:
63 	 *     interfaceName = A D-Bus interface name.
64 	 *
65 	 * Returns: %NULL if not found, otherwise a
66 	 *     #GDBusInterface that must be freed with g_object_unref().
67 	 *
68 	 * Since: 2.30
69 	 */
70 	public DBusInterfaceIF getInterface(string interfaceName);
71 
72 	/**
73 	 * Gets the D-Bus interfaces associated with @object.
74 	 *
75 	 * Returns: A list of #GDBusInterface instances.
76 	 *     The returned list must be freed by g_list_free() after each element has been freed
77 	 *     with g_object_unref().
78 	 *
79 	 * Since: 2.30
80 	 */
81 	public ListG getInterfaces();
82 
83 	/**
84 	 * Gets the object path for @object.
85 	 *
86 	 * Returns: A string owned by @object. Do not free.
87 	 *
88 	 * Since: 2.30
89 	 */
90 	public string getObjectPath();
91 
92 	/**
93 	 * Emitted when @interface is added to @object.
94 	 *
95 	 * Params:
96 	 *     interface_ = The #GDBusInterface that was added.
97 	 *
98 	 * Since: 2.30
99 	 */
100 	gulong addOnInterfaceAdded(void delegate(DBusInterfaceIF, DBusObjectIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
101 
102 	/**
103 	 * Emitted when @interface is removed from @object.
104 	 *
105 	 * Params:
106 	 *     interface_ = The #GDBusInterface that was removed.
107 	 *
108 	 * Since: 2.30
109 	 */
110 	gulong addOnInterfaceRemoved(void delegate(DBusInterfaceIF, DBusObjectIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
111 }