<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /builddir/build/BUILD/libqxt-libqxt-v0.6.2/src/web/qxtwebevent.cpp --> <head> <title>QxtWebRedirectEvent Class Reference</title> <link href="stylesheet.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://libqxt.org"><img src="images/qxt-logo.png" width="50" height="40" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a> · <a href="classes.html"><font color="#004faf">Classes</font></a> · <a href="namespaces.html"><font color="#004faf">Namespaces</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td> <td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QxtWebRedirectEvent Class Reference<br /><span class="small-subtitle">[<a href="qxtweb.html">QxtWeb</a> module]</span> </h1> <p>The QxtWebRedirectEvent class describes a redirect event to be sent to a web browser <a href="#details">More...</a></p> <pre> #include <QxtWebRedirectEvent></pre><p>Inherits <a href="qxtwebpageevent.html">QxtWebPageEvent</a>.</p> <ul> <li><a href="qxtwebredirectevent-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-functions"></a> <h3>Public Functions</h3> <ul> <li><div class="fn"></div><b><a href="qxtwebredirectevent.html#QxtWebRedirectEvent">QxtWebRedirectEvent</a></b> ( int <i>sessionID</i>, int <i>requestID</i>, const QString & <i>destination</i>, int <i>statusCode</i> = 302 )</li> </ul> <ul> <li><div class="fn"></div>1 public function inherited from <a href="qxtwebevent.html#public-functions">QxtWebEvent</a></li> </ul> <a name="public-variables"></a> <h3>Public Variables</h3> <ul> <li><div class="fn"></div>QString <b><a href="qxtwebredirectevent.html#destination-var">destination</a></b></li> </ul> <ul> <li><div class="fn"></div>8 public variables inherited from <a href="qxtwebpageevent.html#public-variables">QxtWebPageEvent</a></li> <li><div class="fn"></div>1 public type inherited from <a href="qxtwebevent.html#public-variables">QxtWebEvent</a></li> </ul> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QxtWebRedirectEvent class describes a redirect event to be sent to a web browser</p> <p>The QxtWebRedirectEvent class instructs the web browser to load a page found at another location.</p> <p>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.</p> <hr /> <h2>Member Function Documentation</h2> <h3 class="fn"><a name="QxtWebRedirectEvent"></a>QxtWebRedirectEvent::QxtWebRedirectEvent ( int <i>sessionID</i>, int <i>requestID</i>, const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> & <i>destination</i>, int <i>statusCode</i> = 302 )</h3> <p>Constructs a <a href="qxtwebredirectevent.html">QxtWebRedirectEvent</a> for the specified <i>sessionID</i> and <i>requestID</i> that instructs the browser to move to the specified <i>destination</i> URL with <i>statusCode</i>.</p> <hr /> <h2>Member Variable Documentation</h2> <h3 class="fn"><a name="destination-var"></a><a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> QxtWebRedirectEvent::destination</h3> <p>Contains the new location (absolute or relative) to which the browser should redirect.</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td align="left">Copyright © 2007-2011 <a href="mailto:foundation@libqxt.org">Qxt Foundation</a></td> <td align="right"><div align="right"> <a href="http://libqxt.org">Qxt</a> 0.6.2</div></td> </tr></table></div></address></body> </html>