X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=splayer.h;h=6d41fd68d10628bcd6c16bd22ea2736d1b210620;hb=59ffc920954b530fd1b867f5edf9d5d910510636;hp=07224ad5dd596e17f29dfa483460926a4ef50929;hpb=2023a504eae2a6023e99f4782a501b71455cdc7d;p=groove diff --git a/splayer.h b/splayer.h index 07224ad..6d41fd6 100644 --- a/splayer.h +++ b/splayer.h @@ -5,22 +5,33 @@ #include #include #include "streamio.h" +#include +#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(); +private slots: + void markComplete(); private: QNetworkAccessManager *manager; Phonon::AudioOutput *audioOutput; @@ -31,6 +42,7 @@ private: bool playing; QObject *internal; QTime startStreamT; + grooveProgressBar *pd; + playlist *pl; }; - #endif // SPLAYER_H