FileDownloader.hpp
1 #pragma once
2 #include <QByteArray>
3 #include <QNetworkAccessManager>
4 #include <QNetworkReply>
5 #include <QNetworkRequest>
6 #include <QObject>
7 
8 #include <verdigris>
9 
10 namespace score
11 {
12 
13 class FileDownloader : public QObject
14 {
15  W_OBJECT(FileDownloader)
16 public:
17  explicit FileDownloader(QUrl url);
18  QByteArray downloadedData() const;
19 
20 public:
21  void downloaded(QByteArray arg_1) W_SIGNAL(downloaded, arg_1);
22 
23 private:
24  void fileDownloaded(QNetworkReply*);
25 
26  QNetworkAccessManager m_mgr;
27  QByteArray m_data;
28 };
29 }
Definition: FileDownloader.hpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90