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  = GDBusObjectManager.html
27  * outPack = gio
28  * outFile = DBusObjectManagerIF
29  * strct   = GDBusObjectManager
30  * realStrct=
31  * ctorStrct=
32  * clss    = DBusObjectManagerT
33  * interf  = DBusObjectManagerIF
34  * class Code: No
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- g_dbus_object_manager_
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  * 	- gio.DBusObject
51  * 	- gio.DBusObjectIF
52  * structWrap:
53  * 	- GDBusInterface* -> DBusInterfaceIF
54  * 	- GDBusObject* -> DBusObjectIF
55  * 	- GList* -> ListG
56  * module aliases:
57  * local aliases:
58  * overrides:
59  */
60 
61 module gio.DBusObjectManagerIF;
62 
63 public  import gtkc.giotypes;
64 
65 private import gtkc.gio;
66 private import glib.ConstructionException;
67 private import gobject.ObjectG;
68 
69 private import gobject.Signals;
70 public  import gtkc.gdktypes;
71 
72 private import glib.Str;
73 private import glib.ListG;
74 private import gio.DBusInterface;
75 private import gio.DBusInterfaceIF;
76 private import gio.DBusObject;
77 private import gio.DBusObjectIF;
78 
79 
80 
81 
82 /**
83  * The GDBusObjectManager type is the base type for service- and
84  * client-side implementations of the standardized org.freedesktop.DBus.ObjectManager
85  * interface.
86  *
87  * See GDBusObjectManagerClient for the client-side implementation
88  * and GDBusObjectManagerServer for the service-side implementation.
89  */
90 public interface DBusObjectManagerIF
91 {
92 	
93 	
94 	public GDBusObjectManager* getDBusObjectManagerTStruct();
95 	
96 	/** the main Gtk struct as a void* */
97 	protected void* getStruct();
98 	
99 	
100 	/**
101 	 */
102 	
103 	@property void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF)[] onInterfaceAddedListeners();
104 	/**
105 	 * Emitted when interface is added to object.
106 	 * This signal exists purely as a convenience to avoid having to
107 	 * connect signals to all objects managed by manager.
108 	 * Since 2.30
109 	 */
110 	void addOnInterfaceAdded(void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
111 	@property void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF)[] onInterfaceRemovedListeners();
112 	/**
113 	 * Emitted when interface has been removed from object.
114 	 * This signal exists purely as a convenience to avoid having to
115 	 * connect signals to all objects managed by manager.
116 	 * Since 2.30
117 	 */
118 	void addOnInterfaceRemoved(void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
119 	@property void delegate(DBusObjectIF, DBusObjectManagerIF)[] onObjectAddedListeners();
120 	/**
121 	 * Emitted when object is added to manager.
122 	 * Since 2.30
123 	 */
124 	void addOnObjectAdded(void delegate(DBusObjectIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
125 	@property void delegate(DBusObjectIF, DBusObjectManagerIF)[] onObjectRemovedListeners();
126 	/**
127 	 * Emitted when object is removed from manager.
128 	 * Since 2.30
129 	 */
130 	void addOnObjectRemoved(void delegate(DBusObjectIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
131 	
132 	/**
133 	 * Gets the object path that manager is for.
134 	 * Since 2.30
135 	 * Returns: A string owned by manager. Do not free.
136 	 */
137 	public string getObjectPath();
138 	
139 	/**
140 	 * Gets all GDBusObject objects known to manager.
141 	 * Since 2.30
142 	 * Returns: A list of GDBusObject objects. The returned list should be freed with g_list_free() after each element has been freed with g_object_unref(). [transfer full][element-type GDBusObject]
143 	 */
144 	public ListG getObjects();
145 	
146 	/**
147 	 * Gets the GDBusObjectProxy at object_path, if any.
148 	 * Since 2.30
149 	 * Params:
150 	 * objectPath = Object path to lookup.
151 	 * Returns: A GDBusObject or NULL. Free with g_object_unref(). [transfer full]
152 	 */
153 	public DBusObjectIF getObject(string objectPath);
154 	
155 	/**
156 	 * Gets the interface proxy for interface_name at object_path, if
157 	 * any.
158 	 * Since 2.30
159 	 * Signal Details
160 	 * The "interface-added" signal
161 	 * void user_function (GDBusObjectManager *manager,
162 	 *  GDBusObject *object,
163 	 *  GDBusInterface *interface,
164 	 *  gpointer user_data) : Run Last
165 	 * Emitted when interface is added to object.
166 	 * This signal exists purely as a convenience to avoid having to
167 	 * connect signals to all objects managed by manager.
168 	 * Since 2.30
169 	 * Params:
170 	 * objectPath = Object path to lookup.
171 	 * interfaceName = D-Bus interface name to lookup.
172 	 * object = The GDBusObject on which an interface was added.
173 	 * interface = The GDBusInterface that was added.
174 	 * Returns: A GDBusInterface instance or NULL. Free with g_object_unref(). [transfer full]
175 	 */
176 	public DBusInterfaceIF getInterface(string objectPath, string interfaceName);
177 }