diff options
author | Alexander Tkachev | 2016-07-09 16:10:58 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 7fcdcc10cb8f6dad370e942ef917ff00e888e2ec (patch) | |
tree | 257b8461c2576bca902a6514b39a1990ac1e395e /backends/networking/sdl_net/uploadfileclienthandler.h | |
parent | abae5c437142b53d9099653fe5f14b3ac1967b18 (diff) | |
download | scummvm-rg350-7fcdcc10cb8f6dad370e942ef917ff00e888e2ec.tar.gz scummvm-rg350-7fcdcc10cb8f6dad370e942ef917ff00e888e2ec.tar.bz2 scummvm-rg350-7fcdcc10cb8f6dad370e942ef917ff00e888e2ec.zip |
CLOUD: Cleanup in UploadFileClientHandler
Adds Client::noMoreContent() and Reader::noMoreContent(), which return
true when whole client's request was read.
Diffstat (limited to 'backends/networking/sdl_net/uploadfileclienthandler.h')
-rw-r--r-- | backends/networking/sdl_net/uploadfileclienthandler.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/networking/sdl_net/uploadfileclienthandler.h b/backends/networking/sdl_net/uploadfileclienthandler.h index 4f2ce621fb..de6941bf4f 100644 --- a/backends/networking/sdl_net/uploadfileclienthandler.h +++ b/backends/networking/sdl_net/uploadfileclienthandler.h @@ -32,7 +32,8 @@ enum UploadFileHandlerState { UFH_READING_CONTENT, UFH_READING_BLOCK_HEADERS, UFH_READING_BLOCK_CONTENT, - UFH_ERROR + UFH_ERROR, + UFH_STOP }; class UploadFileClientHandler: public ClientHandler { @@ -42,7 +43,7 @@ class UploadFileClientHandler: public ClientHandler { Common::String _parentDirectoryPath; void handleBlockHeaders(Client *client); - bool validFilename(Client &client, Common::String filename, Common::String &errorMessage); + void handleBlockContent(Client *client); void setErrorMessageHandler(Client &client, Common::String message); public: |