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 private import glib.Str;
72 private import glib.ListG;
73 private import gio.DBusInterface;
74 private import gio.DBusInterfaceIF;
75 private import gio.DBusObject;
76 private import gio.DBusObjectIF;
77 
78 
79 
80 /**
81  * The GDBusObjectManager type is the base type for service- and
82  * client-side implementations of the standardized org.freedesktop.DBus.ObjectManager
83  * interface.
84  *
85  * See GDBusObjectManagerClient for the client-side implementation
86  * and GDBusObjectManagerServer for the service-side implementation.
87  */
88 public interface DBusObjectManagerIF
89 {
90 	
91 	
92 	/** Get the main Gtk struct */
93 	public GDBusObjectManager* getDBusObjectManagerTStruct();
94 	
95 	/** the main Gtk struct as a void* */
96 	protected void* getStruct();
97 	
98 	
99 	/**
100 	 */
101 	
102 	@property void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF)[] onInterfaceAddedListeners();
103 	/**
104 	 * Emitted when interface is added to object.
105 	 * This signal exists purely as a convenience to avoid having to
106 	 * connect signals to all objects managed by manager.
107 	 * Since 2.30
108 	 */
109 	void addOnInterfaceAdded(void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
110 	@property void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF)[] onInterfaceRemovedListeners();
111 	/**
112 	 * Emitted when interface has been removed from object.
113 	 * This signal exists purely as a convenience to avoid having to
114 	 * connect signals to all objects managed by manager.
115 	 * Since 2.30
116 	 */
117 	void addOnInterfaceRemoved(void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
118 	@property void delegate(DBusObjectIF, DBusObjectManagerIF)[] onObjectAddedListeners();
119 	/**
120 	 * Emitted when object is added to manager.
121 	 * Since 2.30
122 	 */
123 	void addOnObjectAdded(void delegate(DBusObjectIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
124 	@property void delegate(DBusObjectIF, DBusObjectManagerIF)[] onObjectRemovedListeners();
125 	/**
126 	 * Emitted when object is removed from manager.
127 	 * Since 2.30
128 	 */
129 	void addOnObjectRemoved(void delegate(DBusObjectIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
130 	
131 	/**
132 	 * Gets the object path that manager is for.
133 	 * Since 2.30
134 	 * Returns: A string owned by manager. Do not free.
135 	 */
136 	public string getObjectPath();
137 	
138 	/**
139 	 * Gets all GDBusObject objects known to manager.
140 	 * Since 2.30
141 	 * 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]
142 	 */
143 	public ListG getObjects();
144 	
145 	/**
146 	 * Gets the GDBusObjectProxy at object_path, if any.
147 	 * Since 2.30
148 	 * Params:
149 	 * objectPath = Object path to lookup.
150 	 * Returns: A GDBusObject or NULL. Free with g_object_unref(). [transfer full]
151 	 */
152 	public DBusObjectIF getObject(string objectPath);
153 	
154 	/**
155 	 * Gets the interface proxy for interface_name at object_path, if
156 	 * any.
157 	 * Since 2.30
158 	 * Signal Details
159 	 * The "interface-added" signal
160 	 * void user_function (GDBusObjectManager *manager,
161 	 *  GDBusObject *object,
162 	 *  GDBusInterface *interface,
163 	 *  gpointer user_data) : Run Last
164 	 * Emitted when interface is added to object.
165 	 * This signal exists purely as a convenience to avoid having to
166 	 * connect signals to all objects managed by manager.
167 	 * Since 2.30
168 	 * Params:
169 	 * objectPath = Object path to lookup.
170 	 * interfaceName = D-Bus interface name to lookup.
171 	 * object = The GDBusObject on which an interface was added.
172 	 * interface = The GDBusInterface that was added.
173 	 * Returns: A GDBusInterface instance or NULL. Free with g_object_unref(). [transfer full]
174 	 */
175 	public DBusInterfaceIF getInterface(string objectPath, string interfaceName);
176 }