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