• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEWebKit

Public Member Functions | Protected Member Functions | List of all members
KWebPluginFactory Class Reference

#include <kwebpluginfactory.h>

Inheritance diagram for KWebPluginFactory:
Inheritance graph
[legend]

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
 
- Public Member Functions inherited from QWebPluginFactory
 QWebPluginFactory (QObject *parent)
 
virtual  ~QWebPluginFactory ()
 
virtual QObject * create (const QString &mimeType, const QUrl &url, const QStringList &argumentNames, const QStringList &argumentValues) const =0
 
virtual QList< Plugin > plugins () const =0
 
virtual void refreshPlugins ()
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () 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
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

A QWebPluginFactory with integration into the KDE environment.

This class will attempt to find a KPart to satisfy a plugin request.

Author
Michael Howell mhowe.nosp@m.ll12.nosp@m.3@gma.nosp@m.il.c.nosp@m.om
Dawit Alemayehu adawi.nosp@m.t@kd.nosp@m.e.org
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

QObject * KWebPluginFactory::create ( const QString &  mimeType,
const QUrl &  url,
const QStringList &  argumentNames,
const QStringList &  argumentValues 
) const
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.

KParts::ReadOnlyPart * KWebPluginFactory::createPartInstanceFrom ( const QString &  mimeType,
const QStringList &  argumentNames,
const QStringList &  argumentValues,
QWidget *  parentWidget = 0,
QObject *  parent = 0 
) const
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.

bool KWebPluginFactory::excludedMimeType ( const QString &  mimeType) const
protected

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.

void KWebPluginFactory::extractGuessedMimeType ( const QUrl &  url,
QString *  mimeType 
) const
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.

QList< KWebPluginFactory::Plugin > KWebPluginFactory::plugins ( ) const
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:
  • kwebpluginfactory.h
  • kwebpluginfactory.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEWebKit

Skip menu "KDEWebKit"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal