QDBusServer Class
The QDBusServer class provides peer-to-peer communication between processes on the same computer. 更多...
头文件: | #include <QDBusServer> |
qmake: | QT += dbus |
基类: | QObject |
公有函数
QDBusServer(const QString &address, QObject *parent = Q_NULLPTR) | |
QDBusServer(QObject *parent = Q_NULLPTR) | |
virtual | ~QDBusServer() |
QString | address() const |
bool | isAnonymousAuthenticationAllowed() const |
bool | isConnected() const |
QDBusError | lastError() const |
void | setAnonymousAuthenticationAllowed(bool value) |
- 32 个公有函数继承自 QObject
信号
void | newConnection(const QDBusConnection &connection) |
- 2 个信号继承自 QObject
其他继承的成员
- 1 个属性继承自 QObject
- 1 个公有槽函数继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
The QDBusServer class provides peer-to-peer communication between processes on the same computer.
成员函数
QDBusServer::QDBusServer(const QString &address, QObject *parent = Q_NULLPTR)
Constructs a QDBusServer with the given address, and the given parent.
QDBusServer::QDBusServer(QObject *parent = Q_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).
[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.
参见 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.
[signal]
void QDBusServer::newConnection(const QDBusConnection &connection)
This signal is emitted when a new client connection connection is established to the server.
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.