summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.h
blob: ffcc28f82d43e7bd8dfa831f6ef59be47069fcc6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef SUBSURFACEWEBSERVICES_H
#define SUBSURFACEWEBSERVICES_H

#include <QDialog>
#include <QNetworkReply>

namespace Ui{
	class SubsurfaceWebServices;
};
class QAbstractButton;
class QNetworkReply;

class SubsurfaceWebServices : public QDialog {
	Q_OBJECT
public:
	static SubsurfaceWebServices* instance();
	void runDialog();
	
private slots:
	void startDownload();
	void buttonClicked(QAbstractButton* button);
	void downloadFinished();
	void downloadError(QNetworkReply::NetworkError error);
	
private:
    explicit SubsurfaceWebServices(QWidget* parent = 0, Qt::WindowFlags f = 0);
    Ui::SubsurfaceWebServices *ui;
	QNetworkReply *reply;
};

#endif