src/platform/qt/DatDownloadView.h (view raw)
1/* Copyright (c) 2013-2015 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#ifndef QGBA_DAT_DOWNLOAD_VIEW
7#define QGBA_DAT_DOWNLOAD_VIEW
8
9#include <QNetworkReply>
10
11#include "ui_DatDownloadView.h"
12
13class QNetworkAccessManager;
14
15namespace QGBA {
16
17class DatDownloadView : public QDialog {
18Q_OBJECT
19
20public:
21 DatDownloadView(QWidget* parent = nullptr);
22
23public slots:
24 void start();
25
26private slots:
27 void finished(QNetworkReply*);
28 void downloadProgress(qint64, qint64);
29 void errored(QNetworkReply::NetworkError);
30 void buttonPressed(QAbstractButton* button);
31
32private:
33 Ui::DatDownloadView m_ui;
34 QNetworkAccessManager* m_netman;
35 QNetworkReply* m_reply;
36};
37
38}
39
40#endif