Add (better) portrait mode support. This commit will temporarily break
[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
11 class sPlayer : public QObject
12 {
13     Q_OBJECT
14 public:
15     explicit sPlayer(QObject *parent = 0);
16     void play(QString StreamKey, QUrl server);
17     void play(QString StreamKey, QUrl server,QMaemo5Rotator::Orientation orientation);
18     void stop();
19     ~sPlayer();
20
21 signals:
22     void finishedPlaying();
23     void downloadComplete();
24 public slots:
25     void start();
26     void putb(qint64,qint64);
27     void abortDownload();
28 private:
29     QNetworkAccessManager *manager;
30     Phonon::AudioOutput *audioOutput;
31     Phonon::MediaObject *media;
32     QNetworkReply *reply;
33     QBuffer *buffer;
34     Phonon::Path *path;
35     bool playing;
36     QObject *internal;
37     QTime startStreamT;
38     grooveProgressBar *pd;
39 };
40 #endif // SPLAYER_H