21 #ifndef PLAYLISTDOWNLOADER_H
22 #define PLAYLISTDOWNLOADER_H
27 #include "playlistmodel.h"
28 #include "qmmpui_export.h"
30 class QNetworkAccessManager;
51 void finished(
bool ok,
const QString &message = QString());
62 void onDownloadProgress(qint64 bytesReceived, qint64 bytesTotal);
63 void readResponse(QNetworkReply *reply);
66 QNetworkAccessManager *m_manager;
67 QUrl m_redirect_url, m_url;
68 QNetworkReply *m_downloadReply =
nullptr;
69 QNetworkReply *m_checkReply =
nullptr;
71 QPointer<PlayListModel> m_model;
The PlayListDownloader class downloads playlist from remote URL and extracts tracks.
Definition: playlistdownloader.h:37
PlayListDownloader(QObject *parent=nullptr)
void start(const QUrl &url, PlayListModel *model)
void finished(bool ok, const QString &message=QString())
The PlayListModel class provides a data model for the playlist.
Definition: playlistmodel.h:97