diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 52 | ||||
-rw-r--r-- | qt-ui/subsurfacewebservices.h | 25 |
2 files changed, 73 insertions, 4 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index 7475ff1c7..edca1ee74 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -36,6 +36,12 @@ void WebServices::hideUpload() ui.upload->hide(); } +// # +// # +// # Subsurface Web Service Implementation. +// # +// # + SubsurfaceWebServices* SubsurfaceWebServices::instance() { static SubsurfaceWebServices *self = new SubsurfaceWebServices(); @@ -254,3 +260,49 @@ static bool merge_locations_into_dives(void) } return changed > 0; } + +// # +// # +// # Divelogs DE Web Service Implementation. +// # +// # + +DivelogsDeWebServices* DivelogsDeWebServices::instance() +{ + +} + +DivelogsDeWebServices::DivelogsDeWebServices(QWidget* parent, Qt::WindowFlags f): WebServices(parent, f) +{ + +} + +void DivelogsDeWebServices::startUpload() +{ + +} + +void DivelogsDeWebServices::startDownload() +{ + +} + +void DivelogsDeWebServices::downloadFinished() +{ + +} + +void DivelogsDeWebServices::setStatusText(int status) +{ + +} + +void DivelogsDeWebServices::downloadError(QNetworkReply::NetworkError error) +{ + +} + +void DivelogsDeWebServices::buttonClicked(QAbstractButton* button) +{ + +} 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 |