QNPStream Class Reference


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

#include <qnp.h>

List of all member functions.

Public Members


Detailed Description

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

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

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


Member Function Documentation

QNPStream::QNPStream ( QNPInstance * in,const char * mt, _NPStream * st, bool se )

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

QNPStream::~QNPStream ()

Destroys the stream.

uint QNPStream::end () const

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

QNPInstanceQNPStream::instance ()

Returns the QNPInstance for which this stream was created.

uint QNPStream::lastModified () const

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

void QNPStream::requestRead ( int offset, uint length )

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

See also: Netscape: NPN_RequestRead method

bool QNPStream::seekable () const

Returns TRUE if the stream is seekable.

const char* QNPStream::type () const

Returns the MIME type of the stream.

const char* QNPStream::url () const

Returns the URL from which the stream was created.

int QNPStream::write ( int len, void * buffer )

Writes data to the stream.

See also: Netscape: NPN_Write method


This file is part of the Netscape Plugin Support for the Qt toolkit, copyright © 1992-97 Troll Tech, all rights reserved. You may use the Netscape Plugin Support classes on the same terms that you may use Qt.

It was generated from the following files:


Generated at 23:51, 1998/03/16 for Qt version 0.5 by the webmaster at Troll Tech