- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Represents a connection to the D-Bus bus daemon
Java wrapper for Qt class QDBusConnection
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQDBusConnection::BusType
static final class
QFlags
type for enumQDBusConnection.ConnectionCapability
static enum
Java wrapper for Qt enumQDBusConnection::ConnectionCapability
static enum
Java wrapper for Qt enumQDBusConnection::RegisterOption
static final class
QFlags
type for enumQDBusConnection.RegisterOption
static enum
Java wrapper for Qt enumQDBusConnection::UnregisterMode
static enum
Java wrapper for Qt enumQDBusConnection::VirtualObjectRegisterOption
static final class
QFlags
type for enumQDBusConnection.VirtualObjectRegisterOption
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QDBusConnection other) final QDBusPendingCall
asyncCall
(QDBusMessage message) Overloaded function forasyncCall(io.qt.dbus.QDBusMessage, int)
withtimeout = -1
.final QDBusPendingCall
asyncCall
(QDBusMessage message, int timeout) final String
final QDBusMessage
call
(QDBusMessage message) Overloaded function forcall(io.qt.dbus.QDBusMessage, io.qt.dbus.QDBus.CallMode, int)
final QDBusMessage
call
(QDBusMessage message, QDBus.CallMode mode) Overloaded function forcall(io.qt.dbus.QDBusMessage, io.qt.dbus.QDBus.CallMode, int)
withtimeout = -1
.final QDBusMessage
call
(QDBusMessage message, QDBus.CallMode mode, int timeout) final boolean
callWithCallback
(QDBusMessage message, QObject receiver, String slot) Overloaded function forcallWithCallback(io.qt.dbus.QDBusMessage, io.qt.core.QObject, java.lang.String, int)
withtimeout = -1
.final boolean
callWithCallback
(QDBusMessage message, QObject receiver, String slot, int timeout) final boolean
callWithCallback
(QDBusMessage message, QObject receiver, String returnMethod, String errorMethod) Overloaded function forcallWithCallback(io.qt.dbus.QDBusMessage, io.qt.core.QObject, java.lang.String, java.lang.String, int)
withtimeout = -1
.final boolean
callWithCallback
(QDBusMessage message, QObject receiver, String returnMethod, String errorMethod, int timeout) clone()
Creates and returns a copy of this object.final boolean
connect
(String service, String path, String arg__interface, String name, QObject receiver, String slot) final boolean
connect
(String service, String path, String arg__interface, String name, String signature, QObject receiver, String slot) final boolean
connect
(String service, String path, String arg__interface, String name, Collection<String> argumentMatch, String signature, QObject receiver, String slot) final QDBusConnectionInterface
static QDBusConnection
connectToBus
(QDBusConnection.BusType type, String name) static QDBusConnection
connectToBus
(String address, String name) static QDBusConnection
connectToPeer
(String address, String name) final boolean
disconnect
(String service, String path, String arg__interface, String name, QObject receiver, String slot) final boolean
disconnect
(String service, String path, String arg__interface, String name, String signature, QObject receiver, String slot) final boolean
disconnect
(String service, String path, String arg__interface, String name, Collection<String> argumentMatch, String signature, QObject receiver, String slot) static void
disconnectFromBus
(String name) static void
disconnectFromPeer
(String name) final boolean
final QDBusError
static QByteArray
final String
name()
final QObject
objectRegisteredAt
(String path) final boolean
registerObject
(String path, QObject object) Overloaded function forregisterObject(java.lang.String, io.qt.core.QObject, io.qt.dbus.QDBusConnection.RegisterOptions)
withoptions = new io.qt.dbus.QDBusConnection.RegisterOptions(1)
.final boolean
registerObject
(String path, QObject object, QDBusConnection.RegisterOption ... options) Overloaded function forregisterObject(java.lang.String, io.qt.core.QObject, io.qt.dbus.QDBusConnection.RegisterOptions)
.final boolean
registerObject
(String path, QObject object, QDBusConnection.RegisterOptions options) final boolean
registerObject
(String path, String arg__interface, QObject object) Overloaded function forregisterObject(java.lang.String, java.lang.String, io.qt.core.QObject, io.qt.dbus.QDBusConnection.RegisterOptions)
withoptions = new io.qt.dbus.QDBusConnection.RegisterOptions(1)
.final boolean
registerObject
(String path, String arg__interface, QObject object, QDBusConnection.RegisterOption ... options) final boolean
registerObject
(String path, String arg__interface, QObject object, QDBusConnection.RegisterOptions options) final boolean
registerService
(String serviceName) final boolean
send
(QDBusMessage message) static QDBusConnection
final void
swap
(QDBusConnection other) static QDBusConnection
final void
unregisterObject
(String path) Overloaded function forunregisterObject(java.lang.String, io.qt.dbus.QDBusConnection.UnregisterMode)
withmode = io.qt.dbus.QDBusConnection.UnregisterMode.UnregisterNode
.final void
unregisterObject
(String path, QDBusConnection.UnregisterMode mode) final boolean
unregisterService
(String serviceName) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QDBusConnection
- Parameters:
other
-
-
QDBusConnection
- Parameters:
name
-
-
-
Method Details
-
asyncCall
- Parameters:
message
-timeout
-- Returns:
-
baseService
- Returns:
-
call
@QtUninvokable public final QDBusMessage call(QDBusMessage message, QDBus.CallMode mode, int timeout) - Parameters:
message
-mode
-timeout
-- Returns:
-
callWithCallback
@QtUninvokable public final boolean callWithCallback(QDBusMessage message, QObject receiver, String returnMethod, String errorMethod, int timeout) - Parameters:
message
-receiver
-returnMethod
-errorMethod
-timeout
-- Returns:
-
callWithCallback
@QtUninvokable public final boolean callWithCallback(QDBusMessage message, QObject receiver, String slot, int timeout) - Parameters:
message
-receiver
-slot
-timeout
-- Returns:
-
connect
@QtUninvokable public final boolean connect(String service, String path, String arg__interface, String name, QObject receiver, String slot) - Parameters:
service
-path
-arg__interface
-name
-receiver
-slot
-- Returns:
-
connect
@QtUninvokable public final boolean connect(String service, String path, String arg__interface, String name, String signature, QObject receiver, String slot) - Parameters:
service
-path
-arg__interface
-name
-signature
-receiver
-slot
-- Returns:
-
connect
@QtUninvokable public final boolean connect(String service, String path, String arg__interface, String name, Collection<String> argumentMatch, String signature, QObject receiver, String slot) See
QDBusConnection::
connect(QString, QString, QString, QString, QStringList, QString, QObject*, const char*) - Parameters:
service
-path
-arg__interface
-name
-argumentMatch
-signature
-receiver
-slot
-- Returns:
-
connectionCapabilities
- Returns:
-
disconnect
@QtUninvokable public final boolean disconnect(String service, String path, String arg__interface, String name, QObject receiver, String slot) - Parameters:
service
-path
-arg__interface
-name
-receiver
-slot
-- Returns:
-
disconnect
@QtUninvokable public final boolean disconnect(String service, String path, String arg__interface, String name, String signature, QObject receiver, String slot) - Parameters:
service
-path
-arg__interface
-name
-signature
-receiver
-slot
-- Returns:
-
disconnect
@QtUninvokable public final boolean disconnect(String service, String path, String arg__interface, String name, Collection<String> argumentMatch, String signature, QObject receiver, String slot) - Parameters:
service
-path
-arg__interface
-name
-argumentMatch
-signature
-receiver
-slot
-- Returns:
-
connectionInterface
- Returns:
-
isConnected
- Returns:
-
lastError
- Returns:
-
name
- Returns:
-
objectRegisteredAt
- Parameters:
path
-- Returns:
-
assign
- Parameters:
other
-
-
registerObject
@QtUninvokable public final boolean registerObject(String path, QObject object, QDBusConnection.RegisterOptions options) - Parameters:
path
-object
-options
-- Returns:
-
registerObject
@QtUninvokable public final boolean registerObject(String path, String arg__interface, QObject object, QDBusConnection.RegisterOptions options) - Parameters:
path
-arg__interface
-object
-options
-- Returns:
-
registerService
- Parameters:
serviceName
-- Returns:
-
send
- Parameters:
message
-- Returns:
-
swap
- Parameters:
other
-
-
unregisterObject
- Parameters:
path
-mode
-
-
unregisterService
- Parameters:
serviceName
-- Returns:
-
connectToBus
- Parameters:
type
-name
-- Returns:
-
connectToBus
- Parameters:
address
-name
-- Returns:
-
connectToPeer
- Parameters:
address
-name
-- Returns:
-
disconnectFromBus
- Parameters:
name
-
-
disconnectFromPeer
- Parameters:
name
-
-
localMachineId
- Returns:
-
sessionBus
- Returns:
-
systemBus
- Returns:
-
clone
Creates and returns a copy of this object.
-
asyncCall
Overloaded function for
asyncCall(io.qt.dbus.QDBusMessage, int)
withtimeout = -1
. -
call
Overloaded function for
call(io.qt.dbus.QDBusMessage, io.qt.dbus.QDBus.CallMode, int)
withtimeout = -1
. -
call
Overloaded function for
call(io.qt.dbus.QDBusMessage, io.qt.dbus.QDBus.CallMode, int)
with:
mode = io.qt.dbus.QDBus.CallMode.Block
timeout = -1
-
callWithCallback
@QtUninvokable public final boolean callWithCallback(QDBusMessage message, QObject receiver, String returnMethod, String errorMethod) Overloaded function for
callWithCallback(io.qt.dbus.QDBusMessage, io.qt.core.QObject, java.lang.String, java.lang.String, int)
withtimeout = -1
. -
callWithCallback
@QtUninvokable public final boolean callWithCallback(QDBusMessage message, QObject receiver, String slot) Overloaded function for
callWithCallback(io.qt.dbus.QDBusMessage, io.qt.core.QObject, java.lang.String, int)
withtimeout = -1
. -
registerObject
Overloaded function for
registerObject(java.lang.String, io.qt.core.QObject, io.qt.dbus.QDBusConnection.RegisterOptions)
withoptions = new io.qt.dbus.QDBusConnection.RegisterOptions(1)
. -
registerObject
@QtUninvokable public final boolean registerObject(String path, QObject object, QDBusConnection.RegisterOption ... options) Overloaded function for
registerObject(java.lang.String, io.qt.core.QObject, io.qt.dbus.QDBusConnection.RegisterOptions)
. -
registerObject
@QtUninvokable public final boolean registerObject(String path, String arg__interface, QObject object) Overloaded function for
registerObject(java.lang.String, java.lang.String, io.qt.core.QObject, io.qt.dbus.QDBusConnection.RegisterOptions)
withoptions = new io.qt.dbus.QDBusConnection.RegisterOptions(1)
. -
registerObject
@QtUninvokable public final boolean registerObject(String path, String arg__interface, QObject object, QDBusConnection.RegisterOption ... options) -
unregisterObject
Overloaded function for
unregisterObject(java.lang.String, io.qt.dbus.QDBusConnection.UnregisterMode)
withmode = io.qt.dbus.QDBusConnection.UnregisterMode.UnregisterNode
.
-