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