
Public Types | |
| typedef Responder *(* | Generator )(const Request &, QIODevice *, QIODevice *inputDevice, QObject *) |
| A typedef for a pointer to a factory function for Responder objects. | |
Public Member Functions | |
| virtual void | respond ()=0 |
| Respond to a web request. | |
| virtual | ~Responder () |
| Clean up the responder. | |
Protected Member Functions | |
| Responder (const Request &request, QIODevice *socket, QIODevice *inputDevice, QObject *parent=NULL) | |
| Construct a responder. | |
Related Functions | |
| (Note that these are not member functions.) | |
| RESPONDER(className) | |
| Convenience macro for creating constructor and factories of Responder subclasses. | |
All web applications will involve at least one subclass of this class.
| typedef Responder*(* FastCgiQt::Responder::Generator)(const Request &, QIODevice *, QIODevice *inputDevice, QObject *) |
A typedef for a pointer to a factory function for Responder objects.
This function must have the signature:
void myResponderGenerator(const Request&, QIODevice*, QIODevice*, QObject*);
| FastCgiQt::Responder::~Responder | ( | ) | [virtual] |
Clean up the responder.
Among other things, this will flush the output stream.
| FastCgiQt::Responder::Responder | ( | const Request & | request, | |
| QIODevice * | socket, | |||
| QIODevice * | inputDevice, | |||
| QObject * | parent = NULL | |||
| ) | [protected] |
Construct a responder.
You shouldn't actually have to do anything with these parameters except pass them through to this constructor; especially, do not use the socket directly.
| request | contains information on the request. | |
| socket | is the socket being used for FastCGI in this request. | |
| inputDevice | is a streaming input device. | |
| parent | is a QObject* parent. |
| RESPONDER | ( | className | ) | [related] |
Convenience macro for creating constructor and factories of Responder subclasses.
The generated constructor just calls the Responder constructor.
The generated factory function is called 'create', and a pointer to it is a FastCgiQt::Responder::Generator.
1.5.7