Logo Search packages:      
Sourcecode: kdbus version File versions  Download package

QDBusProxy Class Reference

#include <qdbusproxy.h>

List of all members.


Detailed Description

Client interface to a remote service object.

QDBusProxy provides a convenience interface for working with DBus services, or more precisely, interfaces of DBus service objects.

A DBus service object is identified through the name of its host application on the bus and its path (logical location) within the host application. Such a service object can implement any number of interfaces, i.e. groups methods and signals, and can create a QDBusProxy instance for every one your application needs to work with.

See section Using DBus as a client for documentation on how to use QDBusProxy

Definition at line 228 of file qdbusproxy.h.


Signals

void asyncReply (int callID, const QDBusMessage &message)
 Signal emitted for received replies to asynchronous method calls.
void dbusSignal (const QDBusMessage &message)
 Signal emitted for DBus signals from the peer.

Public Member Functions

bool canSend () const
 Returns whether the proxy can be used to send method calls.
const QDBusConnectionconnection () const
 Returns the currently used DBus connection.
QString interface () const
 Returns the name of the peer interface.
QDBusError lastError () const
 Returns the last error seen by the proxy.
QString path () const
 Returns the peer's object path.
 QDBusProxy (const QString &service, const QString &path, const QString &interface, const QDBusConnection &connection, QObject *parent=0, const char *name=0)
 Creates a proxy for a given peer on a given connection.
 QDBusProxy (const QDBusConnection &connection, QObject *parent=0, const char *name=0)
 Creates a proxy on a given connection without binding it to a service.
 QDBusProxy (QObject *parent=0, const char *name=0)
 Creates a proxy without binding it to a service or connection.
bool send (const QString &method, const QValueList< QVariant > &params) const
 Sends a method call to the peer object.
int sendWithAsyncReply (const QString &method, const QValueList< QVariant > &params)
 Sends a method call to the peer object but does not wait for an answer.
QDBusMessage sendWithReply (const QString &method, const QValueList< QVariant > &params, QDBusError *error=0) const
 Sends a method call to the peer object and waits for the reply.
QString service () const
 Returns the peer's service name.
bool setConnection (const QDBusConnection &connection)
 Sets the DBus connection to work on.
void setInterface (const QString &interface)
 Sets the name of the peer interface.
void setPath (const QString &path)
 Sets the peer's object path.
void setService (const QString &service)
 Sets the peer's service name.
virtual ~QDBusProxy ()
 Destroys the proxy instance.

Protected Slots

virtual void handleAsyncReply (const QDBusMessage &message)
 Handles replies to asynchronous method calls.
virtual void handleDBusSignal (const QDBusMessage &message)
 Handles DBus signals received on the proxy's connection.

Private Member Functions

QDBusProxyoperator= (const QDBusProxy &)
 QDBusProxy (const QDBusProxy &)

Private Attributes

Private * d

Classes

class  Private

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index