This wraps dbus and provides everything needed to anyone who wants to use dbus (including plugins).
More...
#include <CAmDbusWrapper.h>
|
| CAmDbusWrapper (CAmSocketHandler *socketHandler, DBusBusType type=DBUS_BUS_SESSION, const std::string &prefix=DBUS_SERVICE_PREFIX, const std::string &objectPath=DBUS_SERVICE_OBJECT_PATH) |
|
virtual | ~CAmDbusWrapper () |
|
void | registerCallback (const DBusObjectPathVTable *vtable, const std::string &path, void *userdata, const std::string &prefix=DBUS_SERVICE_OBJECT_PATH) |
| registers a callback that is entered as path below the main path. More...
|
|
void | registerSignalWatch (DBusHandleMessageFunction handler, const std::string &rule, void *userdata) |
| register signal watch callback to matching rule More...
|
|
void | getDBusConnection (DBusConnection *&connection) const |
| returns the dbus connection More...
|
|
void | dbusPrepareCallback (const sh_pollHandle_t handle, void *userData) |
|
bool | dbusDispatchCallback (const sh_pollHandle_t handle, void *userData) |
|
void | dbusFireCallback (const pollfd pollfd, const sh_pollHandle_t handle, void *userData) |
|
bool | dbusCheckCallback (const sh_pollHandle_t handle, void *userData) |
|
void | dbusTimerCallback (sh_timerHandle_t handle, void *userData) |
|
|
static dbus_bool_t | addWatch (DBusWatch *watch, void *userData) |
|
static void | removeWatch (DBusWatch *watch, void *userData) |
|
static void | toogleWatch (DBusWatch *watch, void *userData) |
|
static dbus_bool_t | addTimeout (DBusTimeout *timeout, void *userData) |
|
static void | removeTimeout (DBusTimeout *timeout, void *userData) |
|
static void | toggleTimeout (DBusTimeout *timeout, void *userData) |
|
This wraps dbus and provides everything needed to anyone who wants to use dbus (including plugins).
Works on the basis of CAmSocketHandler
Definition at line 37 of file CAmDbusWrapper.h.
am::CAmDbusWrapper::CAmDbusWrapper |
( |
CAmSocketHandler * |
socketHandler, |
|
|
DBusBusType |
type = DBUS_BUS_SESSION , |
|
|
const std::string & |
prefix = DBUS_SERVICE_PREFIX , |
|
|
const std::string & |
objectPath = DBUS_SERVICE_OBJECT_PATH |
|
) |
| |
am::CAmDbusWrapper::~CAmDbusWrapper |
( |
| ) |
|
|
virtual |
dbus_bool_t am::CAmDbusWrapper::addTimeout |
( |
DBusTimeout * |
timeout, |
|
|
void * |
userData |
|
) |
| |
|
static |
dbus_bool_t am::CAmDbusWrapper::addWatch |
( |
DBusWatch * |
watch, |
|
|
void * |
userData |
|
) |
| |
|
static |
bool am::CAmDbusWrapper::dbusCheckCallback |
( |
const sh_pollHandle_t |
handle, |
|
|
void * |
userData |
|
) |
| |
bool am::CAmDbusWrapper::dbusDispatchCallback |
( |
const sh_pollHandle_t |
handle, |
|
|
void * |
userData |
|
) |
| |
void am::CAmDbusWrapper::dbusFireCallback |
( |
const pollfd |
pollfd, |
|
|
const sh_pollHandle_t |
handle, |
|
|
void * |
userData |
|
) |
| |
void am::CAmDbusWrapper::dbusPrepareCallback |
( |
const sh_pollHandle_t |
handle, |
|
|
void * |
userData |
|
) |
| |
void am::CAmDbusWrapper::dbusTimerCallback |
( |
sh_timerHandle_t |
handle, |
|
|
void * |
userData |
|
) |
| |
void am::CAmDbusWrapper::getDBusConnection |
( |
DBusConnection *& |
connection | ) |
const |
returns the dbus connection
- Parameters
-
connection | pointer to the connection |
Definition at line 268 of file CAmDbusWrapper.cpp.
void am::CAmDbusWrapper::registerCallback |
( |
const DBusObjectPathVTable * |
vtable, |
|
|
const std::string & |
path, |
|
|
void * |
userdata, |
|
|
const std::string & |
prefix = DBUS_SERVICE_OBJECT_PATH |
|
) |
| |
registers a callback that is entered as path below the main path.
The configuration of the mainpath is done via DBusConfiguration.h
- Parameters
-
vtable | the vtable that holds a pointer to the callback that is called when the path is called from the dbus |
path | the name of the path |
userdata | pointer to the class that will handle the callback |
prefix | before the path which is optional |
Definition at line 173 of file CAmDbusWrapper.cpp.
void am::CAmDbusWrapper::registerSignalWatch |
( |
DBusHandleMessageFunction |
handler, |
|
|
const std::string & |
rule, |
|
|
void * |
userdata |
|
) |
| |
register signal watch callback to matching rule
- Parameters
-
handler | pointer to the callback function |
rule | signal watch rule like "type='signal',interface='org.genivi.audiomanager.something'" |
userdata | userdata |
Definition at line 194 of file CAmDbusWrapper.cpp.
void am::CAmDbusWrapper::removeTimeout |
( |
DBusTimeout * |
timeout, |
|
|
void * |
userData |
|
) |
| |
|
static |
void am::CAmDbusWrapper::removeWatch |
( |
DBusWatch * |
watch, |
|
|
void * |
userData |
|
) |
| |
|
static |
void am::CAmDbusWrapper::toggleTimeout |
( |
DBusTimeout * |
timeout, |
|
|
void * |
userData |
|
) |
| |
|
static |
void am::CAmDbusWrapper::toogleWatch |
( |
DBusWatch * |
watch, |
|
|
void * |
userData |
|
) |
| |
|
static |
The documentation for this class was generated from the following files: