Qt logo

QNPStream Class Reference


A stream of data provided to a QNPInstance by the browser. This class is part of the Qt NSPlugin Extension. More...

#include <qnp.h>

List of all member functions.

Public Members


Detailed Description

This class is defined in the Qt NSPlugin Extension, which can be found in the qt/extensions directory. It is not included in the main Qt API.

A stream of data provided to a QNPInstance by the browser.

Note that this is neither a QTextStream or a QDataStream.

See also: QNPInstance::write() and QNPInstance::newStreamCreated().

Examples: qtimage/qtimage.cpp grapher/grapher.cpp


Member Function Documentation

QNPStream::QNPStream(QNPInstance*in,constchar*mt, _NPStream*st, boolse)

Creates a stream. Plugins should not call this, but rather QNPInstance::newStream() if a stream is required.

QNPStream::~QNPStream()

Destroys the stream.

boolQNPStream::complete()const

Returns TRUE if the stream has received all the data from the source.

uintQNPStream::end()const

Returns the length of the stream (???).

QNPInstance*QNPStream::instance()

Returns the QNPInstance for which this stream was created.

uintQNPStream::lastModified()const

Returns the time when the source of the stream was last modified.

boolQNPStream::okay()const

Returns TRUE if no errors have occurred on the stream.

voidQNPStream::requestRead(intoffset, uintlength)

Requests the given section of the stream be sent to the QNPInstance::write() function of the instance() of this stream.

boolQNPStream::seekable()const

Returns TRUE if the stream is seekable.

voidQNPStream::setComplete(booly)

For internal use only.

voidQNPStream::setOkay(booly)

For internal use only.

constchar*QNPStream::type()const

Returns the MIME type of the stream.

constchar*QNPStream::url()const

Returns the URL from which the stream was created.

intQNPStream::write(intlen, void*buffer)

Writes data to the stream.


Search the documentation, FAQ, qt-interest archive and more (uses www.troll.no):


This file is part of the Qt toolkit, copyright © 1995-99 Troll Tech, all rights reserved.


Copyright 1999 Troll TechTrademarks
Qt version 2.0.2