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 = GDBusInterface.html 27 * outPack = gio 28 * outFile = DBusInterfaceIF 29 * strct = GDBusInterface 30 * realStrct= 31 * ctorStrct= 32 * clss = DBusInterfaceT 33 * interf = DBusInterfaceIF 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 * - gio.DBusInterfaceInfo 47 * - gio.DBusObject 48 * - gio.DBusObjectIF 49 * structWrap: 50 * - GDBusInterfaceInfo* -> DBusInterfaceInfo 51 * - GDBusObject* -> DBusObjectIF 52 * module aliases: 53 * local aliases: 54 * overrides: 55 */ 56 57 module gio.DBusInterfaceIF; 58 59 public import gtkc.giotypes; 60 61 private import gtkc.gio; 62 private import glib.ConstructionException; 63 private import gobject.ObjectG; 64 65 66 private import gio.DBusInterfaceInfo; 67 private import gio.DBusObject; 68 private import gio.DBusObjectIF; 69 70 71 72 73 /** 74 * The GDBusInterface type is the base type for D-Bus interfaces both 75 * on the service side (see GDBusInterfaceSkeleton) and client side 76 * (see GDBusProxy). 77 */ 78 public interface DBusInterfaceIF 79 { 80 81 82 public GDBusInterface* getDBusInterfaceTStruct(); 83 84 /** the main Gtk struct as a void* */ 85 protected void* getStruct(); 86 87 88 /** 89 */ 90 91 /** 92 * Gets D-Bus introspection information for the D-Bus interface 93 * implemented by interface_. 94 * Since 2.30 95 * Returns: A GDBusInterfaceInfo. Do not free. [transfer none] 96 */ 97 public DBusInterfaceInfo getInfo(); 98 99 /** 100 * Gets the GDBusObject that interface_ belongs to, if any. 101 * Warning 102 * It is not safe to use the returned object if interface_ 103 * or the returned object is being used from other threads. See 104 * g_dbus_interface_dup_object() for a thread-safe 105 * alternative. 106 * Since 2.30 107 * Returns: A GDBusObject or NULL. The returned reference belongs to interface_ and should not be freed. [transfer none] 108 */ 109 public DBusObjectIF getObject(); 110 111 /** 112 * Gets the GDBusObject that interface_ belongs to, if any. 113 * Since 2.32 114 * Returns: A GDBusObject or NULL. The returned reference should be freed with g_object_unref(). [transfer full] 115 */ 116 public DBusObjectIF dupObject(); 117 118 /** 119 * Sets the GDBusObject for interface_ to object. 120 * Note that interface_ will hold a weak reference to object. 121 * Since 2.30 122 * Params: 123 * object = A GDBusObject or NULL. [allow-none] 124 */ 125 public void setObject(DBusObjectIF object); 126 }