5 #include <QStandardItem>
7 #include <QNetworkReply>
9 #include <QSignalMapper>
11 class playlist : public QObject
21 explicit playlist(QObject *parent = 0);
22 int addSong(QStandardItem *item);
23 QList<QStandardItem *> getPlaylist();
24 void removeSong(int position);
25 void getSong(int position);
26 QIODevice * getBuffer(int position);
27 bool isStream(int position);
28 void markPlayed(int position);
29 void deleteSong(int position);
30 void setGscom(gscom *comm);
31 void freeMemory(int position);
33 bool setCurrentPlaying(int position);
35 int findFirstNotPlayed();
36 void beginDownload(int position);
37 bool existAt(int position);
40 void downloadProgress(int position, qint64 d, qint64 t);
41 void bufferReady(int position);
42 void sFailure(int position,failType);
43 void downloadComplete(int position);
49 void downloadSlot(qint64 d, qint64 t);
50 void networkReplyFinish();
51 void downloadDone(int position);
53 void setBufferRdy(int b);
75 int currentplayingitem;
77 QList<songElement *> *pList;
78 QSignalMapper *mapper;
80 QNetworkAccessManager *manager;
81 int currentdownloaditem;