Package ch.bailu.gtk.gio
Class DBusNodeInfo
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gio.DBusNodeInfo
- All Implemented Interfaces:
PointerInterface
Information about nodes in a remote object hierarchy.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generateXml
(int indent, GString string_builder) Appends an XML representation of @info (and its children) to @string_builder.static ClassHandler
The path of the node or %NULL if omitted.int
The reference count or -1 if statically allocated.static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
lookupInterface
(Str name) Looks up information about an interface.lookupInterface
(String name) Looks up information about an interface.static DBusNodeInfo
newForXmlDBusNodeInfo
(Str xml_data) Parses @xml_data and returns a #GDBusNodeInfo representing the data.static DBusNodeInfo
newForXmlDBusNodeInfo
(String xml_data) Parses @xml_data and returns a #GDBusNodeInfo representing the data.ref()
If @info is statically allocated does nothing.void
setFieldPath
(Str path) The path of the node or %NULL if omitted.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:
-
PATH
The path of the node or %NULL if omitted. Note that this may be a relative path. See the D-Bus specification for more details.- See Also:
-
-
Constructor Details
-
DBusNodeInfo
-
-
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. -
setFieldPath
The path of the node or %NULL if omitted. Note that this may be a relative path. See the D-Bus specification for more details. -
getFieldPath
The path of the node or %NULL if omitted. Note that this may be a relative path. See the D-Bus specification for more details. -
newForXmlDBusNodeInfo
Parses @xml_data and returns a #GDBusNodeInfo representing the data.
The introspection XML must contain exactly one top-level
<node> element.
Note that this routine is using a
[GMarkup][glib-Simple-XML-Subset-Parser.description]-based
parser that only accepts a subset of valid XML documents.- Parameters:
xml_data
- Valid D-Bus introspection XML.- Returns:
- A #GDBusNodeInfo structure or %NULL if @error is set. Free with g_dbus_node_info_unref().
- Throws:
AllocationError
-
newForXmlDBusNodeInfo
Parses @xml_data and returns a #GDBusNodeInfo representing the data.
The introspection XML must contain exactly one top-level
<node> element.
Note that this routine is using a
[GMarkup][glib-Simple-XML-Subset-Parser.description]-based
parser that only accepts a subset of valid XML documents.- Parameters:
xml_data
- Valid D-Bus introspection XML.- Returns:
- A #GDBusNodeInfo structure or %NULL if @error is set. Free with g_dbus_node_info_unref().
- Throws:
AllocationError
-
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.
-
lookupInterface
Looks up information about an interface.
The cost of this function is O(n) in number of interfaces.- Parameters:
name
- A D-Bus interface name.- Returns:
- A #GDBusInterfaceInfo or %NULL if not found. Do not free, it is owned by @info.
-
lookupInterface
Looks up information about an interface.
The cost of this function is O(n) in number of interfaces.- Parameters:
name
- A D-Bus interface name.- Returns:
- A #GDBusInterfaceInfo 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()
-