diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-06 11:31:55 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-06 11:31:55 -0300 |
commit | f55ae1570738ec4e890ec35504e2c1e5c81364cc (patch) | |
tree | 7185ea93b9b90ab9b0bc3b0a406d6f0e5343396f /webservice.h | |
parent | c1cf6c02a8a82296840d3a4c6948bc04a5bb5e51 (diff) | |
download | subsurface-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 'webservice.h')
-rw-r--r-- | webservice.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/webservice.h b/webservice.h index c1951acd1..739f1057e 100644 --- a/webservice.h +++ b/webservice.h @@ -2,9 +2,18 @@ extern "C" { #endif -extern void webservice_download_dialog(void); -extern gboolean webservice_request_user_xml(const gchar *, gchar **, guint *, guint *); +//extern void webservice_download_dialog(void); +//extern bool webservice_request_user_xml(const gchar *, gchar **, unsigned int *, unsigned int *); extern int divelogde_upload(char *fn, char **error); +extern unsigned int download_dialog_parse_response(char *xmldata, unsigned int len); + +enum { + DD_STATUS_OK, + DD_STATUS_ERROR_CONNECT, + DD_STATUS_ERROR_ID, + DD_STATUS_ERROR_PARSE, +}; + #ifdef __cplusplus } |