diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-22 18:26:20 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-22 18:26:20 (GMT) |
commit | c7f8f82d632f3d205ef6de6377115ea0f7536302 (patch) | |
tree | e9b3246ac897f31293a8592ac836562f6e454d00 /src/uscxml/URL.h | |
parent | aed71bb1cc4209156f132b34041982521bf78025 (diff) | |
download | uscxml-c7f8f82d632f3d205ef6de6377115ea0f7536302.zip uscxml-c7f8f82d632f3d205ef6de6377115ea0f7536302.tar.gz uscxml-c7f8f82d632f3d205ef6de6377115ea0f7536302.tar.bz2 |
Use actual curl message for errors regarding URLs
Diffstat (limited to 'src/uscxml/URL.h')
-rw-r--r-- | src/uscxml/URL.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/uscxml/URL.h b/src/uscxml/URL.h index 0e47607..61a225c 100644 --- a/src/uscxml/URL.h +++ b/src/uscxml/URL.h @@ -83,7 +83,11 @@ public: void downloadStarted(); void downloadCompleted(); - void downloadFailed(int errorCode); + void downloadFailed(CURLcode errorCode); + + bool downloadFailed() { + return _hasFailed; + } friend class URLFetcher; @@ -186,6 +190,10 @@ public: _impl->removeMonitor(monitor); } + bool downloadFailed() { + return _impl->downloadFailed(); + } + const bool isAbsolute() const { return _impl->isAbsolute(); } @@ -218,7 +226,7 @@ protected: void downloadCompleted() { return _impl->downloadCompleted(); } - void downloadFailed(int errorCode) { + void downloadFailed(CURLcode errorCode) { return _impl->downloadFailed(errorCode); } |