QNPStream(3qt)
β¨ QNPStream β¨
okay bestie, welcome to the QNPStream manual page β that's the 3qt one, Qt 3 era, Trolltech royalty π. Sit down, hydrate, and let's get into it π
π NAME π
QNPStream β a stream of data that the browser hands over to a QNPInstance, no cap.
π¦ SYNOPSIS π¦
This class is part of the Qt Netscape Extension, periodt.
#include <qnp.h>
π Public Members π
~QNPStream ()
const char * url () const
uint end () const
uint lastModified () const
const char * type () const
bool seekable () const
bool okay () const
bool complete () const
void requestRead ( int offset, uint length )
int write ( int len, void * buffer )
QNPInstance * instance ()
QNPStream ( QNPInstance * in, const char * mt, _NPStream * st, bool se )
πΈ DESCRIPTION πΈ
So this class is defined in the Qt Netscape Extension, which lives in the qt/extensions directory. She is not included in the main Qt API β she's off in her own little corner, main character energy but technically separate, iykyk.
The QNPStream class provides a stream of data provided to a QNPInstance by the browser. That's literally the whole vibe.
β οΈ Note that this is neither aQTextStreamnor aQDataStream. Do not get it twisted, bestie. Different girl entirely. π
See also QNPInstance::write() and QNPInstance::newStreamCreated() β go say hi to them too π«Ά
π§ MEMBER FUNCTION DOCUMENTATION π§
β QNPStream::QNPStream ( QNPInstance * in, const char * mt, _NPStream * st, bool se )
Creates a stream. π
π Plugins should not call this. If you need a stream, call QNPInstance::newStream() instead. Stay in your lane, queen.
Takes a QNPInstance in, a MIME type mt, a pointer to an _NPStream st, and a seekable flag se. Four little arguments, one iconic constructor β¨
π QNPStream::~QNPStream ()
Destroys the stream. RIP to a real one πͺ¦π
π bool QNPStream::complete () const
Returns TRUE if the stream has received all the data from the source; otherwise returns FALSE. She's either done-done or she's not, there is no in between π
π uint QNPStream::end () const
Returns the length of the stream in bytes. Heads up though β this function might return 0 for streams of unknown length. Mystery length stream, she's keeping secrets π
π QNPInstance * QNPStream::instance ()
Returns the QNPInstance for which this stream was created. Finding her origin story fr fr.
π¦ uint QNPStream::lastModified () const
Returns the time when the source of the stream was last modified. Time stamp behaviour, very "when was this last touched" energy β°
π bool QNPStream::okay () const
Returns TRUE if no errors have occurred on the stream; otherwise returns FALSE. The vibe check of the entire class, honestly. π«Ά
β¨ void QNPStream::requestRead ( int offset, uint length )
Requests the section of the stream, of length bytes from offset, be sent to the QNPInstance::write() function of the instance() of this stream. Basically: "hey, send me this slice, right here" π¬
π bool QNPStream::seekable () const
Returns TRUE if the stream is seekable; otherwise returns FALSE. Can we skip around or not, that's the question π§
π const char * QNPStream::type () const
Returns the MIME type of the stream. What kind of data is she, bestie π
π const char * QNPStream::url () const
Returns the URL from which the stream was created. Her birthplace, lowkey π
π§ int QNPStream::write ( int len, void * buffer )
Writes len bytes from buffer to the stream. Just putting the bytes where they belong, slay βοΈβ¨
π₯ SEE ALSO π₯
π COPYRIGHT π
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. Read it, bestie, it's giving legal and it's giving important π
βοΈ AUTHOR βοΈ
Generated automatically from the source code. Not a human hand-written moment, just robots doing their thing π€β¨
π BUGS π
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. π«Ά (genuinely, they mean it β good reports are iconic)
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. So like, enjoy it, but know she's unofficial π₯²
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qnpstream.3qt) and the Qt version (3.3.8). Include the deets or the report doesn't count, periodt π
okay that's the whole page bestie!! this one's from Trolltech AS, dated 2 February 2007, and it's the QNPStream(3qt) manual β love her, she's vintage πβ¨π
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms