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