/usr/share/qt5/doc/qtwebkit/qwebdatabase.html is in qtwebkit5-doc-html 5.212.0~alpha2-7ubuntu1.
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 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qwebdatabase.cpp -->
<title>QWebDatabase Class | Qt 5.212.0</title>
<link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
<script type="text/javascript">
document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
// loading style sheet breaks anchors that were jumped to before
// so force jumping to anchor again
setTimeout(function() {
var anchor = location.hash;
// need to jump to different anchor first (e.g. none)
location.hash = "#";
setTimeout(function() {
location.hash = anchor;
}, 0);
}, 0);
</script>
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<table><tr>
<td >Qt 5.212.0</td><td >QWebDatabase</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.212.0 Reference Documentation</td>
</tr></table>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<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>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QWebDatabase Class</h1>
<!-- $$$QWebDatabase-brief -->
<p>The <a href="qwebdatabase.html">QWebDatabase</a> class provides access to HTML 5 databases created with JavaScript. <a href="#details">More...</a></p>
<!-- @@@QWebDatabase -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QWebDatabase></span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += webkitwidgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 4.5</td></tr></table></div><ul>
<li><a href="qwebdatabase-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><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 &<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 &</td><td class="memItemRight bottomAlign"><b><a href="qwebdatabase.html#operator-eq">operator=</a></b>(const QWebDatabase &<i>other</i>)</td></tr>
</table></div>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><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 &<i>db</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QWebDatabase-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qwebdatabase.html">QWebDatabase</a> 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. <a href="qwebdatabase.html">QWebDatabase</a> 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" id="QWebDatabase"><a name="QWebDatabase"></a>QWebDatabase::<span class="name">QWebDatabase</span>(const <span class="type"><a href="qwebdatabase.html#QWebDatabase">QWebDatabase</a></span> &<i>other</i>)</h3>
<p>Constructs a web database from <i>other</i>.</p>
<!-- @@@QWebDatabase -->
<!-- $$$~QWebDatabase[overload1]$$$~QWebDatabase -->
<h3 class="fn" id="dtor.QWebDatabase"><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" id="displayName"><a name="displayName"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></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" id="expectedSize"><a name="expectedSize"></a><span class="type"><a href="../qtcore/qtglobal.html#qint64-typedef">qint64</a></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" id="fileName"><a name="fileName"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></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">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">"QSQLITE"</span><span class="operator">,</span> <span class="string">"myconnection"</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"><a href="../qtcore/qstringlist.html">QStringList</a></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" id="name"><a name="name"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QWebDatabase::<span class="name">name</span>() const</h3>
<p>Returns the name of the database.</p>
<!-- @@@name -->
<!-- $$$origin[overload1]$$$origin -->
<h3 class="fn" id="origin"><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" id="removeAllDatabases"><a name="removeAllDatabases"></a><code>[static] </code><span class="type">void</span> QWebDatabase::<span class="name">removeAllDatabases</span>()</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" id="removeDatabase"><a name="removeDatabase"></a><code>[static] </code><span class="type">void</span> QWebDatabase::<span class="name">removeDatabase</span>(const <span class="type"><a href="qwebdatabase.html#QWebDatabase">QWebDatabase</a></span> &<i>db</i>)</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" id="size"><a name="size"></a><span class="type"><a href="../qtcore/qtglobal.html#qint64-typedef">qint64</a></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" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qwebdatabase.html#QWebDatabase">QWebDatabase</a></span> &QWebDatabase::<span class="name">operator=</span>(const <span class="type"><a href="qwebdatabase.html#QWebDatabase">QWebDatabase</a></span> &<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">©</acronym> 2017 The Qt Company Ltd.
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> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|