DBusInterfaceInfo

Information about a D-Bus interface.

Constructors

this
this(GDBusInterfaceInfo* gDBusInterfaceInfo, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

cacheBuild
void cacheBuild()

Builds a lookup-cache to speed up g_dbus_interface_info_lookup_method(), g_dbus_interface_info_lookup_signal() and g_dbus_interface_info_lookup_property().

cacheRelease
void cacheRelease()

Decrements the usage count for the cache for info built by g_dbus_interface_info_cache_build() (if any) and frees the resources used by the cache if the usage count drops to zero.

doref
DBusInterfaceInfo doref()

If info is statically allocated does nothing. Otherwise increases the reference count.

generateXml
void generateXml(uint indent, StringG stringBuilder)

Appends an XML representation of info (and its children) to string_builder.

getDBusInterfaceInfoStruct
GDBusInterfaceInfo* getDBusInterfaceInfoStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

lookupMethod
DBusMethodInfo lookupMethod(string name)

Looks up information about a method.

lookupProperty
DBusPropertyInfo lookupProperty(string name)

Looks up information about a property.

lookupSignal
DBusSignalInfo lookupSignal(string name)

Looks up information about a signal.

unref
void unref()

If info is statically allocated, does nothing. Otherwise decreases the reference count of info. When its reference count drops to 0, the memory used is freed.

Properties

annotations
DBusAnnotationInfo[] annotations [@property getter]
DBusAnnotationInfo[] annotations [@property setter]

A pointer to a NULL-terminated array of pointers to gio.DBusAnnotationInfo structures or NULL if there are no annotations.

methods
DBusMethodInfo[] methods [@property getter]
DBusMethodInfo[] methods [@property setter]

A pointer to a NULL-terminated array of pointers to gio.DBusMethodInfo structures or NULL if there are no methods.

name
string name [@property getter]
string name [@property setter]

The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties".

properties
DBusPropertyInfo[] properties [@property getter]
DBusPropertyInfo[] properties [@property setter]

A pointer to a NULL-terminated array of pointers to gio.DBusPropertyInfo structures or NULL if there are no properties.

refCount
int refCount [@property getter]
int refCount [@property setter]

The reference count or -1 if statically allocated.

signals
DBusSignalInfo[] signals [@property getter]
DBusSignalInfo[] signals [@property setter]

A pointer to a NULL-terminated array of pointers to gio.DBusSignalInfo structures or NULL if there are no signals.

Static functions

getType
GType getType()

Variables

gDBusInterfaceInfo
GDBusInterfaceInfo* gDBusInterfaceInfo;

the main Gtk struct

Meta

Since

2.26