Package ch.bailu.gtk.gio
Class DBusObject
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.Interface
ch.bailu.gtk.gio.DBusObject
- All Implemented Interfaces:
PointerInterface
The #GDBusObject type is the base type for D-Bus objects on both
the service side (see #GDBusObjectSkeleton) and the client side
(see #GDBusObjectProxy). It is essentially just a container of
interfaces.
the service side (see #GDBusObjectSkeleton) and the client side
(see #GDBusObjectProxy). It is essentially just a container of
interfaces.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
static int
getInterface
(Str interface_name) Gets the D-Bus interface with name @interface_name associated with
@object, if any.getInterface
(String interface_name) Gets the D-Bus interface with name @interface_name associated with
@object, if any.Gets the D-Bus interfaces associated with @object.Gets the object path for @object.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
Connect to signal "interface-added".Connect to signal "interface-removed".Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
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
-
SIGNAL_ON_INTERFACE_ADDED
- See Also:
-
SIGNAL_ON_INTERFACE_REMOVED
- See Also:
-
-
Constructor Details
-
DBusObject
-
-
Method Details
-
getClassHandler
-
getInterface
Gets the D-Bus interface with name @interface_name associated with
@object, if any.- Parameters:
interface_name
- A D-Bus interface name.- Returns:
- %NULL if not found, otherwise a #GDBusInterface that must be freed with g_object_unref().
-
getInterface
Gets the D-Bus interface with name @interface_name associated with
@object, if any.- Parameters:
interface_name
- A D-Bus interface name.- Returns:
- %NULL if not found, otherwise a #GDBusInterface that must be freed with g_object_unref().
-
getInterfaces
Gets the D-Bus interfaces associated with @object.- Returns:
- A list of #GDBusInterface instances. The returned list must be freed by g_list_free() after each element has been freed with g_object_unref().
-
getObjectPath
Gets the object path for @object.- Returns:
- A string owned by @object. Do not free.
-
onInterfaceAdded
Connect to signal "interface-added".
SeeDBusObject.OnInterfaceAdded.onInterfaceAdded(ch.bailu.gtk.gio.DBusInterface)
for signal description.
FieldSIGNAL_ON_INTERFACE_ADDED
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onInterfaceRemoved
Connect to signal "interface-removed".
SeeDBusObject.OnInterfaceRemoved.onInterfaceRemoved(ch.bailu.gtk.gio.DBusInterface)
for signal description.
FieldSIGNAL_ON_INTERFACE_REMOVED
contains original signal name and can be used as resource reference.- Parameters:
signal
- callback function (lambda).- Returns:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-