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)
void remove_filter(MessageSlot &s)
Removes a previously-added message filter.
Definition: connection.cpp:358
Definition: connection_p.h:41
void add_match(const char *rule)
Adds a match rule to match messages going through the message bus.
Definition: connection.cpp:321
Definition: types.h:150
Definition: error.h:39
void queue_connection(Connection::Private *)
Definition: dispatcher.cpp:158
void disconnect()
Closes a private connection, so no further data can be sent or received.
Definition: connection.cpp:295
Definition: error.h:74
Definition: dispatcher_p.h:41
const char * unique_name() const
Gets the unique name of the connection as assigned by the message bus.
Definition: connection.cpp:311
bool has_name(const char *name)
Asks the bus whether a certain name has an owner.
Definition: connection.cpp:438
Private(DBusServer *)
Definition: pendingcall_p.h:40
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
bool is_signal(const char *interface, const char *member) const
Definition: message.cpp:467
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
Definition: util.h:271
Definition: internalerror.h:39
Definition: message_p.h:40
unsigned long sender_unix_uid(const char *sender)
Definition: connection.cpp:427
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
Private(DBusConnection *, Server::Private *=NULL)
Definition: connection_p.h:44
Connection(Private *)
bool send(const Message &msg, unsigned int *serial=NULL)
Adds a message to the outgoing message queue.
Definition: connection.cpp:364
void request_name(const char *name, int flags=0)
Definition: connection.cpp:399
void exit_on_disconnect(bool exit)
Set whether _exit() should be called when the connection receives a disconnect signal.
Definition: connection.cpp:301
Definition: error.h:81