|
|
Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The QNPlugin class provides the main factory for plugin objects. More...
This class is part of the Qt Netscape Extension.
#include <qnp.h>
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 QNPlugin class provides the main factory for plugin objects.
This class is the heart of the plugin. One instance of this object is created when the plugin is first needed, by calling QNPlugin::create(), which must be implemented in your plugin code to return some derived class of QNPlugin. The one QNPlugin object creates all QNPInstance instances for a web browser running in a single process.
Additionally, if Qt is linked to the plugin as a dynamic library, only one instance of QApplication will exist across all plugins that have been made with Qt. So, your plugin should tread lightly on global settings. Do not, for example, use QApplication::setFont() - that will change the font in every widget of every Qt-based plugin currently loaded!
This function must be implemented by your plugin code. It should return a derived class of QNPlugin.
If you override this class, you must also override QNPlugin::unuseJavaClass().
The return value is actually a jref; we use void* so as to avoid burdening plugins which do not require Java.
See also getJavaEnv() and QNPInstance::getJavaPeer().
The return value is actually a JRIEnv*; we use void* so as to avoid burdening plugins which do not require Java.
See also getJavaClass() and QNPInstance::getJavaPeer().
Override this function to return the MIME description of the data formats supported by your plugin. The format of this string is shown by the following example:
const char* getMIMEDescription() const { return "image/x-png:png:PNG Image;" "image/png:png:PNG Image;" "image/x-portable-bitmap:pbm:PBM Image;" "image/x-portable-graymap:pgm:PGM Image;" "image/x-portable-pixmap:ppm:PPM Image;" "image/bmp:bmp:BMP Image;" "image/x-ms-bmp:bmp:BMP Image;" "image/x-xpixmap:xpm:XPM Image;" "image/xpm:xpm:XPM Image"; }
Returns a pointer to the plain-text description of the plugin.
Returns a pointer to the plain-text name of the plugin.
Override this function to return an appropriate derived class of QNPInstance.
This file is part of the Qt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.
Copyright © 2007 Trolltech | Trademarks | Qt 3.3.8
|