modified: bottombar.cpp
[groove] / splayer.h
index 07224ad..9390c8b 100644 (file)
--- a/splayer.h
+++ b/splayer.h
@@ -5,22 +5,34 @@
 #include <QObject>
 #include <phonon>
 #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;
@@ -31,6 +43,7 @@ private:
     bool playing;
     QObject *internal;
     QTime startStreamT;
+    grooveProgressBar *pd;
+    playlist *pl;
 };
-
 #endif // SPLAYER_H