QDBusServer Class

The QDBusServer class provides peer-to-peer communication between processes on the same computer. More...

#include <QDBusServer>

Inherits: QObject.

Public Functions

QDBusServer(const QString & address, QObject * parent = 0)
QDBusServer(QObject * parent = 0)
virtual ~QDBusServer()
QString address() const
bool isConnected() const
QDBusError lastError() const
  • 31 public functions inherited from QObject

Signals

void newConnection(const QDBusConnection & connection)

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 9 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QDBusServer class provides peer-to-peer communication between processes on the same computer.

Member Function Documentation

QDBusServer::QDBusServer(const QString & address, QObject * parent = 0)

Constructs a QDBusServer with the given address, and the given parent.

QDBusServer::QDBusServer(QObject * parent = 0)

Constructs a QDBusServer with the given parent. The server will listen for connections in /tmp.

QDBusServer::~QDBusServer() [virtual]

Destructs a QDBusServer

QString QDBusServer::address() const

Returns the address this server is associated with.

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::newConnection(const QDBusConnection & connection) [signal]

This signal is emitted when a new client connection connection is established to the server.