Home · Modules · Classes · Namespaces · Functions

QxtWebRedirectEvent Class Reference
[QxtWeb module]

The QxtWebRedirectEvent class describes a redirect event to be sent to a web browser More...

    #include <QxtWebRedirectEvent>

Inherits QxtWebPageEvent.

Public Functions

Public Variables


Detailed Description

The QxtWebRedirectEvent class describes a redirect event to be sent to a web browser

The QxtWebRedirectEvent class instructs the web browser to load a page found at another location.

The default status code, 302, indicates that the requested page was found at a different location. Other useful status codes are 301, which indicates that the web browser should always use the new URL in place of the old one, and (in HTTP/1.1) 307, which indicates that the web browser should reissue the same request (including POST data) to the new URL.


Member Function Documentation

QxtWebRedirectEvent::QxtWebRedirectEvent ( int sessionID, int requestID, const QString & destination, int statusCode = 302 )

Constructs a QxtWebRedirectEvent for the specified sessionID and requestID that instructs the browser to move to the specified destination URL with statusCode.


Member Variable Documentation

QString QxtWebRedirectEvent::destination

Contains the new location (absolute or relative) to which the browser should redirect.


Copyright © 2007-2011 Qxt Foundation
Qxt 0.6.2