Gio.DBusInterfaceInfo¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
annotations |
r/w |
A pointer to a |
|
methods |
r/w |
A pointer to a |
|
name |
r/w |
The name of the D-Bus interface, e.g. “org.freedesktop.DBus.Properties”. |
|
properties |
r/w |
A pointer to a |
|
ref_count |
r/w |
The reference count or -1 if statically allocated. |
|
signals |
r/w |
A pointer to a |
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gio.DBusInterfaceInfo¶
Information about a D-Bus interface.
New in version 2.26.
- cache_build()[source]¶
Builds a lookup-cache to speed up
Gio.DBusInterfaceInfo.lookup_method(),Gio.DBusInterfaceInfo.lookup_signal() andGio.DBusInterfaceInfo.lookup_property().If this has already been called with self, the existing cache is used and its use count is increased.
Note that self cannot be modified until
Gio.DBusInterfaceInfo.cache_release() is called.New in version 2.30.
- cache_release()[source]¶
Decrements the usage count for the cache for self built by
Gio.DBusInterfaceInfo.cache_build() (if any) and frees the resources used by the cache if the usage count drops to zero.New in version 2.30.
- generate_xml(indent, string_builder)[source]¶
- Parameters:
indent (
int) – Indentation level.string_builder (
GLib.String) – AGLib.Stringto to append XML data to.
Appends an XML representation of self (and its children) to string_builder.
This function is typically used for generating introspection XML documents at run-time for handling the
org.freedesktop.DBus.Introspectable.Introspectmethod.New in version 2.26.
- lookup_method(name)[source]¶
- Parameters:
name (
str) – A D-Bus method name (typically in CamelCase)- Returns:
A
Gio.DBusMethodInfoorNoneif not found. Do not free, it is owned by self.- Return type:
Looks up information about a method.
The cost of this function is O(n) in number of methods unless
Gio.DBusInterfaceInfo.cache_build() has been used on self.New in version 2.26.
- lookup_property(name)[source]¶
- Parameters:
name (
str) – A D-Bus property name (typically in CamelCase).- Returns:
A
Gio.DBusPropertyInfoorNoneif not found. Do not free, it is owned by self.- Return type:
Looks up information about a property.
The cost of this function is O(n) in number of properties unless
Gio.DBusInterfaceInfo.cache_build() has been used on self.New in version 2.26.
- lookup_signal(name)[source]¶
- Parameters:
name (
str) – A D-Bus signal name (typically in CamelCase)- Returns:
A
Gio.DBusSignalInfoorNoneif not found. Do not free, it is owned by self.- Return type:
Looks up information about a signal.
The cost of this function is O(n) in number of signals unless
Gio.DBusInterfaceInfo.cache_build() has been used on self.New in version 2.26.