QNPStream(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

✨ 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 a QTextStream nor a QDataStream. 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 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