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 ClassesNested 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
ConstructorsConstructorDescriptionDBusObjectSkeleton(PointerContainer pointer) DBusObjectSkeleton(Str object_path) Creates a new #GDBusObjectSkeleton.DBusObjectSkeleton(String object_path) Creates a new #GDBusObjectSkeleton. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterface(DBusInterfaceSkeleton interface_) Adds @interface_ to @object.Implements interfaceDBusObject.voidflush()This method simply calls g_dbus_interface_skeleton_flush() on all
interfaces belonging to @object.static ClassHandlerstatic intstatic longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizeConnect to signal "authorize-method".voidremoveInterface(DBusInterfaceSkeleton interface_) Removes @interface_ from @object.voidremoveInterfaceByName(Str interface_name) Removes the #GDBusInterface with @interface_name from @object.voidremoveInterfaceByName(String interface_name) Removes the #GDBusInterface with @interface_name from @object.voidsetObjectPath(Str object_path) Sets the object path for @object.voidsetObjectPath(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, 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_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_METHODcontains 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()
-