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.DBusObjectManagerIF; 26 27 private import gio.DBusInterface; 28 private import gio.DBusInterfaceIF; 29 private import gio.DBusObject; 30 private import gio.DBusObjectIF; 31 private import glib.ListG; 32 private import glib.Str; 33 private import gobject.ObjectG; 34 private import gobject.Signals; 35 public import gtkc.gdktypes; 36 private import gtkc.gio; 37 public import gtkc.giotypes; 38 private import std.algorithm; 39 40 41 /** 42 * The #GDBusObjectManager type is the base type for service- and 43 * client-side implementations of the standardized 44 * [org.freedesktop.DBus.ObjectManager](http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager) 45 * interface. 46 * 47 * See #GDBusObjectManagerClient for the client-side implementation 48 * and #GDBusObjectManagerServer for the service-side implementation. 49 */ 50 public interface DBusObjectManagerIF{ 51 /** Get the main Gtk struct */ 52 public GDBusObjectManager* getDBusObjectManagerStruct(); 53 54 /** the main Gtk struct as a void* */ 55 protected void* getStruct(); 56 57 58 /** 59 * Gets the interface proxy for @interface_name at @object_path, if 60 * any. 61 * 62 * Params: 63 * objectPath = Object path to lookup. 64 * interfaceName = D-Bus interface name to lookup. 65 * 66 * Return: A #GDBusInterface instance or %NULL. Free 67 * with g_object_unref(). 68 * 69 * Since: 2.30 70 */ 71 public DBusInterfaceIF getInterface(string objectPath, string interfaceName); 72 73 /** 74 * Gets the #GDBusObjectProxy at @object_path, if any. 75 * 76 * Params: 77 * objectPath = Object path to lookup. 78 * 79 * Return: A #GDBusObject or %NULL. Free with 80 * g_object_unref(). 81 * 82 * Since: 2.30 83 */ 84 public DBusObjectIF getObject(string objectPath); 85 86 /** 87 * Gets the object path that @manager is for. 88 * 89 * Return: A string owned by @manager. Do not free. 90 * 91 * Since: 2.30 92 */ 93 public string getObjectPath(); 94 95 /** 96 * Gets all #GDBusObject objects known to @manager. 97 * 98 * Return: A list of 99 * #GDBusObject objects. The returned list should be freed with 100 * g_list_free() after each element has been freed with 101 * g_object_unref(). 102 * 103 * Since: 2.30 104 */ 105 public ListG getObjects(); 106 /** 107 * Emitted when @interface is added to @object. 108 * 109 * This signal exists purely as a convenience to avoid having to 110 * connect signals to all objects managed by @manager. 111 * 112 * Params: 113 * object = The #GDBusObject on which an interface was added. 114 * iface = The #GDBusInterface that was added. 115 * 116 * Since: 2.30 117 */ 118 gulong addOnInterfaceAdded(void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) 119 ; 120 121 /** 122 * Emitted when @interface has been removed from @object. 123 * 124 * This signal exists purely as a convenience to avoid having to 125 * connect signals to all objects managed by @manager. 126 * 127 * Params: 128 * object = The #GDBusObject on which an interface was removed. 129 * iface = The #GDBusInterface that was removed. 130 * 131 * Since: 2.30 132 */ 133 gulong addOnInterfaceRemoved(void delegate(DBusObjectIF, DBusInterfaceIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) 134 ; 135 136 /** 137 * Emitted when @object is added to @manager. 138 * 139 * Params: 140 * object = The #GDBusObject that was added. 141 * 142 * Since: 2.30 143 */ 144 gulong addOnObjectAdded(void delegate(DBusObjectIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) 145 ; 146 147 /** 148 * Emitted when @object is removed from @manager. 149 * 150 * Params: 151 * object = The #GDBusObject that was removed. 152 * 153 * Since: 2.30 154 */ 155 gulong addOnObjectRemoved(void delegate(DBusObjectIF, DBusObjectManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) 156 ; 157 158 }