Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > d2229253b8f3127ab89b179a82cc8466 > files > 626

libqxt-devel-0.6.1-2.fc15.i686.rpm

<?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/src/web/qxtwebcontent.cpp -->
<head>
  <title>QxtWebContent 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">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">Classes</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">Namespaces</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QxtWebContent Class Reference<br /><span class="small-subtitle">[<a href="qxtweb.html">QxtWeb</a> module]</span>
</h1>
<p>The QxtWebContent class provides and I/O device for data sent by the web browser <a href="#details">More...</a></p>
<pre>    #include &lt;QxtWebContent&gt;</pre><p>Inherits <a href="http://doc.qtsoftware.com/4.5/qiodevice.html">QIODevice</a>.</p>
<ul>
<li><a href="qxtwebcontent-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="qxtwebcontent.html#QxtWebContent">QxtWebContent</a></b> ( int <i>contentLength</i>, const QByteArray &amp; <i>start</i>, QIODevice * <i>device</i> )</li>
<li><div class="fn"></div><b><a href="qxtwebcontent.html#QxtWebContent-2">QxtWebContent</a></b> ( int <i>contentLength</i>, QIODevice * <i>device</i> )</li>
<li><div class="fn"></div><b><a href="qxtwebcontent.html#QxtWebContent-3">QxtWebContent</a></b> ( const QByteArray &amp; <i>content</i>, QObject * <i>parent</i> = 0 )</li>
<li><div class="fn"></div>qint64 <b><a href="qxtwebcontent.html#unreadBytes">unreadBytes</a></b> () const</li>
<li><div class="fn"></div>void <b><a href="qxtwebcontent.html#waitForAllContent">waitForAllContent</a></b> ()</li>
</ul>
<ul>
<li><div class="fn"></div>33 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qiodevice.html#public-functions">QIODevice</a></li>
<li><div class="fn"></div>29 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h3>Public Slots</h3>
<ul>
<li><div class="fn"></div>void <b><a href="qxtwebcontent.html#ignoreRemainingContent">ignoreRemainingContent</a></b> ()</li>
</ul>
<ul>
<li><div class="fn"></div>1 public slot inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-slots">QObject</a></li>
</ul>
<a name="static-public-members"></a>
<h3>Static Public Members</h3>
<ul>
<li><div class="fn"></div>QHash&lt;QString, QString&gt; <b><a href="qxtwebcontent.html#parseUrlEncodedQuery">parseUrlEncodedQuery</a></b> ( const QString &amp; <i>data</i> )</li>
</ul>
<ul>
<li><div class="fn"></div>4 static public members inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#static-public-members">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 property inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#properties">QObject</a></li>
<li><div class="fn"></div>4 signals inherited from <a href="http://doc.qtsoftware.com/4.5/qiodevice.html#signals">QIODevice</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#signals">QObject</a></li>
<li><div class="fn"></div>1 public type inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-variables">QObject</a></li>
<li><div class="fn"></div>5 protected functions inherited from <a href="http://doc.qtsoftware.com/4.5/qiodevice.html#protected-functions">QIODevice</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"></div>2 protected variables inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QxtWebContent class provides and I/O device for data sent by the web browser</p>
<p>QxtWebContent is a read-only <a href="http://doc.qtsoftware.com/4.5/qiodevice.html">QIODevice</a> subclass that encapsulates data sent from the web browser, for instance in a POST or PUT request.</p>
<p>In order to avoid delays while reading content sent from the client, and to insulate multiple pipelined requests on the same connection from each other, <a href="qxtweb.html">QxtWeb</a> uses QxtWebContent as an abstraction for streaming data.</p>
<p>See also <a href="qxtabstractwebservice.html">QxtAbstractWebService</a>.</p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QxtWebContent"></a>QxtWebContent::QxtWebContent ( int <i>contentLength</i>, const <a href="http://doc.qtsoftware.com/4.5/qbytearray.html">QByteArray</a> &amp; <i>start</i>, <a href="http://doc.qtsoftware.com/4.5/qiodevice.html">QIODevice</a> * <i>device</i> )</h3>
<p>Constructs a <a href="qxtwebcontent.html">QxtWebContent</a> object.</p>
<p>The content provided by this constructor is the data contained in <i>start</i>, followed by enough data read from the provided <i>device</i> to fill the desired <i>contentLength</i>.</p>
<p>The <a href="qxtwebcontent.html">QxtWebContent</a> object is parented to the <i>device</i>.</p>
<h3 class="fn"><a name="QxtWebContent-2"></a>QxtWebContent::QxtWebContent ( int <i>contentLength</i>, <a href="http://doc.qtsoftware.com/4.5/qiodevice.html">QIODevice</a> * <i>device</i> )</h3>
<p>Constructs a <a href="qxtwebcontent.html">QxtWebContent</a> object.</p>
<p>The content provided by this constructor is the first <i>contentLength</i> bytes read from the provided <i>device</i>.</p>
<p>The <a href="qxtwebcontent.html">QxtWebContent</a> object is parented to the <i>device</i>.</p>
<h3 class="fn"><a name="QxtWebContent-3"></a>QxtWebContent::QxtWebContent ( const <a href="http://doc.qtsoftware.com/4.5/qbytearray.html">QByteArray</a> &amp; <i>content</i>, <a href="http://doc.qtsoftware.com/4.5/qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a <a href="qxtwebcontent.html">QxtWebContent</a> object with the specified <i>parent</i>.</p>
<p>The content provided by this constructor is exactly the data contained in <i>content</i>.</p>
<h3 class="fn"><a name="ignoreRemainingContent"></a>void QxtWebContent::ignoreRemainingContent ()&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Discards any data not yet read.</p>
<p>After invoking this function, any further data received from the browser is silently discarded.</p>
<h3 class="fn"><a name="parseUrlEncodedQuery"></a><a href="http://doc.qtsoftware.com/4.5/qhash.html">QHash</a>&lt;<a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a>, <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a>&gt; QxtWebContent::parseUrlEncodedQuery ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>data</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Extracts the key/value pairs from application/x-www-form-urlencoded <i>data</i>, such as the query string from the URL or the form data from a POST request.</p>
<h3 class="fn"><a name="unreadBytes"></a><a href="http://doc.qtsoftware.com/4.5/qtglobal.html#qint64-typedef">qint64</a> QxtWebContent::unreadBytes () const</h3>
<p>Returns the number of bytes of content that have not yet been read.</p>
<p>Note that not all of the remaining content may be immediately available for reading. This function returns the content length, minus the number of bytes that have already been read.</p>
<h3 class="fn"><a name="waitForAllContent"></a>void QxtWebContent::waitForAllContent ()</h3>
<p>Blocks until all of the streaming data has been read from the browser.</p>
<p>Note that this function will block events for the thread on which it is called. If the main thread is blocked, <a href="qxtweb.html">QxtWeb</a> will be unable to process additional requests until the content has been received.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td align="left">Copyright &copy; 2007-2010
<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.1</div></td>
</tr></table></div></address></body>
</html>