1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QNPStream Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">
<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>
<h1 align=center>QNPStream Class Reference</h1><br clear="all">
<p>
A stream of data provided to a <a href="qnpinstance.html">QNPInstance</a> by the browser.
<p>This class is part of the <b>Qt NSPlugin Extension.</b>
<a href="#details">More...</a>
<p>
<code>#include <<a href="qnp-h.html">qnp.h</a>></code>
<p><a href="qnpstream-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#92d58b"><b>~QNPStream</b></a>()</div>
<li><div class="fn">constchar*<a href="#562816"><b>url</b></a>()const</div>
<li><div class="fn">uint<a href="#d784d1"><b>end</b></a>()const</div>
<li><div class="fn">uint<a href="#5c3dab"><b>lastModified</b></a>()const</div>
<li><div class="fn">constchar*<a href="#611967"><b>type</b></a>()const</div>
<li><div class="fn">bool<a href="#dea454"><b>seekable</b></a>()const</div>
<li><div class="fn">bool<a href="#c295fc"><b>okay</b></a>()const</div>
<li><div class="fn">bool<a href="#2d104b"><b>complete</b></a>()const</div>
<li><div class="fn">void<a href="#103722"><b>requestRead</b></a>(intoffset, uintlength)</div>
<li><div class="fn">int<a href="#7a88d2"><b>write</b></a>(intlen, void*buffer)</div>
<li><div class="fn">QNPInstance*<a href="#d25257"><b>instance</b></a>()</div>
<li><div class="fn"><a href="#5dbc31"><b>QNPStream</b></a>(QNPInstance*, constchar*, _NPStream*, bool)</div>
<li><div class="fn">void<b>setOkay</b>(bool)(internal)</div>
<li><div class="fn">void<b>setComplete</b>(bool)(internal)</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
This class is defined in the <b>Qt NSPlugin Extension</b>, which can be found in the <tt>qt/extensions</tt> directory.
It is not included in the main Qt API.
<p>
A stream of data provided to a <a href="qnpinstance.html">QNPInstance</a> by the browser.
<p>
Note that this is neither a <a href="qtextstream.html">QTextStream</a> or a <a href="qdatastream.html">QDataStream</a>.
<p>See also <a href="qnpinstance.html#248e16">QNPInstance::write</a>() and <a href="qnpinstance.html#46599f">QNPInstance::newStreamCreated</a>().
<p>Examples:
<a href="qtimage-qtimage-cpp.html#QNPStream">qtimage/qtimage.cpp</a>
<a href="grapher-grapher-cpp.html#QNPStream">grapher/grapher.cpp</a>
<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="5dbc31"></a>QNPStream::QNPStream(<a href="qnpinstance.html">QNPInstance</a>*in,constchar*mt, _NPStream*st, boolse)</h3>
<p>Creates a stream. Plugins should not call this, but rather
<a href="qnpinstance.html#d8bf4f">QNPInstance::newStream</a>() if a stream is required.
<h3 class="fn"><a name="92d58b"></a>QNPStream::~QNPStream()</h3>
<p>Destroys the stream.
<h3 class="fn">bool<a name="2d104b"></a>QNPStream::complete()const</h3>
<p>Returns TRUE if the stream has received all the data from
the source.
<h3 class="fn">uint<a name="d784d1"></a>QNPStream::end()const</h3>
<p>Returns the length of the stream (???).
<h3 class="fn"><a href="qnpinstance.html">QNPInstance</a>*<a name="d25257"></a>QNPStream::instance()</h3>
<p>Returns the <a href="qnpinstance.html">QNPInstance</a> for which this stream was created.
<h3 class="fn">uint<a name="5c3dab"></a>QNPStream::lastModified()const</h3>
<p>Returns the time when the source of the stream was last modified.
<h3 class="fn">bool<a name="c295fc"></a>QNPStream::okay()const</h3>
<p>Returns TRUE if no errors have occurred on the stream.
<h3 class="fn">void<a name="103722"></a>QNPStream::requestRead(intoffset, uintlength)</h3>
<p>Requests the given section of the stream be sent to the
<a href="qnpinstance.html#248e16">QNPInstance::write</a>() function of the <a href="#d25257">instance</a>() of this stream.
<h3 class="fn">bool<a name="dea454"></a>QNPStream::seekable()const</h3>
<p>Returns TRUE if the stream is seekable.
<h3 class="fn">constchar*<a name="611967"></a>QNPStream::type()const</h3>
<p>Returns the MIME type of the stream.
<h3 class="fn">constchar*<a name="562816"></a>QNPStream::url()const</h3>
<p>Returns the URL from which the stream was created.
<h3 class="fn">int<a name="7a88d2"></a>QNPStream::write(intlen, void*buffer)</h3>
<p>Writes data <em>to</em> the stream.
<h3 class="fn">void<a name="fa4a7f"></a>QNPStream::setComplete(booly)</h3>
<p>For internal use only.
<h3 class="fn">void<a name="4bfbcc"></a>QNPStream::setOkay(booly)</h3>
<p>For internal use only.
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright © 1995-2001
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright 2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>
|