ofxHTTP
A collection of tools for HTTP.
ofx::HTTP::PostUploadEventArgs Class Reference
Inheritance diagram for ofx::HTTP::PostUploadEventArgs:
ofx::HTTP::BasePostEventArgs ofx::HTTP::ServerEventArgs

Public Types

enum  UploadState { UPLOAD_STARTING, UPLOAD_PROGRESS, UPLOAD_FINISHED }
 

Public Member Functions

 PostUploadEventArgs (ServerEventArgs &evt, const std::string &postId, const std::string &formFieldName, const std::string &originalFilename, const std::string &filename, const Poco::Net::MediaType &contentType, uint64_t numBytesTransferred, UploadState state)
 
const std::string & getFormFieldName () const
 
const std::string & getOriginalFilename () const
 
const std::string & getFilename () const
 
const Poco::Net::MediaType & getFileType () const
 
uint64_t getNumBytesTransferred () const
 
UploadState getState () const
 
- Public Member Functions inherited from ofx::HTTP::BasePostEventArgs
 BasePostEventArgs (ServerEventArgs &e, const std::string &postId)
 
virtual ~BasePostEventArgs ()
 Destroy the BasePostEventArgs.
 
const std::string & getPostId () const
 The post id. More...
 
- Public Member Functions inherited from ofx::HTTP::ServerEventArgs
 ServerEventArgs (Poco::Net::HTTPServerRequest &request, Poco::Net::HTTPServerResponse &response, AbstractSession &session)
 Construct the ServerEventArgs. More...
 
virtual ~ServerEventArgs ()
 Destroy the ServerEventArgs.
 
Poco::Net::HTTPServerRequest & request ()
 Get the Poco::Net::HTTPServerRequest. More...
 
Poco::Net::HTTPServerResponse & response ()
 Get the Poco::Net::HTTPServerResponse. More...
 
AbstractSessionsession ()
 Get the session associated with this event. More...
 

Additional Inherited Members

- Protected Attributes inherited from ofx::HTTP::BasePostEventArgs
std::string _postId
 The post id.
 
- Protected Attributes inherited from ofx::HTTP::ServerEventArgs
Poco::Net::HTTPServerRequest & _request
 A reference to the server request.
 
Poco::Net::HTTPServerResponse & _response
 Callbacks are permitted to set the response. More...
 
AbstractSession_session
 The session associated with the event.
 

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