52 : TQObject(parent, (name ? name :
"TQT_DBusProxy")),
58 TQObject* parent,
const char* name)
59 : TQObject(parent, (name ? name :
"TQT_DBusProxy")),
67 TQObject* parent,
const char* name)
68 : TQObject(parent, (name ? name :
"TQT_DBusProxy")),
209 #include "tqdbusproxy.moc" TQString service() const
Returns the peer's service name.
TQT_DBusConnection connection
int sendWithAsyncReply(const TQT_DBusMessage &message, TQObject *receiver, const char *slot) const
Sends a message over the bus, specifying a receiver object for replies.
bool send(const TQString &method, const TQValueList< TQT_DBusData > ¶ms) const
Sends a method call to the peer object.
virtual void handleAsyncReply(const TQT_DBusMessage &message)
Handles replies to asynchronous method calls.
TQT_DBusError lastError() const
Returns the last error seen by the proxy.
bool setConnection(const TQT_DBusConnection &connection)
Sets the D-Bus connection to work on.
TQString interface() const
Returns the name of the peer interface.
virtual ~TQT_DBusProxy()
Destroys the proxy instance.
bool isConnected() const
Returns whether the connection is connected to a bus.
const TQT_DBusConnection & connection() const
Returns the currently used D-Bus connection.
void asyncReply(int callID, const TQT_DBusMessage &message)
Signal emitted for received replies to asynchronous method calls.
void setInterface(const TQString &interface)
Sets the name of the peer interface.
TQString interface() const
Returns the message's interface name.
bool connect(TQObject *object, const char *slot)
Connects an object to receive D-Bus signals.
TQString path() const
Returns the peer's object path.
TQT_DBusProxy(TQObject *parent=0, const char *name=0)
Creates a proxy without binding it to a service or connection.
void setService(const TQString &service)
Sets the peer's service name.
TQString path() const
Returns the message's object path.
int sendWithAsyncReply(const TQString &method, const TQValueList< TQT_DBusData > ¶ms)
Sends a method call to the peer object but does not wait for an answer.
void setPath(const TQString &path)
Sets the peer's object path.
Class for transporting D-Bus errors.
TQT_DBusMessage sendWithReply(const TQT_DBusMessage &message, TQT_DBusError *error=0) const
Sends a message over the bus and waits for the reply.
bool disconnect(TQObject *object, const char *slot)
Disconnects a given receiver from the D-Bus signal handling.
Provides access to a specific D-Bus bus.
TQT_DBusMessage sendWithReply(const TQString &method, const TQValueList< TQT_DBusData > ¶ms, TQT_DBusError *error=0) const
Sends a method call to the peer object and waits for the reply.
static TQT_DBusMessage methodCall(const TQString &service, const TQString &path, const TQString &interface, const TQString &method)
Creates a message for sending a D-Bus method call.
int replySerialNumber() const
Returns the message's reply serial number.
A message converts and transports data over D-Bus.
void dbusSignal(const TQT_DBusMessage &message)
Signal emitted for D-Bus signals from the peer.
TQString sender() const
Returns the name of the message sender.
bool send(const TQT_DBusMessage &message) const
Sends a message over the bus.
virtual void handleDBusSignal(const TQT_DBusMessage &message)
Handles D-Bus signals received on the proxy's connection.
bool canSend() const
Returns whether the proxy can be used to send method calls.
TQT_DBusError error() const
Returns the error of an error message.