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  * Conversion parameters:
26  * inFile  = GDBusObject.html
27  * outPack = gio
28  * outFile = DBusObjectIF
29  * strct   = GDBusObject
30  * realStrct=
31  * ctorStrct=
32  * clss    = DBusObjectT
33  * interf  = DBusObjectIF
34  * class Code: No
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- g_dbus_interface_
41  * omit structs:
42  * omit prefixes:
43  * omit code:
44  * omit signals:
45  * imports:
46  * 	- glib.Str
47  * 	- glib.ListG
48  * 	- gio.DBusInterface
49  * 	- gio.DBusInterfaceIF
50  * structWrap:
51  * 	- GDBusInterface* -> DBusInterfaceIF
52  * 	- GList* -> ListG
53  * module aliases:
54  * local aliases:
55  * overrides:
56  */
57 
58 module gio.DBusObjectIF;
59 
60 public  import gtkc.giotypes;
61 
62 private import gtkc.gio;
63 private import glib.ConstructionException;
64 private import gobject.ObjectG;
65 
66 private import gobject.Signals;
67 public  import gtkc.gdktypes;
68 private import glib.Str;
69 private import glib.ListG;
70 private import gio.DBusInterface;
71 private import gio.DBusInterfaceIF;
72 
73 
74 
75 /**
76  * The GDBusObject type is the base type for D-Bus objects on both
77  * the service side (see GDBusObjectSkeleton) and the client side
78  * (see GDBusObjectProxy). It is essentially just a container of
79  * interfaces.
80  */
81 public interface DBusObjectIF
82 {
83 	
84 	
85 	/** Get the main Gtk struct */
86 	public GDBusObject* getDBusObjectTStruct();
87 	
88 	/** the main Gtk struct as a void* */
89 	protected void* getStruct();
90 	
91 	
92 	/**
93 	 */
94 	
95 	@property void delegate(DBusInterfaceIF, DBusObjectIF)[] onInterfaceAddedListeners();
96 	/**
97 	 * Emitted when interface is added to object.
98 	 * Since 2.30
99 	 */
100 	void addOnInterfaceAdded(void delegate(DBusInterfaceIF, DBusObjectIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
101 	@property void delegate(DBusInterfaceIF, DBusObjectIF)[] onInterfaceRemovedListeners();
102 	/**
103 	 * Emitted when interface is removed from object.
104 	 * Since 2.30
105 	 */
106 	void addOnInterfaceRemoved(void delegate(DBusInterfaceIF, DBusObjectIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
107 	
108 	/**
109 	 * Gets the object path for object.
110 	 * Since 2.30
111 	 * Returns: A string owned by object. Do not free.
112 	 */
113 	public string gDbusObjectGetObjectPath();
114 	
115 	/**
116 	 * Gets the D-Bus interfaces associated with object.
117 	 * Since 2.30
118 	 * Returns: (element-type GDBusInterface) (transfer full) : A list of GDBusInterface instances. The returned list must be freed by g_list_free() after each element has been freed with g_object_unref().
119 	 */
120 	public ListG gDbusObjectGetInterfaces();
121 	
122 	/**
123 	 * Gets the D-Bus interface with name interface_name associated with
124 	 * object, if any.
125 	 * Since 2.30
126 	 * Signal Details
127 	 * The "interface-added" signal
128 	 * void user_function (GDBusObject *object,
129 	 *  GDBusInterface *interface,
130 	 *  gpointer user_data) : Run Last
131 	 * Emitted when interface is added to object.
132 	 * Since 2.30
133 	 * Params:
134 	 * interfaceName = A D-Bus interface name.
135 	 * interface = The GDBusInterface that was added.
136 	 * Returns: NULL if not found, otherwise a GDBusInterface that must be freed with g_object_unref(). [transfer full]
137 	 */
138 	public DBusInterfaceIF gDbusObjectGetInterface(string interfaceName);
139 }