summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-06 10:33:15 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-06 10:33:15 -0300
commitc1cf6c02a8a82296840d3a4c6948bc04a5bb5e51 (patch)
treecc689ef4b77cf3f53445e7f9d93475d71693e305 /qt-ui/subsurfacewebservices.h
parent74d23ed83b0fe4a2270adc41b5a9bd20b7ca5d29 (diff)
downloadsubsurface-c1cf6c02a8a82296840d3a4c6948bc04a5bb5e51.tar.gz
Added initial support for download dive info from the subsurface web service.
Added initial support for download dive info from subsurface web service, the current code only downloads and output the xml downloaded in the debug area. Now I need to parse things up and plug the unplugged stuff. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.h')
-rw-r--r--qt-ui/subsurfacewebservices.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h
new file mode 100644
index 000000000..ffcc28f82
--- /dev/null
+++ b/qt-ui/subsurfacewebservices.h
@@ -0,0 +1,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 \ No newline at end of file