diff options
Diffstat (limited to 'doc/man/man3/tqnpinstance.3qt')
-rw-r--r-- | doc/man/man3/tqnpinstance.3qt | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/doc/man/man3/tqnpinstance.3qt b/doc/man/man3/tqnpinstance.3qt index 1c2e2dabf..ef3eea78e 100644 --- a/doc/man/man3/tqnpinstance.3qt +++ b/doc/man/man3/tqnpinstance.3qt @@ -1,5 +1,5 @@ '\" t -.TH QNPInstance 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQNPInstance 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,18 +7,18 @@ .ad l .nh .SH NAME -QNPInstance \- TQObject that is a web browser plugin +TQNPInstance \- TQObject that is a web browser plugin .SH SYNOPSIS This class is part of the \fBQt Netscape Extension\fR. .PP -\fC#include <ntqnp.h>\fR +\fC#include <tqnp.h>\fR .PP Inherits TQObject. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fB~QNPInstance\fR ()" +.BI "\fB~TQNPInstance\fR ()" .br .ti -1c .BI "int \fBargc\fR () const" @@ -45,25 +45,25 @@ Inherits TQObject. .BI "const char * \fBuserAgent\fR () const" .br .ti -1c -.BI "virtual QNPWidget * \fBnewWindow\fR ()" +.BI "virtual TQNPWidget * \fBnewWindow\fR ()" .br .ti -1c -.BI "QNPWidget * \fBwidget\fR ()" +.BI "TQNPWidget * \fBwidget\fR ()" .br .ti -1c .BI "enum \fBStreamMode\fR { Normal = 1, Seek = 2, AsFile = 3, AsFileOnly = 4 }" .br .ti -1c -.BI "virtual bool \fBnewStreamCreated\fR ( QNPStream *, StreamMode & smode )" +.BI "virtual bool \fBnewStreamCreated\fR ( TQNPStream *, StreamMode & smode )" .br .ti -1c -.BI "virtual int \fBwriteReady\fR ( QNPStream * )" +.BI "virtual int \fBwriteReady\fR ( TQNPStream * )" .br .ti -1c -.BI "virtual int \fBwrite\fR ( QNPStream *, int offset, int len, void * buffer )" +.BI "virtual int \fBwrite\fR ( TQNPStream *, int offset, int len, void * buffer )" .br .ti -1c -.BI "virtual void \fBstreamDestroyed\fR ( QNPStream * )" +.BI "virtual void \fBstreamDestroyed\fR ( TQNPStream * )" .br .ti -1c .BI "void \fBstatus\fR ( const char * msg )" @@ -78,10 +78,10 @@ Inherits TQObject. .BI "void \fBpostURL\fR ( const char * url, const char * window, uint len, const char * buf, bool file )" .br .ti -1c -.BI "QNPStream * \fBnewStream\fR ( const char * mimetype, const char * window, bool as_file = FALSE )" +.BI "TQNPStream * \fBnewStream\fR ( const char * mimetype, const char * window, bool as_file = FALSE )" .br .ti -1c -.BI "virtual void \fBstreamAsFile\fR ( QNPStream *, const char * fname )" +.BI "virtual void \fBstreamAsFile\fR ( TQNPStream *, const char * fname )" .br .ti -1c .BI "void * \fBgetJavaPeer\fR () const" @@ -99,58 +99,58 @@ Inherits TQObject. .SS "Protected Members" .in +1c .ti -1c -.BI "\fBQNPInstance\fR ()" +.BI "\fBTQNPInstance\fR ()" .br .in -1c .SH DESCRIPTION This class is defined in the \fBQt Netscape Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API. .PP -The QNPInstance class provides a TQObject that is a web browser plugin. +The TQNPInstance class provides a TQObject that is a web browser plugin. .PP -Deriving from QNPInstance creates an object that represents a single \fC<EMBED>\fR tag in an HTML document. +Deriving from TQNPInstance creates an object that represents a single \fC<EMBED>\fR tag in an HTML document. .PP -The QNPInstance is responsible for creating an appropriate QNPWidget window if required (not all plugins have windows), and for interacting with the input/output facilities intrinsic to plugins. +The TQNPInstance is responsible for creating an appropriate TQNPWidget window if required (not all plugins have windows), and for interacting with the input/output facilities intrinsic to plugins. .PP Note that there is \fIabsolutely no guarantee\fR regarding the order in which functions are called. Sometimes the browser will call newWindow() first, at other times, newStreamCreated() will be called first (assuming the \fC<EMBED>\fR tag has a SRC parameter). .PP \fINone of Qt's GUI functionality\fR may be used until after the first call to newWindow(). This includes any use of TQPaintDevice (i.e. TQPixmap, TQWidget, and all subclasses), QApplication, anything related to TQPainter (TQBrush, etc.), fonts, TQMovie, TQToolTip, etc. Useful classes which specifically \fIcan\fR be used are TQImage, TQFile, and TQBuffer. .PP -This restriction can easily be accommodated by structuring your plugin so that the task of the QNPInstance is to gather data, while the task of the QNPWidget is to provide a graphical interface to that data. +This restriction can easily be accommodated by structuring your plugin so that the task of the TQNPInstance is to gather data, while the task of the TQNPWidget is to provide a graphical interface to that data. .SS "Member Type Documentation" -.SH "QNPInstance::InstanceMode" +.SH "TQNPInstance::InstanceMode" This enum type provides Qt-style names for three #defines in \fCnpapi.h\fR: .TP -\fCQNPInstance::Embed\fR - corresponds to NP_EMBED +\fCTQNPInstance::Embed\fR - corresponds to NP_EMBED .TP -\fCQNPInstance::Full\fR - corresponds to NP_FULL +\fCTQNPInstance::Full\fR - corresponds to NP_FULL .TP -\fCQNPInstance::Background\fR - corresponds to NP_BACKGROUND -.SH "QNPInstance::Reason" +\fCTQNPInstance::Background\fR - corresponds to NP_BACKGROUND +.SH "TQNPInstance::Reason" .TP -\fCQNPInstance::ReasonDone\fR +\fCTQNPInstance::ReasonDone\fR .TP -\fCQNPInstance::ReasonBreak\fR +\fCTQNPInstance::ReasonBreak\fR .TP -\fCQNPInstance::ReasonError\fR +\fCTQNPInstance::ReasonError\fR .TP -\fCQNPInstance::ReasonUnknown\fR -.SH "QNPInstance::StreamMode" +\fCTQNPInstance::ReasonUnknown\fR +.SH "TQNPInstance::StreamMode" .TP -\fCQNPInstance::Normal\fR +\fCTQNPInstance::Normal\fR .TP -\fCQNPInstance::Seek\fR +\fCTQNPInstance::Seek\fR .TP -\fCQNPInstance::AsFile\fR +\fCTQNPInstance::AsFile\fR .TP -\fCQNPInstance::AsFileOnly\fR +\fCTQNPInstance::AsFileOnly\fR .SH MEMBER FUNCTION DOCUMENTATION -.SH "QNPInstance::QNPInstance ()\fC [protected]\fR" -Creates a QNPInstance. +.SH "TQNPInstance::TQNPInstance ()\fC [protected]\fR" +Creates a TQNPInstance. .PP -Can only be called from within a derived class created within QNPlugin::newInstance(). -.SH "QNPInstance::~QNPInstance ()" +Can only be called from within a derived class created within TQNPlugin::newInstance(). +.SH "TQNPInstance::~TQNPInstance ()" Called when the plugin instance is about to be deleted. -.SH "const char * QNPInstance::arg ( const char * name ) const" +.SH "const char * TQNPInstance::arg ( const char * name ) const" Returns the value of the named arguments, or 0 if no argument called \fIname\fR appears in the \fC<EMBED>\fR tag of this instance. If the argument appears, but has no value assigned, the empty string is returned. In summary: .PP <center>.nf @@ -165,49 +165,49 @@ Tag Result .TE .fi </center> -.SH "int QNPInstance::argc () const" +.SH "int TQNPInstance::argc () const" Returns the number of arguments to the instance. Note that you should not normally rely on the ordering of arguments, and note that the SGML specification does not permit multiple arguments with the same name. .PP See also arg() and argn(). -.SH "const char * QNPInstance::argn ( int i ) const" +.SH "const char * TQNPInstance::argn ( int i ) const" Returns the name of the \fIi\fR-th argument. .PP See also argc() and argv(). -.SH "const char * QNPInstance::argv ( int i ) const" +.SH "const char * TQNPInstance::argv ( int i ) const" Returns the value of the \fIi\fR-th argument. .PP \\as argc(), arg() -.SH "void * QNPInstance::getJavaPeer () const" +.SH "void * TQNPInstance::getJavaPeer () const" Returns the Java object associated with the plugin instance, an object of the plugin's Java class, or 0 if the plug-in does not have a Java class, Java is disabled, or an error occurred. .PP The return value is actually a \fCjref\fR we use \fCvoid*\fR so as to avoid burdening plugins which do not require Java. .PP -See also QNPlugin::getJavaClass() and QNPlugin::getJavaEnv(). -.SH "void QNPInstance::getURL ( const char * url, const char * window = 0 )" +See also TQNPlugin::getJavaClass() and TQNPlugin::getJavaEnv(). +.SH "void TQNPInstance::getURL ( const char * url, const char * window = 0 )" Requests that the \fIurl\fR be retrieved and sent to the named \fIwindow\fR. See Netscape's JavaScript documentation for an explanation of window names. -.SH "void QNPInstance::getURLNotify ( const char * url, const char * window = 0, void * data = 0 )" +.SH "void TQNPInstance::getURLNotify ( const char * url, const char * window = 0, void * data = 0 )" Requests that the given \fIurl\fR be retrieved and sent to the named \fIwindow\fR. See Netscape's JavaScript documentation for an explanation of window names. Passes the arguments including \fIdata\fR to NPN_GetURLNotify. .PP Netscape: NPN_GetURLNotify method -.SH "InstanceMode QNPInstance::mode () const" +.SH "InstanceMode TQNPInstance::mode () const" Returns the mode of the plugin. -.SH "QNPStream * QNPInstance::newStream ( const char * mimetype, const char * window, bool as_file = FALSE )" +.SH "TQNPStream * TQNPInstance::newStream ( const char * mimetype, const char * window, bool as_file = FALSE )" \fBThis function is under development and is subject to change.\fR .PP This function is \fInot tested\fR. .PP Requests the creation of a new data stream \fIfrom\fR the plugin. The MIME type and window are passed in \fImimetype\fR and \fIwindow\fR. \fIas_file\fR holds the AsFileOnly flag. It is an interface to the NPN_NewStream function of the Netscape Plugin API. -.SH "bool QNPInstance::newStreamCreated ( QNPStream *, StreamMode & smode )\fC [virtual]\fR" +.SH "bool TQNPInstance::newStreamCreated ( TQNPStream *, StreamMode & smode )\fC [virtual]\fR" This function is called when a new stream has been created. The instance should return TRUE if it accepts the processing of the stream. If the instance requires the stream as a file, it should set \fIsmode\fR to AsFileOnly, in which case the data will be delivered some time later to the streamAsFile() function. Otherwise, the data will be delivered in chunks to the write() function, which must consume at least as much data as returned by the most recent call to writeReady(). .PP Note that the AsFileOnly method is not supported by Netscape 2.0 and MSIE 3.0. .PP The default implementation accepts any stream. -.SH "QNPWidget * QNPInstance::newWindow ()\fC [virtual]\fR" -Called at most once, at some time after the QNPInstance is created. If the plugin requires a window, this function should return a derived class of QNPWidget that provides the required interface. +.SH "TQNPWidget * TQNPInstance::newWindow ()\fC [virtual]\fR" +Called at most once, at some time after the TQNPInstance is created. If the plugin requires a window, this function should return a derived class of TQNPWidget that provides the required interface. .PP Example: grapher/grapher.cpp. -.SH "void QNPInstance::notifyURL ( const char * url, Reason r, void * notifyData )\fC [virtual]\fR" +.SH "void TQNPInstance::notifyURL ( const char * url, Reason r, void * notifyData )\fC [virtual]\fR" \fBThis function is under development and is subject to change.\fR .PP This function is \fInot tested\fR. @@ -217,7 +217,7 @@ Called whenever a \fIurl\fR is notified after a call to NPN_GetURLNotify with \f It is an encapsulation of the NPP_URLNotify function of the Netscape Plugin API. .PP See also: Netscape: NPP_URLNotify method -.SH "void QNPInstance::postURL ( const char * url, const char * window, uint len, const char * buf, bool file )" +.SH "void TQNPInstance::postURL ( const char * url, const char * window, uint len, const char * buf, bool file )" \fBThis function is under development and is subject to change.\fR .PP This function is \fInot tested\fR. @@ -225,7 +225,7 @@ This function is \fInot tested\fR. It is an interface to the NPN_PostURL function of the Netscape Plugin API. .PP Passes \fIurl\fR, \fIwindow\fR, \fIbuf\fR, \fIlen\fR, and \fIfile\fR to NPN_PostURL. -.SH "void QNPInstance::print ( TQPainter * )\fC [virtual]\fR" +.SH "void TQNPInstance::print ( TQPainter * )\fC [virtual]\fR" \fBThis function is under development and is subject to change.\fR .PP This function is \fInot tested\fR. @@ -233,39 +233,39 @@ This function is \fInot tested\fR. Print the instance embedded in a page. .PP It is an encapsulation of the NPP_Print function of the Netscape Plugin API. -.SH "bool QNPInstance::printFullPage ()\fC [virtual]\fR" +.SH "bool TQNPInstance::printFullPage ()\fC [virtual]\fR" \fBThis function is under development and is subject to change.\fR .PP This function is \fInot tested\fR. .PP It is an encapsulation of the NPP_Print function of the Netscape Plugin API. -.SH "void QNPInstance::status ( const char * msg )" +.SH "void TQNPInstance::status ( const char * msg )" Sets the status message in the browser containing this instance to \fImsg\fR. -.SH "void QNPInstance::streamAsFile ( QNPStream *, const char * fname )\fC [virtual]\fR" +.SH "void TQNPInstance::streamAsFile ( TQNPStream *, const char * fname )\fC [virtual]\fR" Called when a stream is delivered as a single file called \fIfname\fR rather than as chunks. This may be simpler for a plugin to deal with, but precludes any incremental behavior. .PP Note that the AsFileOnly method is not supported by Netscape 2.0 and MSIE 3.0. .PP See also newStreamCreated() and newStream(). -.SH "void QNPInstance::streamDestroyed ( QNPStream * )\fC [virtual]\fR" +.SH "void TQNPInstance::streamDestroyed ( TQNPStream * )\fC [virtual]\fR" Called when a stream is destroyed. At this point, the stream may be complete() and okay(). If it is not okay(), then an error has occurred. If it is okay(), but not complete(), then the user has cancelled the transmission; do not give an error message in this case. -.SH "const char * QNPInstance::userAgent () const" +.SH "const char * TQNPInstance::userAgent () const" Returns the user agent (browser name) containing this instance. -.SH "QNPWidget * QNPInstance::widget ()" +.SH "TQNPWidget * TQNPInstance::widget ()" Returns the plugin window created by newWindow(), if any. -.SH "int QNPInstance::write ( QNPStream *, int offset, int len, void * buffer )\fC [virtual]\fR" +.SH "int TQNPInstance::write ( TQNPStream *, int offset, int len, void * buffer )\fC [virtual]\fR" Called when incoming data is available for processing by the instance. The instance \fImust\fR consume at least the amount that it returned in the most recent call to writeReady(), but it may consume up to the amount given by \fIlen\fR. \fIbuffer\fR is the data available for consumption. The \fIoffset\fR argument is merely an informational value indicating the total amount of data that has been consumed in prior calls. .PP This function should return the amount of data actually consumed. .PP Example: grapher/grapher.cpp. -.SH "int QNPInstance::writeReady ( QNPStream * )\fC [virtual]\fR" +.SH "int TQNPInstance::writeReady ( TQNPStream * )\fC [virtual]\fR" Returns the minimum amount of data the instance is willing to receive from the given stream. .PP The default returns a very large value. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qnpinstance.html +.BR http://doc.trolltech.com/tqnpinstance.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |