/usr/share/qt5/doc/qtxmlpatterns/qabstracturiresolver.html is in qtxmlpatterns5-doc-html 5.2.1-3.
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 | <?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" />
<!-- qabstracturiresolver.cpp -->
<title>QAbstractUriResolver Class | QtXmlPatterns </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.2</li>
<li><a href="qtxmlpatterns-index.html">Qt XML Patterns</a></li>
<li><a href="qtxmlpatterns-module.html">C++ Classes</a></li>
<li>QAbstractUriResolver</li>
<li id="buildversion">
Qt 5.2.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="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QAbstractUriResolver Class</h1>
<!-- $$$QAbstractUriResolver-brief -->
<p>The QAbstractUriResolver class is a callback interface for resolving Uniform Resource Identifiers. A Uniform Resource Identifier (URI) is a string that uniquely identifies a resource. URIs are versatile global identifiers. It is often useful to transform a URI that identifies something logical into a URI that locates something physical (a URL), or to simply map a URI to a different URI. <a href="qabstracturiresolver.html#resolve">QAbstractUriResolver::resolve</a>() provides this functionality. <a href="#details">More...</a></p>
<!-- @@@QAbstractUriResolver -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include <QAbstractUriResolver></span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> <tt>QT += xmlpatterns</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 4.4</td></tr></table><p><b>Note:</b> All functions in this class are reentrant.</p>
<ul>
<li><a href="qabstracturiresolver-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="qabstracturiresolver.html#QAbstractUriResolver">QAbstractUriResolver</a></b>(QObject *<i> parent</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qabstracturiresolver.html#dtor.QAbstractUriResolver">~QAbstractUriResolver</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QUrl </td><td class="memItemRight bottomAlign"><b><a href="qabstracturiresolver.html#resolve">resolve</a></b>(const QUrl &<i> relative</i>, const QUrl &<i> baseURI</i>) const = 0</td></tr>
</table>
<a name="details"></a>
<!-- $$$QAbstractUriResolver-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QAbstractUriResolver class is a callback interface for resolving Uniform Resource Identifiers. A Uniform Resource Identifier (URI) is a string that uniquely identifies a resource. URIs are versatile global identifiers. It is often useful to transform a URI that identifies something logical into a URI that locates something physical (a URL), or to simply map a URI to a different URI. <a href="qabstracturiresolver.html#resolve">QAbstractUriResolver::resolve</a>() provides this functionality.</p>
<p>For example, one could write a QAbstractUriResolver subclass that rewrites library ISBN number URIs as book title URLs, e.g., <i>urn:isbn:0-345-33973-8</i> would be rewritten as <i>file:///books/returnOfTheKing.doc</i>. Or a QAbstractUriResolver subclass could be written for a web browser to let the web browser protect the user's private files by mapping incoming requests for them to null URIs.</p>
</div>
<p><b>See also </b><a href="http://en.wikipedia.org/wiki/Uniform_Resource_Identifier">http://en.wikipedia.org/wiki/Uniform_Resource_Identifier</a>.</p>
<!-- @@@QAbstractUriResolver -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QAbstractUriResolver[overload1]$$$QAbstractUriResolverQObject* -->
<h3 class="fn"><a name="QAbstractUriResolver"></a>QAbstractUriResolver::<span class="name">QAbstractUriResolver</span>(<span class="type">QObject</span> *<i> parent</i> = 0)</h3>
<p>Constructs a <a href="qabstracturiresolver.html">QAbstractUriResolver</a> with the specified <i>parent</i>.</p>
<!-- @@@QAbstractUriResolver -->
<!-- $$$~QAbstractUriResolver[overload1]$$$~QAbstractUriResolver -->
<h3 class="fn"><a name="dtor.QAbstractUriResolver"></a>QAbstractUriResolver::<span class="name">~QAbstractUriResolver</span>()<tt> [virtual]</tt></h3>
<p>Destructor.</p>
<!-- @@@~QAbstractUriResolver -->
<!-- $$$resolve[overload1]$$$resolveconstQUrl&constQUrl& -->
<h3 class="fn"><a name="resolve"></a><span class="type">QUrl</span> QAbstractUriResolver::<span class="name">resolve</span>(const <span class="type">QUrl</span> &<i> relative</i>, const <span class="type">QUrl</span> &<i> baseURI</i>) const<tt> [pure virtual]</tt></h3>
<p>Returns the <i>relative</i> URI resolved using the <i>baseURI</i>.</p>
<p>The caller guarantees that both <i>relative</i> and <i>baseURI</i> are valid, and that <i>baseURI</i> is absolute. <i>relative</i> can be relative, absolute, or empty.</p>
<p>The returned QUrl can be a default constructed QUrl. If it is not a default constructed QUrl, it will be absolute and valid. If a default constructed QUrl is returned, it means the <i>relative</i> URI was not accepted to be resolved.</p>
<p>If the reimplemented resolve() function decides it has nothing to do about resolving the <i>relative</i> URI, it should simply return the <i>relative</i> URI resolved against the <i>baseURI</i>, i.e.:</p>
<pre class="cpp"><span class="keyword">return</span> baseURI<span class="operator">.</span>resolved(relative);</pre>
<p><b>See also </b>QUrl::isRelative() and QUrl::isValid().</p>
<!-- @@@resolve -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</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>
|