summaryrefslogtreecommitdiff
path: root/src/libplayback-wrapper.h
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-01-05 10:48:35 +0200
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-01-05 10:48:35 +0200
commit60e514250464d6b563ab92b19bf717e57d7b6a52 (patch)
treea0878381379c51518f43f67b4ec121058a5c3427 /src/libplayback-wrapper.h
parentd84673cf92c0abddb12d9b24131b1af718c1543d (diff)
Renamed things to improive the API and implemented the mandatory State
Changed handler. Added access methods to Resource.
Diffstat (limited to 'src/libplayback-wrapper.h')
-rw-r--r--src/libplayback-wrapper.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/libplayback-wrapper.h b/src/libplayback-wrapper.h
index be86c7f..103d710 100644
--- a/src/libplayback-wrapper.h
+++ b/src/libplayback-wrapper.h
@@ -1,10 +1,10 @@
+#ifndef LIBPLAYBACKWRAPPER_H
+#define LIBPLAYBACKWRAPPER_H
+
#include "resource-library.h"
#include "resource.h"
#include <libplayback/playback.h>
-#ifndef LIBPLAYBACKWRAPPER_H
-#define LIBPLAYBACKWRAPPER_H
-
class LibPlaybackWrapper: public QObject, public ResourceLibrary
{
Q_OBJECT
@@ -13,16 +13,13 @@ private:
DBusConnection *dbusConnection;
pb_playback_t *libPlaybackHandle;
Resource *resource;
+
public:
LibPlaybackWrapper(Resource *resource);
~LibPlaybackWrapper();
bool initialize();
bool connectToServer();
+ void stateChanged(enum pb_state_e newState);
};
-void libPlaybackStateHandler(pb_playback_t *libPlaybackHandle, enum pb_state_e requestedState,
- pb_req_t* playbackRequest, void *data);
-
-inline enum pb_class_e resourceClassToLibPlaybackClass(enum ResourceClass resourceClass);
-inline quint16 resourceFlagToLibPlaybackFlags(quint16 resourceFlag);
#endif