Package ch.bailu.gtk.gio
Class DBusObjectSkeleton
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.gio.DBusObjectSkeleton
- All Implemented Interfaces:
PointerInterface
A #GDBusObjectSkeleton instance is essentially a group of D-Bus
interfaces. The set of exported interfaces on the object may be
dynamic and change at runtime.
This type is intended to be used with #GDBusObjectManager.
interfaces. The set of exported interfaces on the object may be
dynamic and change at runtime.
This type is intended to be used with #GDBusObjectManager.
-
Nested Class Summary
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
ConstructorDescriptionDBusObjectSkeleton
(PointerContainer pointer) DBusObjectSkeleton
(Str object_path) Creates a new #GDBusObjectSkeleton.DBusObjectSkeleton
(String object_path) Creates a new #GDBusObjectSkeleton. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInterface
(DBusInterfaceSkeleton interface_) Adds @interface_ to @object.Implements interfaceDBusObject
.void
flush()
This method simply calls g_dbus_interface_skeleton_flush() on all
interfaces belonging to @object.static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
Connect to signal "authorize-method".void
removeInterface
(DBusInterfaceSkeleton interface_) Removes @interface_ from @object.void
removeInterfaceByName
(Str interface_name) Removes the #GDBusInterface with @interface_name from @object.void
removeInterfaceByName
(String interface_name) Removes the #GDBusInterface with @interface_name from @object.void
setObjectPath
(Str object_path) Sets the object path for @object.void
setObjectPath
(String object_path) Sets the object path for @object.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_AUTHORIZE_METHOD
- See Also:
-
-
Constructor Details
-
DBusObjectSkeleton
-
DBusObjectSkeleton
Creates a new #GDBusObjectSkeleton.- Parameters:
object_path
- An object path.
-
DBusObjectSkeleton
Creates a new #GDBusObjectSkeleton.- Parameters:
object_path
- An object path.
-
-
Method Details
-
getClassHandler
-
addInterface
Adds @interface_ to @object.
If @object already contains a #GDBusInterfaceSkeleton with the same
interface name, it is removed before @interface_ is added.
Note that @object takes its own reference on @interface_ and holds
it until removed.- Parameters:
interface_
- A #GDBusInterfaceSkeleton.
-
flush
public void flush()This method simply calls g_dbus_interface_skeleton_flush() on all
interfaces belonging to @object. See that method for when flushing
is useful. -
removeInterface
Removes @interface_ from @object.- Parameters:
interface_
- A #GDBusInterfaceSkeleton.
-
removeInterfaceByName
Removes the #GDBusInterface with @interface_name from @object.
If no D-Bus interface of the given interface exists, this function
does nothing.- Parameters:
interface_name
- A D-Bus interface name.
-
removeInterfaceByName
Removes the #GDBusInterface with @interface_name from @object.
If no D-Bus interface of the given interface exists, this function
does nothing.- Parameters:
interface_name
- A D-Bus interface name.
-
setObjectPath
Sets the object path for @object.- Parameters:
object_path
- A valid D-Bus object path.
-
setObjectPath
Sets the object path for @object.- Parameters:
object_path
- A valid D-Bus object path.
-
onAuthorizeMethod
Connect to signal "authorize-method".
SeeDBusObjectSkeleton.OnAuthorizeMethod.onAuthorizeMethod(ch.bailu.gtk.gio.DBusInterfaceSkeleton, ch.bailu.gtk.gio.DBusMethodInvocation)
for signal description.
FieldSIGNAL_ON_AUTHORIZE_METHOD
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.
-
asDBusObject
Implements interfaceDBusObject
. Call this to get access to interface functions.- Returns:
DBusObject
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-