KDEWebKit
#include <kwebpluginfactory.h>
Public Member Functions | |
KWebPluginFactory (QObject *parent) | |
~KWebPluginFactory () | |
virtual QObject * | create (const QString &mimeType, const QUrl &url, const QStringList &argumentNames, const QStringList &argumentValues) const |
virtual QList< Plugin > | plugins () const |
Protected Member Functions | |
KParts::ReadOnlyPart * | createPartInstanceFrom (const QString &mimeType, const QStringList &argumentNames, const QStringList &argumentValues, QWidget *parentWidget=0, QObject *parent=0) const |
bool | excludedMimeType (const QString &mimeType) const |
void | extractGuessedMimeType (const QUrl &url, QString *mimeType) const |
Detailed Description
A QWebPluginFactory with integration into the KDE environment.
This class will attempt to find a KPart to satisfy a plugin request.
- See also
- QWebPluginFactory
- Since
- 4.4
Definition at line 45 of file kwebpluginfactory.h.
Constructor & Destructor Documentation
KWebPluginFactory::KWebPluginFactory | ( | QObject * | parent | ) |
Constructs a KWebPluginFactory with parent parent
.
Definition at line 49 of file kwebpluginfactory.cpp.
KWebPluginFactory::~KWebPluginFactory | ( | ) |
Destroys the KWebPage.
Definition at line 54 of file kwebpluginfactory.cpp.
Member Function Documentation
|
virtual |
- Reimplemented from superclass.
Reimplemented for internal reasons, the API is not affected.
- See also
- QWebPluginFactory::create
Definition at line 58 of file kwebpluginfactory.cpp.
|
protected |
Returns an instance of the service associated with mimeType
.
This function uses KDE's trader to create an instance of the service associated with the given parameters. The parameters are the tags of the HTML object. The name and the value attributes of these tags are specified by the argumentNames
and argumentValues
respectively.
The parentWidget
and parent
parameters specify the widget to use as the parent of the newly created part and the parent for the part itself respectively.
The parameters for this function mirror that of QWebPluginFactory::create.
- See also
- QWebPluginFactory::create
- Since
- 4.8.3
Definition at line 130 of file kwebpluginfactory.cpp.
Returns true if the given mime-type is excluded from being used to create a web plugin using KDE's trader.
Currently this function only returns true for mimetypes 'x-java', 'x-shockwave-flash', and 'futuresplash' in the 'application' category and everything under the 'inode' category.
- Since
- 4.8.3
Definition at line 152 of file kwebpluginfactory.cpp.
|
protected |
Sets mimeType
to the content type guessed from url
.
Note that attempting to guess mime-type will not always produce the correct content-type. This is especially true for the HTTP protocol since the URL present might be for a cgi script URL instead of a static URL that directly points to the content.
If mimeType
is not NULL, this function will set it to the content type determined from url
.
- Since
- 4.8.3
Definition at line 119 of file kwebpluginfactory.cpp.
|
virtual |
- Reimplemented from superclass.
Reimplemented for internal reasons, the API is not affected.
- See also
- QWebPluginFactory::plugins
Definition at line 106 of file kwebpluginfactory.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.