modified: bottombar.cpp
[groove] / splayer.h
index fe3a5ec..9390c8b 100644 (file)
--- a/splayer.h
+++ b/splayer.h
@@ -7,23 +7,32 @@
 #include "streamio.h"
 #include <QProgressDialog>
 #include "grooveprogressbar.h"
+#include "playlist.h"
 
 class sPlayer : public QObject
 {
     Q_OBJECT
 public:
     explicit sPlayer(QObject *parent = 0);
-    void play(QString StreamKey, QUrl server);
+    void play(int p);
+
+    void play();
     void stop();
+    void pause();
+    void setPlaylist(playlist *playList);
     ~sPlayer();
 
 signals:
     void finishedPlaying();
     void downloadComplete();
 public slots:
-    void start();
-    void putb(qint64,qint64);
+    void start(int p);
+    void playNext();
+    void putb(int p,qint64,qint64);
     void abortDownload();
+    void back();
+private slots:
+    void markComplete();
 private:
     QNetworkAccessManager *manager;
     Phonon::AudioOutput *audioOutput;
@@ -35,5 +44,6 @@ private:
     QObject *internal;
     QTime startStreamT;
     grooveProgressBar *pd;
+    playlist *pl;
 };
 #endif // SPLAYER_H