diff options
author | Alexander Tkachev | 2016-07-20 19:51:39 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 01161ae7ddbc5f147dd9e71991eb2f1a1c9a7b06 (patch) | |
tree | 510e5c6e81976262498835066cd94a21b42b4f69 /backends/networking/sdl_net/uploadfileclienthandler.h | |
parent | b180c73675846f45abab2190b39e0b9d0d6addbf (diff) | |
download | scummvm-rg350-01161ae7ddbc5f147dd9e71991eb2f1a1c9a7b06.tar.gz scummvm-rg350-01161ae7ddbc5f147dd9e71991eb2f1a1c9a7b06.tar.bz2 scummvm-rg350-01161ae7ddbc5f147dd9e71991eb2f1a1c9a7b06.zip |
CLOUD: Do some refactoring/cleanup in Networking
Diffstat (limited to 'backends/networking/sdl_net/uploadfileclienthandler.h')
-rw-r--r-- | backends/networking/sdl_net/uploadfileclienthandler.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/networking/sdl_net/uploadfileclienthandler.h b/backends/networking/sdl_net/uploadfileclienthandler.h index f61a2fab5e..4aa6929888 100644 --- a/backends/networking/sdl_net/uploadfileclienthandler.h +++ b/backends/networking/sdl_net/uploadfileclienthandler.h @@ -36,6 +36,16 @@ enum UploadFileHandlerState { UFH_STOP }; +/** + * This class handles POST form/multipart upload. + * + * handleBlockHeaders() looks for filename and, if it's found, + * handleBlockContent() saves content into the file with such name. + * + * If no file found or other error occurs, it sets + * default error message handler. + */ + class UploadFileClientHandler: public ClientHandler { UploadFileHandlerState _state; Common::MemoryReadWriteStream *_headersStream; |