126 char *
c = q_dbus_server_get_address(
d->
server);
QDBusError lastError() const
Returns the last error that happened in this server.
void setServer(DBusServer *server, const QDBusErrorInternal &error)
QStringList serverConnectionNames
#define QT_END_NAMESPACE
This macro expands to.
void removeConnection(const QString &name)
QDBusServer(const QString &address=QLatin1String("unix:tmpdir=/tmp"), QObject *parent=0)
Constructs a QDBusServer with the given address, and the given parent.
QByteArray toUtf8() const Q_REQUIRED_RESULT
Returns a UTF-8 representation of the string as a QByteArray.
QDBusConnectionPrivate * d
The QDBusError class represents an error received from the D-Bus bus or from remote applications foun...
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
QString address() const
Returns the address this server is associated with.
static QDBusConnectionManager * instance()
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
static QString fromUtf8(const char *, int size=-1)
Returns a QString initialized with the first size bytes of the UTF-8 string str.
virtual ~QDBusServer()
Destructs a QDBusServer.
void clear()
Removes all items from the list.
const char * constData() const
Returns a pointer to the data stored in the byte array.
bool isConnected() const
Returns true if this QDBusServer object is connected.
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
The QDBusConnection class represents a connection to the D-Bus bus daemon.
void newConnection(const QDBusConnection &connection)
This signal is emitted when a new client connection connection is established to the server...
#define Q_FOREACH(variable, container)
Same as foreach(variable, container).