Wexus2 0.20
|
#include <Controller.h>
Public Member Functions | |
ControllerContext (void) | |
QTextStream & | output (void) |
QTextStream & | htmlOutput (void) |
Public Attributes | |
QVariantMap & | params |
Cookies & | cookies |
QVariantMap & | session |
const QVariantMap & | flash |
QVariantMap & | setFlash |
Context::Errors & | errors |
This contains useful input/output functions that are part of Controller.
It basically reflects a lot of the methods of the Context TLS global into the Controller itself.
wexus::ControllerContext::ControllerContext | ( | void | ) |
Constructor.
QTextStream& wexus::ControllerContext::htmlOutput | ( | void | ) | [inline] |
Returns a stream that HTML escapes all output (except HTMLString).
QTextStream& wexus::ControllerContext::output | ( | void | ) | [inline] |
Returns the raw output stream.
The cookies.
Context::Errors& wexus::ControllerContext::errors |
Errors.
const QVariantMap& wexus::ControllerContext::flash |
The incoming flash sent by the previous calls.
QVariantMap& wexus::ControllerContext::params |
The form parameters. Object directly accessible so operator[] works.
QVariantMap& wexus::ControllerContext::session |
The session, if any.
QVariantMap& wexus::ControllerContext::setFlash |
The flash that will be preseved for the next calls. In the next call, this will be the contents of inFlash.