summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-10-24 22:52:11 -0200
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-10-24 22:52:11 -0200
commit216f9212b953aecddea1cfbce6a10740d3db2cd4 (patch)
tree8acde3c581eb03b31ac2bcfc010db876792ef83d /qt-ui/subsurfacewebservices.h
parent06ba04ab785e142ead9f95b3335e0d6237f03ad1 (diff)
downloadsubsurface-216f9212b953aecddea1cfbce6a10740d3db2cd4.tar.gz
Added the skeleton for the Download / Upload from Divelogs.de
Added the skeleton code for the Download / Upload from Divelogs. de webservice. Now I need to hoopup things from the .ui side and do the actual implementation of the code. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.h')
-rw-r--r--qt-ui/subsurfacewebservices.h25
1 files changed, 21 insertions, 4 deletions
diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h
index 19c3f56c7..515e3fe9c 100644
--- a/qt-ui/subsurfacewebservices.h
+++ b/qt-ui/subsurfacewebservices.h
@@ -19,9 +19,8 @@ public:
private slots:
virtual void startDownload() = 0;
+ virtual void startUpload() = 0;
virtual void buttonClicked(QAbstractButton* button) = 0;
- virtual void downloadFinished() = 0;
- virtual void downloadError(QNetworkReply::NetworkError error) = 0;
protected:
Ui::WebServices ui;
@@ -34,13 +33,13 @@ class SubsurfaceWebServices : public WebServices {
Q_OBJECT
public:
static SubsurfaceWebServices* instance();
-
+
private slots:
void startDownload();
void buttonClicked(QAbstractButton* button);
void downloadFinished();
void downloadError(QNetworkReply::NetworkError error);
-
+ void startUpload(){} /*no op*/
private:
explicit SubsurfaceWebServices(QWidget* parent = 0, Qt::WindowFlags f = 0);
void setStatusText(int status);
@@ -48,4 +47,22 @@ private:
unsigned int download_dialog_parse_response(const QByteArray& length);
};
+class DivelogsDeWebServices : public WebServices {
+ Q_OBJECT
+public:
+ static DivelogsDeWebServices * instance();
+
+private slots:
+ void startDownload();
+ void buttonClicked(QAbstractButton* button);
+ void downloadFinished();
+ void downloadError(QNetworkReply::NetworkError error);
+ void startUpload();
+private:
+ explicit DivelogsDeWebServices (QWidget* parent = 0, Qt::WindowFlags f = 0);
+ void setStatusText(int status);
+ void download_dialog_traverse_xml(xmlNodePtr node, unsigned int *download_status);
+ unsigned int download_dialog_parse_response(const QByteArray& length);
+};
+
#endif