X-Git-Url: http://git.maemo.org/git/?p=groove;a=blobdiff_plain;f=playlist.h;h=7d3c215d5ab95b055477d3b34d3cc139715ee929;hp=df0eca2eebcd1ba817e42bee871c5f7319c5107c;hb=0b3634745b89622ed8779575c5367bfe43a2bc0b;hpb=21d90a736479e9eb1615db46297dca25115d5ea0;ds=sidebyside diff --git a/playlist.h b/playlist.h index df0eca2..7d3c215 100644 --- a/playlist.h +++ b/playlist.h @@ -12,12 +12,30 @@ class playlist : public QObject { Q_OBJECT public: + enum elementType + { + EStream = 1, + EFile = 2, + }; enum failType { none = 0, Aborted = 1, Other =2 }; + struct songElement + { + QString *songId; + QString *streamkey; + QUrl *server; + QBuffer *buffer; + QIODevice *data; + elementType type; + bool downloaded; + bool played; + bool bufferready; + }; + QList* getList(); explicit playlist(QObject *parent = 0); int addSong(QStandardItem *item); QList getPlaylist(); @@ -54,24 +72,9 @@ private slots: private: - enum elementType - { - EStream = 1, - EFile = 2, - }; - struct songElement - { - QString *songId; - QString *streamkey; - QUrl *server; - QBuffer *buffer; - QIODevice *data; - elementType type; - bool downloaded; - bool played; - bool bufferready; - }; + + int currentplayingitem; int currentSkeyItem; QList *pList;