QDBusServer Class
The QDBusServer class provides peer-to-peer communication between processes on the same computer. More...
| Header: | #include <QDBusServer> |
| qmake: | QT += dbus |
| Inherits: | QObject |
Public Functions
| QDBusServer(QObject *parent = nullptr) | |
| QDBusServer(const QString &address, QObject *parent = nullptr) | |
| virtual | ~QDBusServer() |
| QString | address() const |
| bool | isAnonymousAuthenticationAllowed() const |
| bool | isConnected() const |
| QDBusError | lastError() const |
| void | setAnonymousAuthenticationAllowed(bool value) |
- 30 public functions inherited from QObject
Signals
| void | newConnection(const QDBusConnection &connection) |
- 2 signals inherited from QObject
Related Non-Members
| typedef | QObjectList |
| QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
| T | qobject_cast(QObject *object) |
| T | qobject_cast(const QObject *object) |
Macros
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
| Q_CLASSINFO(Name, Value) | |
| Q_DISABLE_COPY(Class) | |
| Q_DISABLE_COPY_MOVE(Class) | |
| Q_DISABLE_MOVE(Class) | |
| Q_EMIT | |
| Q_ENUM(...) | |
| Q_ENUM_NS(...) | |
| Q_FLAG(...) | |
| Q_FLAG_NS(...) | |
| Q_GADGET | |
| Q_INTERFACES(...) | |
| Q_INVOKABLE | |
| Q_NAMESPACE | |
| Q_OBJECT | |
| Q_PROPERTY(...) | |
| Q_REVISION | |
| Q_SET_OBJECT_NAME(Object) | |
| Q_SIGNAL | |
| Q_SIGNALS | |
| Q_SLOT | |
| Q_SLOTS |
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 9 static public members inherited from QObject
- 9 protected functions inherited from QObject
Detailed Description
Member Function Documentation
QDBusServer::QDBusServer(QObject *parent = nullptr)
Constructs a QDBusServer with the given parent. The server will listen for connections in /tmp (on Unix systems) or on a TCP port bound to localhost (elsewhere).
QDBusServer::QDBusServer(const QString &address, QObject *parent = nullptr)
Constructs a QDBusServer with the given address, and the given parent.
[signal] void QDBusServer::newConnection(const QDBusConnection &connection)
This signal is emitted when a new client connection connection is established to the server.
[virtual] QDBusServer::~QDBusServer()
Destructs a QDBusServer
QString QDBusServer::address() const
Returns the address this server is associated with.
bool QDBusServer::isAnonymousAuthenticationAllowed() const
Returns true if anonymous authentication is allowed.
This function was introduced in Qt 5.3.
See also setAnonymousAuthenticationAllowed().
bool QDBusServer::isConnected() const
Returns true if this QDBusServer object is connected.
If it isn't connected, you need to call the constructor again.
QDBusError QDBusServer::lastError() const
Returns the last error that happened in this server.
This function is provided for low-level code.
void QDBusServer::setAnonymousAuthenticationAllowed(bool value)
If value is set to true, an incoming connection can proceed even if the connecting client is not authenticated as a user.
By default, this value is false.
This function was introduced in Qt 5.3.
See also isAnonymousAuthenticationAllowed().