This class is defined in the \fBQt Netscape Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API.
The QNPStream class provides a stream of data provided to a QNPInstance by the browser.
.PP
Note that this is neither a QTextStream nor a QDataStream.
.PP
See also QNPInstance::write() and QNPInstance::newStreamCreated().
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QNPStream::QNPStream ( QNPInstance * in, const char * mt, _NPStream * st, bool se )"
Creates a stream. Plugins should not call this; they should call QNPInstance::newStream() if they need a stream.
.PP
Takes a QNPInstance \fIin\fR, MIME type \fImt\fR, a pointer to an _NPStream \fIst\fR and a seekable flag \fIse\fR.
.SH "QNPStream::~QNPStream ()"
Destroys the stream.
.SH "bool QNPStream::complete () const"
Returns TRUE if the stream has received all the data from the source; otherwise returns FALSE.
.SH "uint QNPStream::end () const"
Returns the length of the stream in bytes. The function might return 0 for streams of unknown length.
.SH "QNPInstance * QNPStream::instance ()"
Returns the QNPInstance for which this stream was created.
.SH "uint QNPStream::lastModified () const"
Returns the time when the source of the stream was last modified.
.SH "bool QNPStream::okay () const"
Returns TRUE if no errors have occurred on the stream; otherwise returns FALSE.
.SH "void QNPStream::requestRead ( int offset, uint length )"
Requests the section of the stream, of \fIlength\fR bytes from \fIoffset\fR, be sent to the QNPInstance::write() function of the instance() of this stream.
.SH "bool QNPStream::seekable () const"
Returns TRUE if the stream is seekable; otherwise returns FALSE.
.SH "const char * QNPStream::type () const"
Returns the MIME type of the stream.
.SH "const char * QNPStream::url () const"
Returns the URL from which the stream was created.
.SH "int QNPStream::write ( int len, void * buffer )"
Writes \fIlen\fR bytes from \fIbuffer\fR \fIto\fR the stream.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qnpstream.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in