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 69 private import glib.Str; 70 private import glib.ListG; 71 private import gio.DBusInterface; 72 private import gio.DBusInterfaceIF; 73 74 75 76 77 /** 78 * The GDBusObject type is the base type for D-Bus objects on both 79 * the service side (see GDBusObjectSkeleton) and the client side 80 * (see GDBusObjectProxy). It is essentially just a container of 81 * interfaces. 82 */ 83 public interface DBusObjectIF 84 { 85 86 87 public GDBusObject* getDBusObjectTStruct(); 88 89 /** the main Gtk struct as a void* */ 90 protected void* getStruct(); 91 92 93 /** 94 */ 95 96 @property void delegate(DBusInterfaceIF, DBusObjectIF)[] onInterfaceAddedListeners(); 97 /** 98 * Emitted when interface is added to object. 99 * Since 2.30 100 */ 101 void addOnInterfaceAdded(void delegate(DBusInterfaceIF, DBusObjectIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); 102 @property void delegate(DBusInterfaceIF, DBusObjectIF)[] onInterfaceRemovedListeners(); 103 /** 104 * Emitted when interface is removed from object. 105 * Since 2.30 106 */ 107 void addOnInterfaceRemoved(void delegate(DBusInterfaceIF, DBusObjectIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); 108 109 /** 110 * Gets the object path for object. 111 * Since 2.30 112 * Returns: A string owned by object. Do not free. 113 */ 114 public string gDbusObjectGetObjectPath(); 115 116 /** 117 * Gets the D-Bus interfaces associated with object. 118 * Since 2.30 119 * 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(). 120 */ 121 public ListG gDbusObjectGetInterfaces(); 122 123 /** 124 * Gets the D-Bus interface with name interface_name associated with 125 * object, if any. 126 * Since 2.30 127 * Signal Details 128 * The "interface-added" signal 129 * void user_function (GDBusObject *object, 130 * GDBusInterface *interface, 131 * gpointer user_data) : Run Last 132 * Emitted when interface is added to object. 133 * Since 2.30 134 * Params: 135 * interfaceName = A D-Bus interface name. 136 * interface = The GDBusInterface that was added. 137 * Returns: NULL if not found, otherwise a GDBusInterface that must be freed with g_object_unref(). [transfer full] 138 */ 139 public DBusInterfaceIF gDbusObjectGetInterface(string interfaceName); 140 }