--- a/playlist/playlistohrcv.h
+++ b/playlist/playlistohrcv.h
@@ -21,13 +21,17 @@
#include "HelperStructs/MetaData.h"
#include "playlist.h"
+#include "upqo/ohreceiver_qo.h"
+// Incomplete: we don't process the remote transportstate changes. For now,
+// can only be used for stopping in case of extreme need...
class PlaylistOHRCV : public Playlist {
Q_OBJECT
public:
- PlaylistOHRCV(const QString& fnm, QObject *parent = 0)
- : Playlist(parent), m_renderer(fnm) {
+ PlaylistOHRCV(UPnPClient::OHRCH ohrc, const QString& fnm,
+ QObject *parent = 0)
+ : Playlist(parent), m_ohrc(ohrc), m_renderer(fnm) {
}
virtual ~PlaylistOHRCV() {
@@ -45,19 +49,21 @@
signals:
void sig_track_metadata(const MetaData&);
+
public slots:
void psl_change_track_impl(int) {}
void psl_clear_playlist_impl() {}
- void psl_play() {}
+ void psl_play() {m_ohrc->play();}
void psl_pause() {}
- void psl_stop() {}
+ void psl_stop() {m_ohrc->stop();}
void psl_forward() {}
void psl_backward() {}
void psl_remove_rows(const QList<int>&, bool = true) {}
void psl_insert_tracks(const MetaDataList&, int) {}
void psl_seek(int) {}
private:
+ UPnPClient::OHRCH m_ohrc;
QString m_renderer;
};