Add QGraphicView Objects
[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
19     void play();
20     void stop();
21     void pause();
22     void setPlaylist(playlist *playList);
23     ~sPlayer();
24
25 signals:
26     void finishedPlaying();
27     void downloadComplete();
28 public slots:
29     void start(int p);
30     void playNext();
31     void putb(int p,qint64,qint64);
32     void abortDownload();
33 private slots:
34     void markComplete();
35 private:
36     QNetworkAccessManager *manager;
37     Phonon::AudioOutput *audioOutput;
38     Phonon::MediaObject *media;
39     QNetworkReply *reply;
40     QBuffer *buffer;
41     Phonon::Path *path;
42     bool playing;
43     QObject *internal;
44     QTime startStreamT;
45     grooveProgressBar *pd;
46     playlist *pl;
47 };
48 #endif // SPLAYER_H