Package ch.bailu.gtk.gio
Class DBusInterfaceInfo
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gio.DBusInterfaceInfo
- All Implemented Interfaces:
PointerInterface
Information about a D-Bus interface.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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().void
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.void
generateXml
(int indent, GString string_builder) Appends an XML representation of @info (and its children) to @string_builder.static ClassHandler
The name of the D-Bus interface, e.g.int
The reference count or -1 if statically allocated.static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
lookupMethod
(Str name) Looks up information about a method.lookupMethod
(String name) Looks up information about a method.lookupProperty
(Str name) Looks up information about a property.lookupProperty
(String name) Looks up information about a property.lookupSignal
(Str name) Looks up information about a signal.lookupSignal
(String name) Looks up information about a signal.ref()
If @info is statically allocated does nothing.void
setFieldName
(Str name) The name of the D-Bus interface, e.g.void
setFieldRefCount
(int ref_count) The reference count or -1 if statically allocated.void
unref()
If @info is statically allocated, does nothing.Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
REF_COUNT
The reference count or -1 if statically allocated.- See Also:
-
NAME
The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties".- See Also:
-
-
Constructor Details
-
DBusInterfaceInfo
-
-
Method Details
-
getClassHandler
-
setFieldRefCount
public void setFieldRefCount(int ref_count) The reference count or -1 if statically allocated. -
getFieldRefCount
public int getFieldRefCount()The reference count or -1 if statically allocated. -
setFieldName
The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties". -
getFieldName
The name of the D-Bus interface, e.g. "org.freedesktop.DBus.Properties". -
cacheBuild
public 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().
If this has already been called with @info, the existing cache is
used and its use count is increased.
Note that @info cannot be modified until
g_dbus_interface_info_cache_release() is called. -
cacheRelease
public 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. -
generateXml
Appends an XML representation of @info (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.Introspect`
method.- Parameters:
indent
- Indentation level.string_builder
- A #GString to to append XML data to.
-
lookupMethod
Looks up information about a method.
The cost of this function is O(n) in number of methods unless
g_dbus_interface_info_cache_build() has been used on @info.- Parameters:
name
- A D-Bus method name (typically in CamelCase)- Returns:
- A #GDBusMethodInfo or %NULL if not found. Do not free, it is owned by @info.
-
lookupMethod
Looks up information about a method.
The cost of this function is O(n) in number of methods unless
g_dbus_interface_info_cache_build() has been used on @info.- Parameters:
name
- A D-Bus method name (typically in CamelCase)- Returns:
- A #GDBusMethodInfo or %NULL if not found. Do not free, it is owned by @info.
-
lookupProperty
Looks up information about a property.
The cost of this function is O(n) in number of properties unless
g_dbus_interface_info_cache_build() has been used on @info.- Parameters:
name
- A D-Bus property name (typically in CamelCase).- Returns:
- A #GDBusPropertyInfo or %NULL if not found. Do not free, it is owned by @info.
-
lookupProperty
Looks up information about a property.
The cost of this function is O(n) in number of properties unless
g_dbus_interface_info_cache_build() has been used on @info.- Parameters:
name
- A D-Bus property name (typically in CamelCase).- Returns:
- A #GDBusPropertyInfo or %NULL if not found. Do not free, it is owned by @info.
-
lookupSignal
Looks up information about a signal.
The cost of this function is O(n) in number of signals unless
g_dbus_interface_info_cache_build() has been used on @info.- Parameters:
name
- A D-Bus signal name (typically in CamelCase)- Returns:
- A #GDBusSignalInfo or %NULL if not found. Do not free, it is owned by @info.
-
lookupSignal
Looks up information about a signal.
The cost of this function is O(n) in number of signals unless
g_dbus_interface_info_cache_build() has been used on @info.- Parameters:
name
- A D-Bus signal name (typically in CamelCase)- Returns:
- A #GDBusSignalInfo or %NULL if not found. Do not free, it is owned by @info.
-
ref
If @info is statically allocated does nothing. Otherwise increases
the reference count.- Returns:
- The same @info.
-
unref
public 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. -
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-