Qt 4.8
|
The QDBusConnection class represents a connection to the D-Bus bus daemon. More...
#include <qdbusconnection.h>
Public Types | |
enum | BusType { SessionBus, SystemBus, ActivationBus } |
Specifies the type of the bus connection. More... | |
enum | ConnectionCapability { UnixFileDescriptorPassing = 0x0001 } |
This enum describes the available capabilities for a D-Bus connection. More... | |
enum | RegisterOption { ExportAdaptors = 0x01, ExportScriptableSlots = 0x10, ExportScriptableSignals = 0x20, ExportScriptableProperties = 0x40, ExportScriptableInvokables = 0x80, ExportScriptableContents = 0xf0, ExportNonScriptableSlots = 0x100, ExportNonScriptableSignals = 0x200, ExportNonScriptableProperties = 0x400, ExportNonScriptableInvokables = 0x800, ExportNonScriptableContents = 0xf00, ExportAllSlots = ExportScriptableSlots|ExportNonScriptableSlots, ExportAllSignals = ExportScriptableSignals|ExportNonScriptableSignals, ExportAllProperties = ExportScriptableProperties|ExportNonScriptableProperties, ExportAllInvokables = ExportScriptableInvokables|ExportNonScriptableInvokables, ExportAllContents = ExportScriptableContents|ExportNonScriptableContents, ExportChildObjects = 0x1000 } |
Specifies the options for registering objects with the connection. More... | |
enum | UnregisterMode { UnregisterNode, UnregisterTree } |
The mode for unregistering an object path: More... | |
enum | VirtualObjectRegisterOption { SingleNode = 0x0, SubPath = 0x1 } |
Specifies the options for registering virtual objects with the connection. More... | |
Public Functions | |
QDBusPendingCall | asyncCall (const QDBusMessage &message, int timeout=-1) const |
Sends the message over this connection and returns immediately. More... | |
QString | baseService () const |
Returns the unique connection name for this connection, if this QDBusConnection object is connected, or an empty QString otherwise. More... | |
QDBusMessage | call (const QDBusMessage &message, QDBus::CallMode mode=QDBus::Block, int timeout=-1) const |
Sends the message over this connection and blocks, waiting for a reply, for at most timeout milliseconds. More... | |
bool | callWithCallback (const QDBusMessage &message, QObject *receiver, const char *returnMethod, const char *errorMethod, int timeout=-1) const |
Sends the message over this connection and returns immediately. More... | |
bool | callWithCallback (const QDBusMessage &message, QObject *receiver, const char *slot, int timeout=-1) const |
Sends the message over this connection and returns immediately. More... | |
bool | connect (const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot) |
Connects the signal specified by the service, path, interface and name parameters to the slot slot in object receiver. More... | |
bool | connect (const QString &service, const QString &path, const QString &interface, const QString &name, const QString &signature, QObject *receiver, const char *slot) |
Connects the signal to the slot slot in object receiver. More... | |
bool | connect (const QString &service, const QString &path, const QString &interface, const QString &name, const QStringList &argumentMatch, const QString &signature, QObject *receiver, const char *slot) |
Connects the signal to the slot slot in object receiver. More... | |
ConnectionCapabilities | connectionCapabilities () const |
Returns the capabilities of this connection as negotiated with the bus server or peer. More... | |
bool | disconnect (const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot) |
Disconnects the signal specified by the service, path, interface and name parameters from the slot slot in object receiver. More... | |
bool | disconnect (const QString &service, const QString &path, const QString &interface, const QString &name, const QString &signature, QObject *receiver, const char *slot) |
Disconnects the signal specified by the service, path, interface, name, and signature parameters from the slot slot in object receiver. More... | |
bool | disconnect (const QString &service, const QString &path, const QString &interface, const QString &name, const QStringList &argumentMatch, const QString &signature, QObject *receiver, const char *slot) |
Disconnects the signal specified by the service, path, interface, name, argumentMatch, and signature parameters from the slot slot in object receiver. More... | |
QDBusConnectionInterface * | interface () const |
Returns a QDBusConnectionInterface object that represents the D-Bus server interface on this connection. More... | |
void * | internalPointer () const |
bool | isConnected () const |
Returns true if this QDBusConnection object is connected. More... | |
QDBusError | lastError () const |
Returns the last error that happened in this connection. More... | |
QString | name () const |
Returns the connection name for this connection, as given as the name parameter to connectToBus(). More... | |
QObject * | objectRegisteredAt (const QString &path) const |
Return the object that was registered with the registerObject() at the object path given by path. More... | |
QDBusConnection & | operator= (const QDBusConnection &other) |
Creates a copy of the connection other in this object. More... | |
QDBusConnection (const QString &name) | |
Creates a QDBusConnection object attached to the connection with name name. More... | |
QDBusConnection (const QDBusConnection &other) | |
Creates a copy of the other connection. More... | |
bool | registerObject (const QString &path, QObject *object, RegisterOptions options=ExportAdaptors) |
Registers the object object at path path and returns true if the registration was successful. More... | |
bool | registerService (const QString &serviceName) |
Attempts to register the serviceName on the D-Bus server and returns true if the registration succeeded. More... | |
bool | registerVirtualObject (const QString &path, QDBusVirtualObject *object, VirtualObjectRegisterOption options=SingleNode) |
Registers a QDBusTreeNode for a path. More... | |
bool | send (const QDBusMessage &message) const |
Sends the message over this connection, without waiting for a reply. More... | |
void | unregisterObject (const QString &path, UnregisterMode mode=UnregisterNode) |
Unregisters an object that was registered with the registerObject() at the object path given by path and, if mode is QDBusConnection::UnregisterTree, all of its sub-objects too. More... | |
bool | unregisterService (const QString &serviceName) |
Unregisters the service serviceName that was previously registered with registerService() and returns true if it succeeded. More... | |
~QDBusConnection () | |
Disposes of this object. More... | |
Static Public Functions | |
static QDBusConnection | connectToBus (BusType type, const QString &name) |
Opens a connection of type type to one of the known busses and associate with it the connection name name. More... | |
static QDBusConnection | connectToBus (const QString &address, const QString &name) |
Opens a connection to a private bus on address address and associate with it the connection name name. More... | |
static QDBusConnection | connectToPeer (const QString &address, const QString &name) |
Opens a peer-to-peer connection on address address and associate with it the connection name name. More... | |
static void | disconnectFromBus (const QString &name) |
Closes the bus connection of name name. More... | |
static void | disconnectFromPeer (const QString &name) |
Closes the peer connection of name name. More... | |
static QByteArray | localMachineId () |
Returns the local machine ID as known to the D-Bus system. More... | |
static QDBusConnection | sender () |
Returns the connection that sent the signal, if called in a slot activated by QDBus; otherwise it returns 0. More... | |
static QDBusConnection | sessionBus () |
Returns a QDBusConnection object opened with the session bus. More... | |
static QDBusConnection | systemBus () |
Returns a QDBusConnection object opened with the system bus. More... | |
Protected Functions | |
QDBusConnection (QDBusConnectionPrivate *dd) | |
Creates a connection object with the given dd as private object. More... | |
Properties | |
QDBusConnectionPrivate * | d |
Friends | |
class | QDBusConnectionPrivate |
The QDBusConnection class represents a connection to the D-Bus bus daemon.
This class is the initial point in a D-Bus session. Using it, you can get access to remote objects, interfaces; connect remote signals to your object's slots; register objects, etc.
D-Bus connections are created using the connectToBus() function, which opens a connection to the server daemon and does the initial handshaking, associating that connection with a name. Further attempts to connect using the same name will return the same connection.
The connection is then torn down using the disconnectFromBus() function.
Once disconnected, calling connectToBus() will not reestablish a connection, you must create a new QDBusConnection instance.
As a convenience for the two most common connection types, the sessionBus() and systemBus() functions return open connections to the session server daemon and the system server daemon, respectively. Those connections are opened when first used and are closed when the QCoreApplication destructor is run.
D-Bus also supports peer-to-peer connections, without the need for a bus server daemon. Using this facility, two applications can talk to each other and exchange messages. This can be achieved by passing an address to connectToBus() function, which was opened by another D-Bus application using QDBusServer.
Definition at line 76 of file qdbusconnection.h.
Specifies the type of the bus connection.
The valid bus types are:
On the Session Bus, one can find other applications by the same user that are sharing the same desktop session (hence the name). On the System Bus, however, processes shared for the whole system are usually found.
Enumerator | |
---|---|
SessionBus | |
SystemBus | |
ActivationBus |
Definition at line 82 of file qdbusconnection.h.
This enum describes the available capabilities for a D-Bus connection.
Enumerator | |
---|---|
UnixFileDescriptorPassing |
Definition at line 126 of file qdbusconnection.h.
Specifies the options for registering objects with the connection.
The possible values are:
Definition at line 83 of file qdbusconnection.h.
The mode for unregistering an object path:
Note, however, if this object was registered with the ExportChildObjects option, UnregisterNode will unregister the child objects too.
Enumerator | |
---|---|
UnregisterNode | |
UnregisterTree |
Definition at line 111 of file qdbusconnection.h.
Specifies the options for registering virtual objects with the connection.
The possible values are:
Enumerator | |
---|---|
SingleNode | |
SubPath |
Definition at line 117 of file qdbusconnection.h.
QDBusConnection::QDBusConnection | ( | const QString & | name | ) |
Creates a QDBusConnection object attached to the connection with name name.
This does not open the connection. You have to call connectToBus() to open it.
Definition at line 289 of file qdbusconnection.cpp.
QDBusConnection::QDBusConnection | ( | const QDBusConnection & | other | ) |
QDBusConnection::~QDBusConnection | ( | ) |
Disposes of this object.
This does not close the connection: you have to call disconnectFromBus() to do that.
Definition at line 329 of file qdbusconnection.cpp.
|
explicitprotected |
Creates a connection object with the given dd as private object.
Definition at line 318 of file qdbusconnection.cpp.
QDBusPendingCall QDBusConnection::asyncCall | ( | const QDBusMessage & | message, |
int | timeout = -1 |
||
) | const |
Sends the message over this connection and returns immediately.
If no reply is received within timeout milliseconds, an automatic error will be delivered indicating the expiration of the call. The default timeout is -1, which will be replaced with an implementation-defined value that is suitable for inter-process communications (generally, 25 seconds). This timeout is also the upper limit for waiting in QDBusPendingCall::waitForFinished().
See the QDBusInterface::asyncCall() function for a more friendly way of placing calls.
Definition at line 662 of file qdbusconnection.cpp.
QString QDBusConnection::baseService | ( | ) | const |
Returns the unique connection name for this connection, if this QDBusConnection object is connected, or an empty QString otherwise.
A Unique Connection Name is a string in the form ":x.xxx" (where x are decimal digits) that is assigned by the D-Bus server daemon upon connection. It uniquely identifies this client in the bus.
This function returns an empty QString for peer-to-peer connections.
Definition at line 1083 of file qdbusconnection.cpp.
QDBusMessage QDBusConnection::call | ( | const QDBusMessage & | message, |
QDBus::CallMode | mode = QDBus::Block , |
||
int | timeout = -1 |
||
) | const |
Sends the message over this connection and blocks, waiting for a reply, for at most timeout milliseconds.
This function is suitable for method calls only. It returns the reply message as its return value, which will be either of type QDBusMessage::ReplyMessage or QDBusMessage::ErrorMessage.
If no reply is received within timeout milliseconds, an automatic error will be delivered indicating the expiration of the call. The default timeout is -1, which will be replaced with an implementation-defined value that is suitable for inter-process communications (generally, 25 seconds).
See the QDBusInterface::call() function for a more friendly way of placing calls.
Definition at line 622 of file qdbusconnection.cpp.
Referenced by do_dbus_call(), and QDBusAbstractInterfacePrivate::property().
bool QDBusConnection::callWithCallback | ( | const QDBusMessage & | message, |
QObject * | receiver, | ||
const char * | returnMethod, | ||
const char * | errorMethod, | ||
int | timeout = -1 |
||
) | const |
Sends the message over this connection and returns immediately.
When the reply is received, the method returnMethod is called in the receiver object. If an error occurs, the method errorMethod will be called instead.
If no reply is received within timeout milliseconds, an automatic error will be delivered indicating the expiration of the call. The default timeout is -1, which will be replaced with an implementation-defined value that is suitable for inter-process communications (generally, 25 seconds).
This function is suitable for method calls only. It is guaranteed that the slot will be called exactly once with the reply, as long as the parameter types match and no error occurs.
Returns true if the message was sent, or false if the message could not be sent.
Definition at line 559 of file qdbusconnection.cpp.
bool QDBusConnection::callWithCallback | ( | const QDBusMessage & | message, |
QObject * | receiver, | ||
const char * | returnMethod, | ||
int | timeout = -1 |
||
) | const |
Sends the message over this connection and returns immediately.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
When the reply is received, the method returnMethod is called in the receiver object.
This function is suitable for method calls only. It is guaranteed that the slot will be called exactly once with the reply, as long as the parameter types match and no error occurs.
This function is dangerous because it cannot report errors, including the expiration of the timeout.
Returns true if the message was sent, or false if the message could not be sent.
Definition at line 593 of file qdbusconnection.cpp.
bool QDBusConnection::connect | ( | const QString & | service, |
const QString & | path, | ||
const QString & | interface, | ||
const QString & | name, | ||
QObject * | receiver, | ||
const char * | slot | ||
) |
Connects the signal specified by the service, path, interface and name parameters to the slot slot in object receiver.
The arguments service and path can be empty, denoting a connection to any signal of the (interface, name) pair, from any remote application.
Returns true if the connection was successful.
Definition at line 683 of file qdbusconnection.cpp.
Referenced by QOfonoManagerInterface::connectNotify(), QConnmanManagerInterface::connectNotify(), QOfonoModemInterface::connectNotify(), QConnmanProfileInterface::connectNotify(), QOfonoNetworkRegistrationInterface::connectNotify(), QOfonoNetworkOperatorInterface::connectNotify(), QConnmanServiceInterface::connectNotify(), QOfonoSimInterface::connectNotify(), QConnmanTechnologyInterface::connectNotify(), QOfonoDataConnectionManagerInterface::connectNotify(), QOfonoPrimaryDataContextInterface::connectNotify(), QOfonoSmsInterface::connectNotify(), QNetworkSessionPrivateImpl::QNetworkSessionPrivateImpl(), QIcdEngine::requestUpdate(), QNetworkManagerInterface::setConnections(), QNetworkManagerInterfaceAccessPoint::setConnections(), QNetworkManagerInterfaceDevice::setConnections(), QNetworkManagerInterfaceDeviceWired::setConnections(), QNetworkManagerInterfaceDeviceWireless::setConnections(), QNetworkManagerSettings::setConnections(), QNetworkManagerSettingsConnection::setConnections(), QNetworkManagerConnectionActive::setConnections(), and QIcdEngine::startListeningStateSignalsForAllConnections().
bool QDBusConnection::connect | ( | const QString & | service, |
const QString & | path, | ||
const QString & | interface, | ||
const QString & | name, | ||
const QString & | signature, | ||
QObject * | receiver, | ||
const char * | slot | ||
) |
Connects the signal to the slot slot in object receiver.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Unlike the previous connect() overload, this function allows one to specify the parameter signature to be connected using the signature variable. The function will then verify that this signature can be delivered to the slot specified by slot and return false otherwise.
Returns true if the connection was successful.
Definition at line 709 of file qdbusconnection.cpp.
bool QDBusConnection::connect | ( | const QString & | service, |
const QString & | path, | ||
const QString & | interface, | ||
const QString & | name, | ||
const QStringList & | argumentMatch, | ||
const QString & | signature, | ||
QObject * | receiver, | ||
const char * | slot | ||
) |
Connects the signal to the slot slot in object receiver.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Unlike the previous connect() overload, this function allows one to specify the parameter signature to be connected using the signature variable. The function will then verify that this signature can be delivered to the slot specified by slot and return false otherwise.
The argumentMatch parameter lists the string parameters to be matched, in sequential order. Note that, to match an empty string, you need to pass a QString that is empty but not null (i.e., QString("")). A null QString skips matching at that position.
Returns true if the connection was successful.
Definition at line 742 of file qdbusconnection.cpp.
QDBusConnection::ConnectionCapabilities QDBusConnection::connectionCapabilities | ( | ) | const |
Returns the capabilities of this connection as negotiated with the bus server or peer.
If this QDBusConnection is not connected, this function returns no capabilities.
Definition at line 1123 of file qdbusconnection.cpp.
|
static |
Opens a connection of type type to one of the known busses and associate with it the connection name name.
Returns a QDBusConnection object associated with that connection.
Definition at line 357 of file qdbusconnection.cpp.
Referenced by QDBusConnectionConstructor::connectToBus(), and QNetworkSessionPrivateImpl::QNetworkSessionPrivateImpl().
|
static |
Opens a connection to a private bus on address address and associate with it the connection name name.
Returns a QDBusConnection object associated with that connection.
Definition at line 403 of file qdbusconnection.cpp.
|
static |
Opens a peer-to-peer connection on address address and associate with it the connection name name.
Returns a QDBusConnection object associated with that connection.
Definition at line 449 of file qdbusconnection.cpp.
bool QDBusConnection::disconnect | ( | const QString & | service, |
const QString & | path, | ||
const QString & | interface, | ||
const QString & | name, | ||
QObject * | receiver, | ||
const char * | slot | ||
) |
Disconnects the signal specified by the service, path, interface and name parameters from the slot slot in object receiver.
The arguments must be the same as passed to the connect() function.
Returns true if the disconnection was successful.
Definition at line 781 of file qdbusconnection.cpp.
Referenced by QIcdEngine::cancelAsyncConfigurationUpdate().
bool QDBusConnection::disconnect | ( | const QString & | service, |
const QString & | path, | ||
const QString & | interface, | ||
const QString & | name, | ||
const QString & | signature, | ||
QObject * | receiver, | ||
const char * | slot | ||
) |
Disconnects the signal specified by the service, path, interface, name, and signature parameters from the slot slot in object receiver.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
The arguments must be the same as passed to the connect() function.
Returns true if the disconnection was successful.
Definition at line 800 of file qdbusconnection.cpp.
bool QDBusConnection::disconnect | ( | const QString & | service, |
const QString & | path, | ||
const QString & | interface, | ||
const QString & | name, | ||
const QStringList & | argumentMatch, | ||
const QString & | signature, | ||
QObject * | receiver, | ||
const char * | slot | ||
) |
Disconnects the signal specified by the service, path, interface, name, argumentMatch, and signature parameters from the slot slot in object receiver.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
The arguments must be the same as passed to the connect() function.
Returns true if the disconnection was successful.
Definition at line 821 of file qdbusconnection.cpp.
|
static |
Closes the bus connection of name name.
Note that if there are still QDBusConnection objects associated with the same connection, the connection will not be closed until all references are dropped. However, no further references can be created using the QDBusConnection constructor.
Definition at line 486 of file qdbusconnection.cpp.
Referenced by QDBusConnectionConstructor::disconnectFromBus(), and QNetworkSessionPrivateImpl::~QNetworkSessionPrivateImpl().
|
static |
Closes the peer connection of name name.
Note that if there are still QDBusConnection objects associated with the same connection, the connection will not be closed until all references are dropped. However, no further references can be created using the QDBusConnection constructor.
Definition at line 510 of file qdbusconnection.cpp.
QDBusConnectionInterface * QDBusConnection::interface | ( | ) | const |
Returns a QDBusConnectionInterface object that represents the D-Bus server interface on this connection.
Definition at line 1029 of file qdbusconnection.cpp.
Referenced by QScriptDBusConnection::QScriptDBusConnection().
void * QDBusConnection::internalPointer | ( | ) | const |
Returns the internal, implementation-defined pointer for this connection. Currently, this returns a DBusConnection* pointer, without changing the reference count. It is the responsibility of the caller to call dbus_connection_ref if it wants to store the pointer.
Definition at line 1046 of file qdbusconnection.cpp.
bool QDBusConnection::isConnected | ( | ) | const |
Returns true if this QDBusConnection object is connected.
Definition at line 1054 of file qdbusconnection.cpp.
Referenced by QDBusAbstractInterface::QDBusAbstractInterface(), QDBusAbstractInterfacePrivate::QDBusAbstractInterfacePrivate(), and QDBusInterfacePrivate::QDBusInterfacePrivate().
QDBusError QDBusConnection::lastError | ( | ) | const |
Returns the last error that happened in this connection.
This function is provided for low-level code. If you're using QDBusInterface::call(), error codes are reported by its return value.
Definition at line 1068 of file qdbusconnection.cpp.
Referenced by QNetworkManagerSettingsConnection::setConnections().
|
static |
Returns the local machine ID as known to the D-Bus system.
Note that the local machine ID is not guaranteed to be persistent across boots of the system, so this identifier should not be stored in persistent storage (like the filesystem). It is guaranteed to remain constant only during the lifetime of this boot session.
Definition at line 1256 of file qdbusconnection.cpp.
QString QDBusConnection::name | ( | ) | const |
Returns the connection name for this connection, as given as the name parameter to connectToBus().
The connection name can be used to uniquely identify actual underlying connections to buses. Copies made from a single connection will always implicitly share the underlying connection, and hence will have the same connection name.
Inversely, two connections having different connection names will always either be connected to different buses, or have a different unique name (as returned by baseService()) on that bus.
Definition at line 1108 of file qdbusconnection.cpp.
Referenced by QDBusServiceWatcher::setConnection().
Return the object that was registered with the registerObject() at the object path given by path.
Definition at line 990 of file qdbusconnection.cpp.
QDBusConnection & QDBusConnection::operator= | ( | const QDBusConnection & | other | ) |
Creates a copy of the connection other in this object.
Note that the connection this object referenced before the copy, is not spontaneously disconnected.
Definition at line 342 of file qdbusconnection.cpp.
bool QDBusConnection::registerObject | ( | const QString & | path, |
QObject * | object, | ||
RegisterOptions | options = ExportAdaptors |
||
) |
Registers the object object at path path and returns true if the registration was successful.
The options parameter specifies how much of the object object will be exposed through D-Bus.
This function does not replace existing objects: if there is already an object registered at path path, this function will return false. Use unregisterObject() to unregister it first.
You cannot register an object as a child object of an object that was registered with QDBusConnection::ExportChildObjects.
Definition at line 848 of file qdbusconnection.cpp.
bool QDBusConnection::registerService | ( | const QString & | serviceName | ) |
Attempts to register the serviceName on the D-Bus server and returns true if the registration succeeded.
The registration will fail if the name is already registered by another application.
Definition at line 1135 of file qdbusconnection.cpp.
bool QDBusConnection::registerVirtualObject | ( | const QString & | path, |
QDBusVirtualObject * | treeNode, | ||
VirtualObjectRegisterOption | options = SingleNode |
||
) |
Registers a QDBusTreeNode for a path.
To unregister a QDBusTreeNode use the unregisterObject() function with its path.
Definition at line 937 of file qdbusconnection.cpp.
bool QDBusConnection::send | ( | const QDBusMessage & | message | ) | const |
Sends the message over this connection, without waiting for a reply.
This is suitable for errors, signals, and return values as well as calls whose return values are not necessary.
Returns true if the message was queued successfully, false otherwise.
Definition at line 528 of file qdbusconnection.cpp.
Referenced by QDBusContext::sendErrorReply().
|
static |
Returns the connection that sent the signal, if called in a slot activated by QDBus; otherwise it returns 0.
Definition at line 1213 of file qdbusconnection.cpp.
|
static |
Returns a QDBusConnection object opened with the session bus.
The object reference returned by this function is valid until the application terminates, at which point the connection will be closed and the object deleted.
Definition at line 1189 of file qdbusconnection.cpp.
Referenced by QDBusConnectionConstructor::QDBusConnectionConstructor(), and QScriptDBusInterfaceConstructor::qscript_call().
|
static |
Returns a QDBusConnection object opened with the system bus.
The object reference returned by this function is valid until the QCoreApplication's destructor is run, when the connection will be closed and the object, deleted.
Definition at line 1194 of file qdbusconnection.cpp.
Referenced by QIcdEngine::ensureDBusConnection(), and QDBusConnectionConstructor::QDBusConnectionConstructor().
void QDBusConnection::unregisterObject | ( | const QString & | path, |
UnregisterMode | mode = UnregisterNode |
||
) |
Unregisters an object that was registered with the registerObject() at the object path given by path and, if mode is QDBusConnection::UnregisterTree, all of its sub-objects too.
Note that you cannot unregister objects that were not registered with registerObject().
Definition at line 950 of file qdbusconnection.cpp.
bool QDBusConnection::unregisterService | ( | const QString & | serviceName | ) |
Unregisters the service serviceName that was previously registered with registerService() and returns true if it succeeded.
Definition at line 1151 of file qdbusconnection.cpp.
|
friend |
Definition at line 203 of file qdbusconnection.h.
|
private |
Definition at line 204 of file qdbusconnection.h.
Referenced by QDBusConnectionPrivate::d(), operator=(), and QDBusConnection().