diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2009-12-31 14:52:39 +0200 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2009-12-31 14:53:53 +0200 |
commit | 3ef3f8cd8d6bcb2d8c3401f7f89dca07af98adae (patch) | |
tree | 9251e77c74875ee6a4588658bcd48bdab2c915ea /src | |
parent | b95d5e2079786e8435f6afc176b3b8b80043b868 (diff) |
Added libplayback tests, which run through the the whole library.
Diffstat (limited to 'src')
-rw-r--r-- | src/libplayback-wrapper.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libplayback-wrapper.cpp b/src/libplayback-wrapper.cpp index a1cfbab..904ccb6 100644 --- a/src/libplayback-wrapper.cpp +++ b/src/libplayback-wrapper.cpp @@ -14,7 +14,13 @@ LibPlaybackWrapper::~LibPlaybackWrapper() bool LibPlaybackWrapper::initialize() { DBusError dbusError; + dbus_error_init(&dbusError); dbusConnection = dbus_bus_get(DBUS_BUS_SESSION, &dbusError); + if (dbus_error_is_set(&dbusError)) { + qDebug("D-Bus Connection Error (%s)\n", dbusError.message); + dbus_error_free(&dbusError); + return false; + } if(dbusConnection == NULL) { return false; } |