This file is indexed.

/usr/share/qt5/doc/qtwebkit/qwebdatabase.html is in qtwebkit5-doc-html 5.1.1-1ubuntu8.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qwebdatabase.cpp -->
  <title>QWebDatabase Class | QtWebKit 5.1</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li>Qt 5.1</li>
<li>QWebDatabase</li>
<li id="buildversion">
Qt 5.1.1 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QWebDatabase Class</h1>
<!-- $$$QWebDatabase-brief -->
<p>The QWebDatabase class provides access to HTML 5 databases created with JavaScript. <a href="#details">More...</a></p>
<!-- @@@QWebDatabase -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include &lt;QWebDatabase&gt;</span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.5</td></tr></table><ul>
<li><a href="qwebdatabase-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwebdatabase.html#QWebDatabase">QWebDatabase</a></b>(const QWebDatabase &amp;<i> other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwebdatabase.html#dtor.QWebDatabase">~QWebDatabase</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebdatabase.html#displayName">displayName</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qint64 </td><td class="memItemRight bottomAlign"><b><a href="qwebdatabase.html#expectedSize">expectedSize</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebdatabase.html#fileName">fileName</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebdatabase.html#name">name</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebSecurityOrigin </td><td class="memItemRight bottomAlign"><b><a href="qwebdatabase.html#origin">origin</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qint64 </td><td class="memItemRight bottomAlign"><b><a href="qwebdatabase.html#size">size</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebDatabase &amp; </td><td class="memItemRight bottomAlign"><b><a href="qwebdatabase.html#operator-eq">operator=</a></b>(const QWebDatabase &amp;<i> other</i>)</td></tr>
</table>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebdatabase.html#removeAllDatabases">removeAllDatabases</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebdatabase.html#removeDatabase">removeDatabase</a></b>(const QWebDatabase &amp;<i> db</i>)</td></tr>
</table>
<a name="details"></a>
<!-- $$$QWebDatabase-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QWebDatabase class provides access to HTML 5 databases created with JavaScript.</p>
<p>The upcoming HTML 5 standard includes support for SQL databases that web sites can create and access on a local computer through JavaScript. QWebDatabase is the C++ interface to these databases.</p>
<p>Databases are grouped together in security origins. To get access to all databases defined by a security origin, use <a href="qwebsecurityorigin.html#databases">QWebSecurityOrigin::databases</a>(). Each database has an internal <a href="qwebdatabase.html#name">name</a>(), as well as a user-friendly name, provided by <a href="qwebdatabase.html#displayName">displayName</a>(). These names are specified when creating the database in the JavaScript code.</p>
<p>WebKit uses SQLite to create and access the local SQL databases. The location of the database file in the local file system is returned by <a href="qwebdatabase.html#fileName">fileName</a>(). You can access the database directly through the Qt SQL database module.</p>
<p>For each database the web site can define an <a href="qwebdatabase.html#expectedSize">expectedSize</a>(). The current size of the database in bytes is returned by <a href="qwebdatabase.html#size">size</a>().</p>
<p>For more information refer to the <a href="http://dev.w3.org/html5/webdatabase/">HTML5 Web SQL Database Draft Standard</a>.</p>
</div>
<p><b>See also </b><a href="qwebsecurityorigin.html">QWebSecurityOrigin</a>.</p>
<!-- @@@QWebDatabase -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QWebDatabase[overload1]$$$QWebDatabaseconstQWebDatabase& -->
<h3 class="fn"><a name="QWebDatabase"></a>QWebDatabase::<span class="name">QWebDatabase</span>(const <span class="type">QWebDatabase</span> &amp;<i> other</i>)</h3>
<p>Constructs a web database from <i>other</i>.</p>
<!-- @@@QWebDatabase -->
<!-- $$$~QWebDatabase[overload1]$$$~QWebDatabase -->
<h3 class="fn"><a name="dtor.QWebDatabase"></a>QWebDatabase::<span class="name">~QWebDatabase</span>()</h3>
<p>Destroys the web database object. The data within this database is <b>not</b> destroyed.</p>
<!-- @@@~QWebDatabase -->
<!-- $$$displayName[overload1]$$$displayName -->
<h3 class="fn"><a name="displayName"></a><span class="type">QString</span> QWebDatabase::<span class="name">displayName</span>() const</h3>
<p>Returns the name of the database in a format that is suitable for display to the user.</p>
<!-- @@@displayName -->
<!-- $$$expectedSize[overload1]$$$expectedSize -->
<h3 class="fn"><a name="expectedSize"></a><span class="type">qint64</span> QWebDatabase::<span class="name">expectedSize</span>() const</h3>
<p>Returns the expected size of the database in bytes as defined by the web author.</p>
<!-- @@@expectedSize -->
<!-- $$$fileName[overload1]$$$fileName -->
<h3 class="fn"><a name="fileName"></a><span class="type">QString</span> QWebDatabase::<span class="name">fileName</span>() const</h3>
<p>Returns the file name of the web database.</p>
<p>The name can be used to access the database through the Qt SQL database module, for example:</p>
<pre class="cpp"><span class="type"><a href="qwebdatabase.html">QWebDatabase</a></span> webdb <span class="operator">=</span> <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>
<span class="type">QSqlDatabase</span> sqldb <span class="operator">=</span> <span class="type">QSqlDatabase</span><span class="operator">::</span>addDatabase(<span class="string">&quot;QSQLITE&quot;</span><span class="operator">,</span> <span class="string">&quot;myconnection&quot;</span>);
sqldb<span class="operator">.</span>setDatabaseName(webdb<span class="operator">.</span>fileName());
<span class="keyword">if</span> (sqldb<span class="operator">.</span>open()) {
    <span class="type">QStringList</span> tables <span class="operator">=</span> sqldb<span class="operator">.</span>tables();
    <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>
}</pre>
<p><b>Note: </b>Concurrent access to a database from multiple threads or processes is not very efficient because SQLite is used as WebKit's database backend.</p><!-- @@@fileName -->
<!-- $$$name[overload1]$$$name -->
<h3 class="fn"><a name="name"></a><span class="type">QString</span> QWebDatabase::<span class="name">name</span>() const</h3>
<p>Returns the name of the database.</p>
<!-- @@@name -->
<!-- $$$origin[overload1]$$$origin -->
<h3 class="fn"><a name="origin"></a><span class="type"><a href="qwebsecurityorigin.html">QWebSecurityOrigin</a></span> QWebDatabase::<span class="name">origin</span>() const</h3>
<p>Returns the databases's security origin.</p>
<!-- @@@origin -->
<!-- $$$removeAllDatabases[overload1]$$$removeAllDatabases -->
<h3 class="fn"><a name="removeAllDatabases"></a><span class="type">void</span> QWebDatabase::<span class="name">removeAllDatabases</span>()<tt> [static]</tt></h3>
<p>Deletes all web databases in the configured offline storage path.</p>
<p>This function was introduced in  Qt 4.6.</p>
<p><b>See also </b><a href="qwebsettings.html#setOfflineStoragePath">QWebSettings::setOfflineStoragePath</a>().</p>
<!-- @@@removeAllDatabases -->
<!-- $$$removeDatabase[overload1]$$$removeDatabaseconstQWebDatabase& -->
<h3 class="fn"><a name="removeDatabase"></a><span class="type">void</span> QWebDatabase::<span class="name">removeDatabase</span>(const <span class="type">QWebDatabase</span> &amp;<i> db</i>)<tt> [static]</tt></h3>
<p>Removes the database <i>db</i> from its security origin. All data stored in the database <i>db</i> will be destroyed.</p>
<!-- @@@removeDatabase -->
<!-- $$$size[overload1]$$$size -->
<h3 class="fn"><a name="size"></a><span class="type">qint64</span> QWebDatabase::<span class="name">size</span>() const</h3>
<p>Returns the current size of the database in bytes.</p>
<!-- @@@size -->
<!-- $$$operator=[overload1]$$$operator=constQWebDatabase& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QWebDatabase</span> &amp; QWebDatabase::<span class="name">operator=</span>(const <span class="type">QWebDatabase</span> &amp;<i> other</i>)</h3>
<p>Assigns the <i>other</i> web database to this.</p>
<!-- @@@operator= -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
   subsidiaries. Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Digia, Qt and their respective logos are trademarks of Digia Plc     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>