Switch to unified view

a/playlist/playlistohrcv.h b/playlist/playlistohrcv.h
...
...
19
19
20
#include <QDebug>
20
#include <QDebug>
21
21
22
#include "HelperStructs/MetaData.h"
22
#include "HelperStructs/MetaData.h"
23
#include "playlist.h"
23
#include "playlist.h"
24
#include "upqo/ohreceiver_qo.h"
24
25
26
// Incomplete: we don't process the remote transportstate changes. For now,
27
// can only be used for stopping in case of extreme need...
25
class PlaylistOHRCV : public Playlist {
28
class PlaylistOHRCV : public Playlist {
26
    Q_OBJECT
29
    Q_OBJECT
27
30
28
public:
31
public:
29
    PlaylistOHRCV(const QString& fnm, QObject *parent = 0)
32
    PlaylistOHRCV(UPnPClient::OHRCH ohrc, const QString& fnm,
33
                  QObject *parent = 0)
30
        : Playlist(parent), m_renderer(fnm) {
34
        : Playlist(parent), m_ohrc(ohrc), m_renderer(fnm) {
31
    }
35
    }
32
36
33
    virtual ~PlaylistOHRCV() {
37
    virtual ~PlaylistOHRCV() {
34
    }
38
    }
35
39
...
...
43
        emit sig_track_metadata(md);
47
        emit sig_track_metadata(md);
44
    }
48
    }
45
49
46
signals:
50
signals:
47
    void sig_track_metadata(const MetaData&);
51
    void sig_track_metadata(const MetaData&);
52
48
public slots:
53
public slots:
49
54
50
    void psl_change_track_impl(int) {}
55
    void psl_change_track_impl(int) {}
51
    void psl_clear_playlist_impl() {}
56
    void psl_clear_playlist_impl() {}
52
    void psl_play() {}
57
    void psl_play() {m_ohrc->play();}
53
    void psl_pause() {}
58
    void psl_pause() {}
54
    void psl_stop() {}
59
    void psl_stop() {m_ohrc->stop();}
55
    void psl_forward() {}
60
    void psl_forward() {}
56
    void psl_backward() {}
61
    void psl_backward() {}
57
    void psl_remove_rows(const QList<int>&, bool = true) {}
62
    void psl_remove_rows(const QList<int>&, bool = true) {}
58
    void psl_insert_tracks(const MetaDataList&, int) {}
63
    void psl_insert_tracks(const MetaDataList&, int) {}
59
    void psl_seek(int) {}
64
    void psl_seek(int) {}
60
private:
65
private:
66
    UPnPClient::OHRCH m_ohrc;
61
    QString m_renderer;
67
    QString m_renderer;
62
};
68
};
63
69
64
#endif /* PLAYLISTOHRCV_H_ */
70
#endif /* PLAYLISTOHRCV_H_ */