mx::IHttpCameraRequest Class Reference
[Component Interfaces]

#include <IHttpCameraRequest.h>

Inheritance diagram for mx::IHttpCameraRequest:

mx::IInterface List of all members.

Public Member Functions

virtual void setTimeout (u32 uTimeoutMs)=0
virtual void callSlot (bool bDefered=false)=0
virtual EHttpError httpError () const =0
virtual bool signalled () const =0
virtual bool completed () const =0
virtual bool inSlot () const =0
virtual bool sendDelayed () const =0
virtual int group () const =0
virtual bool send (QHttp *pHttp)=0
virtual void setSignalled (bool bSignalled=true)=0
virtual void setClientSlot (const mxmQtSlot &slot)=0
virtual mxmQtSignal requestFinishedSignal () const =0
virtual void setClientContext (void *pContext)=0
virtual void setDriverContext (void *pContext)=0
virtual void setRequestString (const mxmStringList &requestStrings)=0
virtual mxm::smart< mxmStringListgetResponse ()=0
virtual void setUserAndPassword (const mxmString &user, const mxmString &pwd)=0
virtual void setHost (const mxmString &host, u16 uPort)=0
virtual void setProxy (const mxmString &proxy, u16 uProxyPort)=0
virtual void setSSL (const mxmString &proxy, u16 uProxyPort)=0
virtual void * driverContext ()=0
virtual void abort ()=0
virtual void waitUntilRebooted (const mxmString &host, u16 uPort, int iRebootTimeOut)=0

Detailed Description

Representation of a HTTP request which is sent to an IP camera. This HTTP request represents a "complex" request which can consist of a few atomic HTTP request. These atomic requests are handled as one request in a transactional sense, i.e. if one atomic request fails, the complex request fails and the complex request is finished when all atomic requests are finished.

NOTE: This interface relates on Qt


Member Function Documentation

virtual void mx::IHttpCameraRequest::abort  )  [pure virtual]
 

set the request state to aborted:

virtual void mx::IHttpCameraRequest::callSlot bool  bDefered = false  )  [pure virtual]
 

call the slot set by the method setClientSlot<>.

Parameters:
bDefered if true, the slot is connected via Qt::QueuedConnection, Qt::AutoConnection otherwise. The slot is called only once, subsequent calls to this method are ignored.

virtual bool mx::IHttpCameraRequest::completed  )  const [pure virtual]
 

indicates that the camera has responses from all all atomic requests.

virtual EHttpError mx::IHttpCameraRequest::httpError  )  const [pure virtual]
 

retrieve the current error status of the request.

virtual mxmQtSignal mx::IHttpCameraRequest::requestFinishedSignal  )  const [pure virtual]
 

The signal requestFinished(IHttpCameraRequest*) is emitted after all atomic requests are completed successfully or after the first unsuccessful request.

virtual void mx::IHttpCameraRequest::setClientContext void *  pContext  )  [pure virtual]
 

the client can set its own context, which is stored in the request itself. The client must handle memory allocation and deallocation.

virtual void mx::IHttpCameraRequest::setDriverContext void *  pContext  )  [pure virtual]
 

the driver can set its own context, which is stored in the request itself. The caller must handle memory allocation and deallocation.

virtual void mx::IHttpCameraRequest::setHost const mxmString host,
u16  uPort
[pure virtual]
 

add a host and a port to the request. Normally you should set this only once, but it is perfectly legal to call this more than once.

virtual void mx::IHttpCameraRequest::setProxy const mxmString proxy,
u16  uProxyPort
[pure virtual]
 

add a proxy and a proxy port to the request. Normally you should set this only once, but it is perfectly legal to call this more than once.

virtual void mx::IHttpCameraRequest::setSSL const mxmString proxy,
u16  uProxyPort
[pure virtual]
 

add SSL socket, proxy need not to be set.

virtual void mx::IHttpCameraRequest::setTimeout u32  uTimeoutMs  )  [pure virtual]
 

set a timeout. If the complex request is not finished within uTimeoutMs, the error state of the request is set to EHttpTimeOutError

virtual void mx::IHttpCameraRequest::setUserAndPassword const mxmString user,
const mxmString pwd
[pure virtual]
 

add a user and a password to the request. Normally you should set this only once, but it is perfectly legal to call this more than once.

virtual bool mx::IHttpCameraRequest::signalled  )  const [pure virtual]
 

indicates that the client slot was already called.


The documentation for this class was generated from the following file:
Generated on Fri Jun 29 17:21:05 2007 for MxPEG SDK by  doxygen 1.4.6