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 module gio.DBusInterfaceIF; 26 27 private import gio.DBusInterfaceInfo; 28 private import gio.DBusObjectIF; 29 private import gio.c.functions; 30 public import gio.c.types; 31 private import gobject.ObjectG; 32 33 34 /** 35 * The #GDBusInterface type is the base type for D-Bus interfaces both 36 * on the service side (see #GDBusInterfaceSkeleton) and client side 37 * (see #GDBusProxy). 38 * 39 * Since: 2.30 40 */ 41 public interface DBusInterfaceIF{ 42 /** Get the main Gtk struct */ 43 public GDBusInterface* getDBusInterfaceStruct(bool transferOwnership = false); 44 45 /** the main Gtk struct as a void* */ 46 protected void* getStruct(); 47 48 49 /** */ 50 public static GType getType() 51 { 52 return g_dbus_interface_get_type(); 53 } 54 55 /** 56 * Gets the #GDBusObject that @interface_ belongs to, if any. 57 * 58 * Returns: A #GDBusObject or %NULL. The returned 59 * reference should be freed with g_object_unref(). 60 * 61 * Since: 2.32 62 */ 63 public DBusObjectIF dupObject(); 64 65 /** 66 * Gets D-Bus introspection information for the D-Bus interface 67 * implemented by @interface_. 68 * 69 * Returns: A #GDBusInterfaceInfo. Do not free. 70 * 71 * Since: 2.30 72 */ 73 public DBusInterfaceInfo getInfo(); 74 75 /** 76 * Gets the #GDBusObject that @interface_ belongs to, if any. 77 * 78 * It is not safe to use the returned object if @interface_ or 79 * the returned object is being used from other threads. See 80 * g_dbus_interface_dup_object() for a thread-safe alternative. 81 * 82 * Returns: A #GDBusObject or %NULL. The returned 83 * reference belongs to @interface_ and should not be freed. 84 * 85 * Since: 2.30 86 */ 87 public DBusObjectIF getObject(); 88 89 /** 90 * Sets the #GDBusObject for @interface_ to @object. 91 * 92 * Note that @interface_ will hold a weak reference to @object. 93 * 94 * Params: 95 * object = A #GDBusObject or %NULL. 96 * 97 * Since: 2.30 98 */ 99 public void setObject(DBusObjectIF object); 100 }