Home · All Classes · All Functions · Overviews

QWebPluginInfo Class Reference
[
QtWebKit module]

The QWebPluginInfo class represents a single Netscape plugin. More...

 #include <QWebPluginInfo>

This class is not part of the Qt GUI Framework Edition.

This class was introduced in Qt 4.6.


Public Types

typedef MimeType

Public Functions

QWebPluginInfo ()
QWebPluginInfo ( const QWebPluginInfo & other )
~QWebPluginInfo ()
QString description () const
bool isEnabled () const
bool isNull () const
QList<MimeType> mimeTypes () const
QString name () const
QString path () const
void setEnabled ( bool enabled )
bool supportsMimeType ( const QString & mimeType ) const
bool operator!= ( const QWebPluginInfo & other ) const
QWebPluginInfo & operator= ( const QWebPluginInfo & other )
bool operator== ( const QWebPluginInfo & other ) const

Detailed Description

The QWebPluginInfo class represents a single Netscape plugin.

A QWebPluginInfo object represents a Netscape plugin picked up by WebKit and included in the plugin database. This class contains information about the plugin, such as its name(), description(), a list of MIME types that it supports (can be accessed with mimeTypes()) and the path of the plugin file.

Plugins can be enabled and disabled with setEnabled(). If a plugin is disabled, it will not be used by WebKit to handle supported MIME types. To check if a plugin is enabled or not, use enabled().

See also QWebPluginDatabase.


Member Type Documentation

typedef QWebPluginInfo::MimeType

Represents a single MIME type supported by a plugin.

This typedef was introduced in Qt 4.6.


Member Function Documentation

QWebPluginInfo::QWebPluginInfo ()

Constructs a null QWebPluginInfo.

QWebPluginInfo::QWebPluginInfo ( const QWebPluginInfo & other )

Contructs a copy of other.

QWebPluginInfo::~QWebPluginInfo ()

Destroys the plugin info.

QString QWebPluginInfo::description () const

Returns the description of the plugin.

See also name().

bool QWebPluginInfo::isEnabled () const

Returns true if the plugin is enabled; otherwise returns false.

See also setEnabled().

bool QWebPluginInfo::isNull () const

Returns true if the plugin is a null plugin; otherwise returns false.

QList<MimeType> QWebPluginInfo::mimeTypes () const

Returns a list of MIME types supported by the plugin.

See also supportsMimeType().

QString QWebPluginInfo::name () const

Returns the name of the plugin.

See also description().

QString QWebPluginInfo::path () const

Returns an absolute path to the plugin file.

void QWebPluginInfo::setEnabled ( bool enabled )

Enables or disables the plugin, depending on the enabled parameter.

Disabled plugins will not be picked up by WebKit when looking for a plugin supporting a particular MIME type.

See also isEnabled().

bool QWebPluginInfo::supportsMimeType ( const QString & mimeType ) const

Returns true if the plugin supports a specific mimeType; otherwise returns false.

See also mimeTypes().

bool QWebPluginInfo::operator!= ( const QWebPluginInfo & other ) const

Returns true if this plugin info is different from the other plugin info.

QWebPluginInfo & QWebPluginInfo::operator= ( const QWebPluginInfo & other )

Assigns the other plugin info to this plugin info, and returns a reference to this plugin info.

bool QWebPluginInfo::operator== ( const QWebPluginInfo & other ) const

Returns true if this plugin info is the same as the other plugin info.


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.0