1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- qwebplugindatabase.cpp -->
7
<title>Qt 4.6: QWebPluginInfo Class Reference</title>
8
<link href="classic.css" rel="stylesheet" type="text/css" />
11
<a name="//apple_ref/cpp/cl//QWebPluginInfo" />
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
14
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
15
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
16
</tr></table><h1 class="title">QWebPluginInfo Class Reference<br /><span class="small-subtitle">[<a href="qtwebkit.html">QtWebKit</a> module]</span>
18
<p>The QWebPluginInfo class represents a single Netscape plugin. <a href="#details">More...</a></p>
19
<pre> #include <QWebPluginInfo></pre><p><b>This class is not part of the Qt GUI Framework Edition.</b></p>
20
<p>This class was introduced in Qt 4.6.</p>
22
<li><a href="qwebplugininfo-members.html">List of all members, including inherited members</a></li>
25
<a name="public-types"></a>
27
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
28
<tr><td class="memItemLeft" align="right" valign="top">typedef </td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#MimeType-typedef">MimeType</a></b></td></tr>
31
<a name="public-functions"></a>
32
<h2>Public Functions</h2>
33
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
34
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#QWebPluginInfo">QWebPluginInfo</a></b> ()</td></tr>
35
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#QWebPluginInfo-2">QWebPluginInfo</a></b> ( const QWebPluginInfo & <i>other</i> )</td></tr>
36
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#dtor.QWebPluginInfo">~QWebPluginInfo</a></b> ()</td></tr>
37
<tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#description">description</a></b> () const</td></tr>
38
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#isEnabled">isEnabled</a></b> () const</td></tr>
39
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#isNull">isNull</a></b> () const</td></tr>
40
<tr><td class="memItemLeft" align="right" valign="top">QList<MimeType> </td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#mimeTypes">mimeTypes</a></b> () const</td></tr>
41
<tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#name">name</a></b> () const</td></tr>
42
<tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#pathx">path</a></b> () const</td></tr>
43
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#setEnabled">setEnabled</a></b> ( bool <i>enabled</i> )</td></tr>
44
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#supportsMimeType">supportsMimeType</a></b> ( const QString & <i>mimeType</i> ) const</td></tr>
45
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#operator-not-eq">operator!=</a></b> ( const QWebPluginInfo & <i>other</i> ) const</td></tr>
46
<tr><td class="memItemLeft" align="right" valign="top">QWebPluginInfo & </td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#operator-eq">operator=</a></b> ( const QWebPluginInfo & <i>other</i> )</td></tr>
47
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qwebplugininfo.html#operator-eq-eq">operator==</a></b> ( const QWebPluginInfo & <i>other</i> ) const</td></tr>
49
<a name="details"></a>
51
<h2>Detailed Description</h2>
52
<p>The QWebPluginInfo class represents a single Netscape plugin.</p>
53
<p>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 <a href="qwebplugininfo.html#name">name</a>(), <a href="qwebplugininfo.html#description">description</a>(), a list of MIME types that it supports (can be accessed with <a href="qwebplugininfo.html#mimeTypes">mimeTypes</a>()) and the path of the plugin file.</p>
54
<p>Plugins can be enabled and disabled with <a href="qwebplugininfo.html#setEnabled">setEnabled</a>(). 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().</p>
55
<p>See also <a href="qwebplugindatabase.html">QWebPluginDatabase</a>.</p>
57
<h2>Member Type Documentation</h2>
58
<a name="//apple_ref/cpp/tdef/QWebPluginInfo/MimeType" />
59
<h3 class="fn"><a name="MimeType-typedef"></a>typedef QWebPluginInfo::MimeType</h3>
60
<p>Represents a single MIME type supported by a plugin.</p>
61
<p>This typedef was introduced in Qt 4.6.</p>
63
<h2>Member Function Documentation</h2>
64
<a name="//apple_ref/cpp/instm/QWebPluginInfo/QWebPluginInfo" />
65
<h3 class="fn"><a name="QWebPluginInfo"></a>QWebPluginInfo::QWebPluginInfo ()</h3>
66
<p>Constructs a null <a href="qwebplugininfo.html">QWebPluginInfo</a>.</p>
67
<h3 class="fn"><a name="QWebPluginInfo-2"></a>QWebPluginInfo::QWebPluginInfo ( const QWebPluginInfo & <i>other</i> )</h3>
68
<p>Contructs a copy of <i>other</i>.</p>
69
<a name="//apple_ref/cpp/instm/QWebPluginInfo/~QWebPluginInfo" />
70
<h3 class="fn"><a name="dtor.QWebPluginInfo"></a>QWebPluginInfo::~QWebPluginInfo ()</h3>
71
<p>Destroys the plugin info.</p>
72
<a name="//apple_ref/cpp/instm/QWebPluginInfo/description" />
73
<h3 class="fn"><a name="description"></a><a href="qstring.html">QString</a> QWebPluginInfo::description () const</h3>
74
<p>Returns the description of the plugin.</p>
75
<p>See also <a href="qwebplugininfo.html#name">name</a>().</p>
76
<a name="//apple_ref/cpp/instm/QWebPluginInfo/isEnabled" />
77
<h3 class="fn"><a name="isEnabled"></a>bool QWebPluginInfo::isEnabled () const</h3>
78
<p>Returns true if the plugin is enabled; otherwise returns false.</p>
79
<p>See also <a href="qwebplugininfo.html#setEnabled">setEnabled</a>().</p>
80
<a name="//apple_ref/cpp/instm/QWebPluginInfo/isNull" />
81
<h3 class="fn"><a name="isNull"></a>bool QWebPluginInfo::isNull () const</h3>
82
<p>Returns true if the plugin is a null plugin; otherwise returns false.</p>
83
<a name="//apple_ref/cpp/instm/QWebPluginInfo/mimeTypes" />
84
<h3 class="fn"><a name="mimeTypes"></a><a href="qlist.html">QList</a><<a href="qwebplugininfo.html#MimeType-typedef">MimeType</a>> QWebPluginInfo::mimeTypes () const</h3>
85
<p>Returns a list of MIME types supported by the plugin.</p>
86
<p>See also <a href="qwebplugininfo.html#supportsMimeType">supportsMimeType</a>().</p>
87
<a name="//apple_ref/cpp/instm/QWebPluginInfo/name" />
88
<h3 class="fn"><a name="name"></a><a href="qstring.html">QString</a> QWebPluginInfo::name () const</h3>
89
<p>Returns the name of the plugin.</p>
90
<p>See also <a href="qwebplugininfo.html#description">description</a>().</p>
91
<a name="//apple_ref/cpp/instm/QWebPluginInfo/path" />
92
<h3 class="fn"><a name="pathx"></a><a href="qstring.html">QString</a> QWebPluginInfo::path () const</h3>
93
<p>Returns an absolute path to the plugin file.</p>
94
<a name="//apple_ref/cpp/instm/QWebPluginInfo/setEnabled" />
95
<h3 class="fn"><a name="setEnabled"></a>void QWebPluginInfo::setEnabled ( bool <i>enabled</i> )</h3>
96
<p>Enables or disables the plugin, depending on the <i>enabled</i> parameter.</p>
97
<p>Disabled plugins will not be picked up by WebKit when looking for a plugin supporting a particular MIME type.</p>
98
<p>See also <a href="qwebplugininfo.html#isEnabled">isEnabled</a>().</p>
99
<a name="//apple_ref/cpp/instm/QWebPluginInfo/supportsMimeType" />
100
<h3 class="fn"><a name="supportsMimeType"></a>bool QWebPluginInfo::supportsMimeType ( const <a href="qstring.html">QString</a> & <i>mimeType</i> ) const</h3>
101
<p>Returns true if the plugin supports a specific <i>mimeType</i>; otherwise returns false.</p>
102
<p>See also <a href="qwebplugininfo.html#mimeTypes">mimeTypes</a>().</p>
103
<a name="//apple_ref/cpp/instm/QWebPluginInfo/operator!=" />
104
<h3 class="fn"><a name="operator-not-eq"></a>bool QWebPluginInfo::operator!= ( const QWebPluginInfo & <i>other</i> ) const</h3>
105
<p>Returns true if this plugin info is different from the <i>other</i> plugin info.</p>
106
<a name="//apple_ref/cpp/instm/QWebPluginInfo/operator=" />
107
<h3 class="fn"><a name="operator-eq"></a>QWebPluginInfo & QWebPluginInfo::operator= ( const QWebPluginInfo & <i>other</i> )</h3>
108
<p>Assigns the <i>other</i> plugin info to this plugin info, and returns a reference to this plugin info.</p>
109
<a name="//apple_ref/cpp/instm/QWebPluginInfo/operator==" />
110
<h3 class="fn"><a name="operator-eq-eq"></a>bool QWebPluginInfo::operator== ( const QWebPluginInfo & <i>other</i> ) const</h3>
111
<p>Returns true if this plugin info is the same as the <i>other</i> plugin info.</p>
112
<p /><address><hr /><div align="center">
113
<table width="100%" cellspacing="0" border="0"><tr class="address">
114
<td width="40%" align="left">Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
115
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
116
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
117
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>