this will break all functionality for now
[groove] / splayer.h
1 #ifndef SPLAYER_H
2 #define SPLAYER_H
3 #include <QtNetwork>
4 //#include <parser.h>
5 #include <QObject>
6 #include <phonon>
7 #include "streamio.h"
8 #include <QProgressDialog>
9 #include "grooveprogressbar.h"
10 #include "playlist.h"
11
12 class sPlayer : public QObject
13 {
14     Q_OBJECT
15 public:
16     explicit sPlayer(QObject *parent = 0);
17     void play(int p);
18     void playNext();
19     void play();
20     void stop();
21     void setPlaylist(playlist *playList);
22     ~sPlayer();
23
24 signals:
25     void finishedPlaying();
26     void downloadComplete();
27 public slots:
28     void start(int p);
29     void putb(int p,qint64,qint64);
30     void abortDownload();
31 private slots:
32     void markComplete();
33 private:
34     QNetworkAccessManager *manager;
35     Phonon::AudioOutput *audioOutput;
36     Phonon::MediaObject *media;
37     QNetworkReply *reply;
38     QBuffer *buffer;
39     Phonon::Path *path;
40     bool playing;
41     QObject *internal;
42     QTime startStreamT;
43     grooveProgressBar *pd;
44     playlist *pl;
45 };
46 #endif // SPLAYER_H