summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-06 11:31:55 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-06 11:31:55 -0300
commitf55ae1570738ec4e890ec35504e2c1e5c81364cc (patch)
tree7185ea93b9b90ab9b0bc3b0a406d6f0e5343396f /qt-ui/subsurfacewebservices.h
parentc1cf6c02a8a82296840d3a4c6948bc04a5bb5e51 (diff)
downloadsubsurface-f55ae1570738ec4e890ec35504e2c1e5c81364cc.tar.gz
Hoocked up the buttons and the parsing of the XML.
The XML is now being correctly parsed, Clicking on Help will open the browser pointing to the api site, and clicking on cancel will cancel the download. Clicking on Apply still doesn't apply, but that's next. :) Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.h')
-rw-r--r--qt-ui/subsurfacewebservices.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h
index ffcc28f82..9e85db155 100644
--- a/qt-ui/subsurfacewebservices.h
+++ b/qt-ui/subsurfacewebservices.h
@@ -3,6 +3,7 @@
#include <QDialog>
#include <QNetworkReply>
+#include <libxml/tree.h>
namespace Ui{
class SubsurfaceWebServices;
@@ -23,9 +24,15 @@ private slots:
void downloadError(QNetworkReply::NetworkError error);
private:
- explicit SubsurfaceWebServices(QWidget* parent = 0, Qt::WindowFlags f = 0);
- Ui::SubsurfaceWebServices *ui;
+ void setStatusText(int status);
+ void download_dialog_traverse_xml(xmlNodePtr node, unsigned int *download_status);
+ unsigned int download_dialog_parse_response(const QByteArray& length);
+
+ explicit SubsurfaceWebServices(QWidget* parent = 0, Qt::WindowFlags f = 0);
+ Ui::SubsurfaceWebServices *ui;
QNetworkReply *reply;
+ QNetworkAccessManager *manager;
+ QByteArray downloadedData;
};
#endif \ No newline at end of file