source: appstream-generator/build/girepo/gio/DBusObjectIF.d @ 4841

Last change on this file since 4841 was 4841, checked in by Juanma, 2 years ago

Initial release

File size: 2.8 KB
Line 
1/*
2 * Licensed under the GNU Lesser General Public License Version 3
3 *
4 * This library is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation, either version 3 of the license, or
7 * (at your option) any later version.
8 *
9 * This software is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
16 */
17
18// generated automatically - do not change
19
20
21module gio.DBusObjectIF;
22
23private import gi.gio;
24public  import gi.giotypes;
25private import gio.DBusInterface;
26private import gio.DBusInterfaceIF;
27private import glib.ListG;
28private import glib.Str;
29private import gobject.ObjectG;
30private import gobject.Signals;
31private import std.algorithm;
32
33
34/**
35 * The #GDBusObject type is the base type for D-Bus objects on both
36 * the service side (see #GDBusObjectSkeleton) and the client side
37 * (see #GDBusObjectProxy). It is essentially just a container of
38 * interfaces.
39 */
40public interface DBusObjectIF{
41        /** Get the main Gtk struct */
42        public GDBusObject* getDBusObjectStruct();
43
44        /** the main Gtk struct as a void* */
45        protected void* getStruct();
46
47
48        /**
49         * Gets the D-Bus interface with name @interface_name associated with
50         * @object, if any.
51         *
52         * Params:
53         *     interfaceName = A D-Bus interface name.
54         *
55         * Returns: %NULL if not found, otherwise a
56         *     #GDBusInterface that must be freed with g_object_unref().
57         *
58         * Since: 2.30
59         */
60        public DBusInterfaceIF getInterface(string interfaceName);
61
62        /**
63         * Gets the D-Bus interfaces associated with @object.
64         *
65         * Returns: A list of #GDBusInterface instances.
66         *     The returned list must be freed by g_list_free() after each element has been freed
67         *     with g_object_unref().
68         *
69         * Since: 2.30
70         */
71        public ListG getInterfaces();
72
73        /**
74         * Gets the object path for @object.
75         *
76         * Returns: A string owned by @object. Do not free.
77         *
78         * Since: 2.30
79         */
80        public string getObjectPath();
81
82        /**
83         * Emitted when @interface is added to @object.
84         *
85         * Params:
86         *     iface = The #GDBusInterface that was added.
87         *
88         * Since: 2.30
89         */
90        gulong addOnInterfaceAdded(void delegate(DBusInterfaceIF, DBusObjectIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
91
92        /**
93         * Emitted when @interface is removed from @object.
94         *
95         * Params:
96         *     iface = The #GDBusInterface that was removed.
97         *
98         * Since: 2.30
99         */
100        gulong addOnInterfaceRemoved(void delegate(DBusInterfaceIF, DBusObjectIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
101}
Note: See TracBrowser for help on using the repository browser.