connection.cpp
Go to the documentation of this file.
92 dbus_connection_add_filter(conn, message_filter_stub, &disconn_filter, NULL); // TODO: some assert at least
135 void Connection::Private::dispatch_status_stub(DBusConnection *dc, DBusDispatchStatus status, void *data)
156 DBusHandlerResult Connection::Private::message_filter_stub(DBusConnection *conn, DBusMessage *dmsg, void *data)
376 reply = dbus_connection_send_with_reply_and_block(_pvt->conn, msg._pvt->msg, this->_timeout, e);
bool connected() const
Gets whether the connection is currently open.
Definition: connection.cpp:290
Definition: internalerror.h:39
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
Definition: connection_p.h:41
Private(DBusServer *)
void add_match(const char *rule)
Adds a match rule to match messages going through the message bus.
Definition: connection.cpp:321
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
Definition: error.h:81
Definition: types.h:150
bool operator==(const Connection &) const
Definition: connection.cpp:274
bool send(const Message &msg, unsigned int *serial=NULL)
Adds a message to the outgoing message queue.
Definition: connection.cpp:364
void queue_connection(Connection::Private *)
Definition: dispatcher.cpp:158
void remove_filter(MessageSlot &s)
Removes a previously-added message filter.
Definition: connection.cpp:358
Private(DBusConnection *, Server::Private *=NULL)
Definition: pendingcall_p.h:40
Definition: error.h:39
Definition: message_p.h:40
Definition: dispatcher_p.h:41
Connection(Private *)
bool is_signal(const char *interface, const char *member) const
Definition: message.cpp:467
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
Definition: util.h:274
unsigned long sender_unix_uid(const char *sender)
Definition: connection.cpp:427
const char * unique_name() const
Gets the unique name of the connection as assigned by the message bus.
Definition: connection.cpp:311
Definition: error.h:74
bool start_service(const char *name, unsigned long flags)
Starts a service that will request ownership of the given name.
Definition: connection.cpp:454
Definition: connection_p.h:44
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
const std::vector< std::string > & names()
void disconnect()
Closes a private connection, so no further data can be sent or received.
Definition: connection.cpp:295
void exit_on_disconnect(bool exit)
Set whether _exit() should be called when the connection receives a disconnect signal.
Definition: connection.cpp:301