|
Public Member Functions |
| DBus_Server () |
| ~DBus_Server () |
Static Public Member Functions |
static DBusConnection * | openSystemConnection () |
| Opens a new connection to the system bus, tries to register the service and returns a filedescriptor to watch for.
|
static int | emitSignal (const char *signal, const char *value) |
| emits a signal over the system bus
|
static bool | sendMethodCall (const char *interface, const char *path, const char *object, const char *method) |
| send a method call over the bus
|
static bool | serviceHasOwner (const std::string &service) |
| check if a service is registered on the bus
|
static gboolean | dbus_reconnect () |
| tries to reconnect to the dbus service
|
Static Public Attributes |
static DBusConnection * | _connection = NULL |
Static Private Member Functions |
static DBusHandlerResult | filter_function (DBusConnection *conn, DBusMessage *msg, void *data) |
| checking of interfaces is done here in filter function checking for the right member, message contents, etc. must be done in pm->handleDBusRequest(..) Create the Message here, we must send a reply (sendReply(), there the memory for the reply will be freed again.
|
static void | sendReply (DBusMessage *reply, int error_id) |