connection.h
Go to the documentation of this file.
Definition connection.h:49
void exit_on_disconnect(bool exit)
Set whether _exit() should be called when the connection receives a disconnect signal.
Definition connection.cpp:301
void remove_match(const char *rule, bool throw_on_error)
Removes a previously-added match rule "by value" (the most recently-added identical rule gets removed...
Definition connection.cpp:332
bool has_name(const char *name)
Asks the bus whether a certain name has an owner.
Definition connection.cpp:438
void request_name(const char *name, int flags=0)
Definition connection.cpp:399
Message send_blocking(Message &msg, int timeout=-1)
Sends a message and blocks a certain time period while waiting for a reply.
Definition connection.cpp:369
bool start_service(const char *name, unsigned long flags)
Starts a service that will request ownership of the given name.
Definition connection.cpp:454
void remove_filter(MessageSlot &s)
Removes a previously-added message filter.
Definition connection.cpp:358
void add_match(const char *rule)
Adds a match rule to match messages going through the message bus.
Definition connection.cpp:321
bool send(const Message &msg, unsigned int *serial=NULL)
Adds a message to the outgoing message queue.
Definition connection.cpp:364
unsigned long sender_unix_uid(const char *sender)
Definition connection.cpp:427
PendingCall send_async(Message &msg, int timeout=-1)
Queues a message to send, as with send(), but also returns a DBusPendingCall used to receive a reply ...
Definition connection.cpp:388
DXXAPILOCAL void init()
bool unique_name(const char *n)
Sets the unique name of the connection, as assigned by the message bus.
Definition connection.cpp:306
void disconnect()
Closes a private connection, so no further data can be sent or received.
Definition connection.cpp:295
Definition dispatcher.h:152
Definition message.h:159
Definition object.h:117
Definition pendingcall.h:38
Definition util.h:114
Definition util.h:226
Definition connection_p.h:42
Definition connection_p.h:45