Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

qnpstream(3qt) [centos man page]

QNPStream(3qt)															    QNPStream(3qt)

NAME
QNPStream - Stream of data provided to a QNPInstance by the browser SYNOPSIS
This class is part of the Qt Netscape Extension. #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
This class is defined in the Qt Netscape Extension, which can be found in the qt/extensions directory. It is not included in the main Qt API. The QNPStream class provides a stream of data provided to a QNPInstance by the browser. Note that this is neither a QTextStream nor a QDataStream. See also QNPInstance::write() and QNPInstance::newStreamCreated(). MEMBER FUNCTION DOCUMENTATION
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. Takes a QNPInstance in, MIME type mt, a pointer to an _NPStream st and a seekable flag se. QNPStream::~QNPStream () Destroys the stream. bool QNPStream::complete () const Returns TRUE if the stream has received all the data from the source; otherwise returns FALSE. uint QNPStream::end () const Returns the length of the stream in bytes. The function might return 0 for streams of unknown length. QNPInstance * QNPStream::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. bool QNPStream::okay () const Returns TRUE if no errors have occurred on the stream; otherwise returns FALSE. 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. bool QNPStream::seekable () const Returns TRUE if the stream is seekable; otherwise returns FALSE. 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 len bytes from buffer to the stream. SEE ALSO
http://doc.trolltech.com/qnpstream.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. 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. 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. 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). Trolltech AS 2 February 2007 QNPStream(3qt)

Check Out this Related Man Page

QNPWidget(3qt)															    QNPWidget(3qt)

NAME
QNPWidget - QWidget that is a web browser plugin window SYNOPSIS
This class is part of the Qt Netscape Extension. #include <qnp.h> Inherits QWidget. Public Members QNPWidget () ~QNPWidget () virtual void enterInstance () virtual void leaveInstance () QNPInstance * instance () DESCRIPTION
This class is defined in the Qt Netscape Extension, which can be found in the qt/extensions directory. It is not included in the main Qt API. The QNPWidget class provides a QWidget that is a web browser plugin window. Derive from QNPWidget to create a widget that can be used as a web browser plugin window, or create one and add child widgets. Instances of QNPWidget may only be created when QNPInstance::newWindow() is called by the browser. A common way to develop a plugin widget is to develop it as a stand-alone application window, then make it a child of a plugin widget to use it as a browser plugin. The technique is: class MyPluginWindow : public QNPWidget { QWidget* child; public: MyPluginWindow() { // Some widget that is normally used as a top-level widget child = new MyIndependentlyDevelopedWidget(); // Use the background color of the web page child->setBackgroundColor( backgroundColor() ); // Fill the plugin widget child->setGeometry( 0, 0, width(), height() ); } void resizeEvent(QResizeEvent*) { // Fill the plugin widget child->resize(size()); } }; The default implementation is an empty window. MEMBER FUNCTION DOCUMENTATION
QNPWidget::QNPWidget () Creates a QNPWidget. QNPWidget::~QNPWidget () Destroys the window. This will be called by the plugin binding code when the window is no longer required. The web browser will delete windows when they leave the page. The bindings will change the QWidget::winId() of the window when the window is resized, but this should not affect normal widget behavior. void QNPWidget::enterInstance () [virtual] Called when the mouse enters the plugin window. Does nothing by default. Example: grapher/grapher.cpp. QNPInstance * QNPWidget::instance () Returns the instance for which this widget is the plugin window. void QNPWidget::leaveInstance () [virtual] Called when the mouse leaves the plugin window. Does nothing by default. Example: grapher/grapher.cpp. SEE ALSO
http://doc.trolltech.com/qnpwidget.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. 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. 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. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qnpwidget.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QNPWidget(3qt)
Man Page