#include <QMainWindow>
#include <QTimer>
+#include <QtNetwork>
+#include <QtXml>
+#include "vlcplaylistelementsimple.h"
+
+#ifndef LIST_ITEM_TYPE_OFFSET
+#define LIST_ITEM_TYPE_OFFSET 1000
+#endif
namespace Ui {
class PlayListMainWindow;
public:
explicit PlayListMainWindow(QWidget *parent = 0);
~PlayListMainWindow();
+ void init();
+public slots:
+ void onClear();
+ void onShuffle();
+ void onLoop();
+ void onPlay();
+ void onRepeat();
+ void onRemove();
+ void requestPlayList();
+ void onListSelectionChanged();
+ void finished(QNetworkReply * reply);
+ void readReady();
+ void showPlayList();
+
+protected slots:
+ void parseXmlPlayList();
+ void updateList();
protected:
void changeEvent(QEvent *e);
+ VlcPlayListElementSimple getElementFromText(QString text);
private:
Ui::PlayListMainWindow *ui;
QTimer * mTimer;
+ QString mIp;
+ QNetworkAccessManager * mNetManager;
+ QList<VlcPlayListElementSimple>* mContents;
+ VlcPlayListElementSimple mCurrentElement;
+ int mCurrentVlcIndex;
+ int mCurrentDepth;
+ QByteArray mResponse;
};
#endif // PLAYLISTMAINWINDOW_H