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
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceNested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Field Summary
FieldsFields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerstatic intgetInterface(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 longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizeConnect 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, weakUnrefMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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_ADDEDcontains 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_REMOVEDcontains 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()
-