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

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

Initial release

File size: 2.2 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.DBusSignalInfo;
22
23private import gi.gio;
24public  import gi.giotypes;
25private import gobject.ObjectG;
26
27
28/**
29 * Information about a signal on a D-Bus interface.
30 *
31 * Since: 2.26
32 */
33public class DBusSignalInfo
34{
35        /** the main Gtk struct */
36        protected GDBusSignalInfo* gDBusSignalInfo;
37        protected bool ownedRef;
38
39        /** Get the main Gtk struct */
40        public GDBusSignalInfo* getDBusSignalInfoStruct()
41        {
42                return gDBusSignalInfo;
43        }
44
45        /** the main Gtk struct as a void* */
46        protected void* getStruct()
47        {
48                return cast(void*)gDBusSignalInfo;
49        }
50
51        /**
52         * Sets our main struct and passes it to the parent class.
53         */
54        public this (GDBusSignalInfo* gDBusSignalInfo, bool ownedRef = false)
55        {
56                this.gDBusSignalInfo = gDBusSignalInfo;
57                this.ownedRef = ownedRef;
58        }
59
60
61        /** */
62        public static GType getType()
63        {
64                return g_dbus_signal_info_get_type();
65        }
66
67        /**
68         * If @info is statically allocated does nothing. Otherwise increases
69         * the reference count.
70         *
71         * Returns: The same @info.
72         *
73         * Since: 2.26
74         */
75        public DBusSignalInfo doref()
76        {
77                auto p = g_dbus_signal_info_ref(gDBusSignalInfo);
78               
79                if(p is null)
80                {
81                        return null;
82                }
83               
84                return ObjectG.getDObject!(DBusSignalInfo)(cast(GDBusSignalInfo*) p, true);
85        }
86
87        /**
88         * If @info is statically allocated, does nothing. Otherwise decreases
89         * the reference count of @info. When its reference count drops to 0,
90         * the memory used is freed.
91         *
92         * Since: 2.26
93         */
94        public void unref()
95        {
96                g_dbus_signal_info_unref(gDBusSignalInfo);
97        }
98}
Note: See TracBrowser for help on using the repository browser.