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.DBusObject; 29 private import gio.DBusObjectIF; 30 private import gobject.ObjectG; 31 private import gtkc.gio; 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(); 45 46 /** the main Gtk struct as a void* */ 47 protected void* getStruct(); 48 49 /** 50 */ 51 52 /** 53 * Gets the #GDBusObject that @interface_ belongs to, if any. 54 * 55 * Return: A #GDBusObject or %NULL. The returned 56 * reference should be freed with g_object_unref(). 57 * 58 * Since: 2.32 59 */ 60 public DBusObjectIF dupObject(); 61 62 /** 63 * Gets D-Bus introspection information for the D-Bus interface 64 * implemented by @interface_. 65 * 66 * Return: A #GDBusInterfaceInfo. Do not free. 67 * 68 * Since: 2.30 69 */ 70 public DBusInterfaceInfo getInfo(); 71 72 /** 73 * Gets the #GDBusObject that @interface_ belongs to, if any. 74 * 75 * It is not safe to use the returned object if @interface_ or 76 * the returned object is being used from other threads. See 77 * g_dbus_interface_dup_object() for a thread-safe alternative. 78 * 79 * Return: A #GDBusObject or %NULL. The returned 80 * reference belongs to @interface_ and should not be freed. 81 * 82 * Since: 2.30 83 */ 84 public DBusObjectIF getObject(); 85 86 /** 87 * Sets the #GDBusObject for @interface_ to @object. 88 * 89 * Note that @interface_ will hold a weak reference to @object. 90 * 91 * Params: 92 * object = A #GDBusObject or %NULL. 93 * 94 * Since: 2.30 95 */ 96 public void setObject(DBusObjectIF object); 97 }