ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Networking::UploadFileClientHandler Class Reference

This class handles POST form/multipart upload. More...

#include <uploadfileclienthandler.h>

Inheritance diagram for Networking::UploadFileClientHandler:
Collaboration diagram for Networking::UploadFileClientHandler:

List of all members.

Public Member Functions

 UploadFileClientHandler (Common::String parentDirectoryPath)
virtual ~UploadFileClientHandler ()
virtual void handle (Client *client)

Private Member Functions

void handleBlockHeaders (Client *client)
void handleBlockContent (Client *client)
void setErrorMessageHandler (Client &client, Common::String message)
void setSuccessHandler (Client &client)

Private Attributes

UploadFileHandlerState _state
Common::String _parentDirectoryPath
uint32 _uploadedFiles

Detailed Description

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.

Definition at line 49 of file uploadfileclienthandler.h.

Constructor & Destructor Documentation

Networking::UploadFileClientHandler::UploadFileClientHandler ( Common::String  parentDirectoryPath  ) 

Definition at line 34 of file uploadfileclienthandler.cpp.

Networking::UploadFileClientHandler::~UploadFileClientHandler (  )  [virtual]

Definition at line 38 of file uploadfileclienthandler.cpp.

Member Function Documentation

void Networking::UploadFileClientHandler::handle ( Client client  )  [virtual]

Implements Networking::ClientHandler.

Definition at line 43 of file uploadfileclienthandler.cpp.

void Networking::UploadFileClientHandler::handleBlockContent ( Client client  )  [private]

Definition at line 162 of file uploadfileclienthandler.cpp.

void Networking::UploadFileClientHandler::handleBlockHeaders ( Client client  )  [private]

Definition at line 106 of file uploadfileclienthandler.cpp.

void Networking::UploadFileClientHandler::setErrorMessageHandler ( Client client,
Common::String  message 
) [private]

Definition at line 191 of file uploadfileclienthandler.cpp.

void Networking::UploadFileClientHandler::setSuccessHandler ( Client client  )  [private]

Definition at line 196 of file uploadfileclienthandler.cpp.

Member Data Documentation

The documentation for this class was generated from the following files:

Generated on Sat May 30 2020 05:03:33 for ResidualVM by doxygen 1.7.1
curved edge   curved edge