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
136 void Connection::Private::dispatch_status_stub(DBusConnection *dc, DBusDispatchStatus status, void *data)
157 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:359
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:322
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:296
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:312
bool has_name(const char *name)
Asks the bus whether a certain name has an owner.
Definition: connection.cpp:439
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:389
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:333
Definition: util.h:274
Definition: internalerror.h:39
Definition: message_p.h:40
unsigned long sender_unix_uid(const char *sender)
Definition: connection.cpp:428
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:370
bool start_service(const char *name, unsigned long flags)
Starts a service that will request ownership of the given name.
Definition: connection.cpp:455
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:365
void request_name(const char *name, int flags=0)
Definition: connection.cpp:400
void exit_on_disconnect(bool exit)
Set whether _exit() should be called when the connection receives a disconnect signal.
Definition: connection.cpp:302
Definition: error.h:81