Wexus2 0.20
wexus::Context Class Reference

#include <Context.h>

List of all members.

Public Types

typedef QMap< QString,
QStringList > 
Errors

Public Member Functions

 Context (wexus::Application *application, wexus::HTTPRequest &req, wexus::HTTPReply &reply)
 constructor
 ~Context ()
 destructor

Static Public Member Functions

static ContextthreadInstance (void)
static wexus::Applicationapplication (void)
static wexus::HTTPRequestrequest (void)
static wexus::HTTPReplyreply (void)
static QTextStream & output (void)
static QTextStream & htmlOutput (void)

Public Attributes

QVariantMap params
Cookies cookies
QVariantMap & session
const QVariantMap flash
QVariantMap setFlash
Errors errors

Detailed Description

The context object sets up and maintains (during its lifetime) various thread-local storage variables necesary for the other global functions defined in this file.

Does header/footer sending too, over the HTTPReply

Author:
Aleksander Demko

Member Function Documentation

static wexus::Application* wexus::Context::application ( void  ) [inline, static]

The application instance that spawned this context.

Author:
Aleksander Demko
static QTextStream& wexus::Context::htmlOutput ( void  ) [static]

Returns a stream that HTML escapes all output (except HTMLString).

Author:
Aleksander Demko
static QTextStream& wexus::Context::output ( void  ) [static]

Returns the raw output stream.

Author:
Aleksander Demko
static wexus::HTTPReply& wexus::Context::reply ( void  ) [inline, static]

The wexus::HTTPReply object that will be used to reply to the user.

Author:
Aleksander Demko
static wexus::HTTPRequest& wexus::Context::request ( void  ) [inline, static]

The wexus::HTTPRequest object that started this request.

Author:
Aleksander Demko
static Context* wexus::Context::threadInstance ( void  ) [static]

Returns the "static-like" instance for this thread.

Author:
Aleksander Demko

Member Data Documentation

The cookies.

Author:
Aleksander Demko

Errors.

Author:
Aleksander Demko
const QVariantMap wexus::Context::flash

The incoming flash sent by the previous calls.

Author:
Aleksander Demko

The form parameters. Object directly accessible so operator[] works.

Author:
Aleksander Demko

The session, if any

Author:
Aleksander Demko

The flash that will be preseved for the next calls. In the next call, this will be the contents of inFlash.

Author:
Aleksander Demko

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator