This file is indexed.

/usr/share/qt5/doc/qtlocation/qml-qtlocation-extendedattributes.html is in qtlocation5-doc-html 5.2.1-1ubuntu2.

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
<?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" />
<!-- qdeclarativeplaceattribute.cpp -->
  <title>ExtendedAttributes | QtLocation 5.2</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="qtlocation-index.html">Qt Location</a></li>
<li><a href="qtlocation-qmlmodule.html">QML Types</a></li>
<li>ExtendedAttributes</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="#signals">Signals</a></li>
<li class="level1"><a href="#methods">Methods</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">ExtendedAttributes</h1>
<span class="subtitle"></span>
<!-- $$$ExtendedAttributes-brief -->
<p>The ExtendedAttributes type holds additional data about a <a href="qml-qtlocation-place.html">Place</a>. <a href="#details">More...</a></p>
<!-- @@@ExtendedAttributes -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> </b><tt>import QtLocation 5.0</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt Location 5.0</td></tr></table><ul>
<li><a href="qml-qtlocation-extendedattributes-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<ul>
<li class="fn">void <b><b><a href="qml-qtlocation-extendedattributes.html#onValueChanged-signal">onValueChanged</a></b></b>(string <i>key</i>, variant <i>value</i>)</li>
</ul>
<a name="methods"></a>
<h2>Methods</h2>
<ul>
<li class="fn">variant <b><b><a href="qml-qtlocation-extendedattributes.html#keys-method">keys</a></b></b>()</li>
</ul>
<!-- $$$ExtendedAttributes-description -->
<a name="details"></a>
<h2>Detailed Description</h2>
<p>The ExtendedAttributes type is a map of <a href="qml-qtlocation-placeattribute.html">PlaceAttributes</a>. To access attributes in the map use the <a href="qml-qtlocation-extendedattributes.html#keys-method">keys()</a> method to get the list of keys stored in the map and use the <tt>[]</tt> operator to access the <a href="qml-qtlocation-placeattribute.html">PlaceAttribute</a> items.</p>
<p>The following are standard keys that are defined by the API. <a href="qml-qtlocation-plugin.html">Plugin</a> implementations are free to define additional keys. Custom keys should be qualified by a unique prefix to avoid clashes.</p>
<table class="generic">
 <thead><tr class="qt-style"><th >key</th><th >description</th></tr></thead>
<tr valign="top" class="odd"><td >openingHours</td><td >The trading hours of the place</td></tr>
<tr valign="top" class="even"><td >payment</td><td >The types of payment the place accepts, for example visa, mastercard.</td></tr>
<tr valign="top" class="odd"><td >x_provider</td><td >The name of the provider that a place is sourced from</td></tr>
<tr valign="top" class="even"><td >x_id_&lt;provider&gt; (for example x_id_nokia)</td><td >An alternative identifier which identifies the place from the perspective of the specified provider.</td></tr>
</table>
<p>Some plugins may not support attributes at all, others may only support a certain set, others still may support a dynamically changing set of attributes over time or even allow attributes to be arbitrarily defined by the client application. The attributes could also vary on a place by place basis, for example one place may have opening hours while another does not. Consult the <a href="qtlocation-index.html#plugin-references-and-parameters">plugin references</a> for details.</p>
<p>Some attributes may not be intended to be readable by end users, the label field of such attributes is empty to indicate this fact.</p>
<p><b>Note: </b>ExtendedAttributes instances are only ever used in the context of <a href="qml-qtlocation-place.html">Place</a>s. It is not possible to create an ExtendedAttributes instance directly or re-assign a <a href="qml-qtlocation-place.html">Place</a>'s ExtendedAttributes property. Modification of ExtendedAttributes can only be accomplished via Javascript.</p><p>The following example shows how to access all <a href="qml-qtlocation-placeattribute.html">PlaceAttributes</a> and print them to the console:</p>
<pre class="qml">import QtPositioning 5.2
import QtLocation 5.0

<span class="keyword">function</span> <span class="name">printExtendedAttributes</span>(<span class="name">extendedAttributes</span>) {
    var <span class="name">keys</span> = <span class="name">extendedAttributes</span>.<span class="name">keys</span>();
    <span class="keyword">for</span> (<span class="keyword">var</span> <span class="name">i</span> = <span class="number">0</span>; <span class="name">i</span> <span class="operator">&lt;</span> <span class="name">keys</span>.<span class="name">length</span>; ++<span class="name">i</span>) {
        var <span class="name">key</span> = <span class="name">keys</span>[<span class="name">i</span>];
        <span class="keyword">if</span> (<span class="name">extendedAttributes</span>[<span class="name">key</span>].<span class="name">label</span> <span class="operator">!==</span> <span class="string">&quot;&quot;</span>)
            <span class="name">console</span>.<span class="name">log</span>(<span class="name">extendedAttributes</span>[<span class="name">key</span>].<span class="name">label</span> <span class="operator">+</span> <span class="string">&quot;: &quot;</span> <span class="operator">+</span> <span class="name">extendedAttributes</span>[<span class="name">key</span>].<span class="name">text</span>);
    }
}</pre>
<p>The following example shows how to assign and modify an attribute:</p>
<pre class="qml">    <span class="comment">//assign a new attribute to a place</span>
    var <span class="name">smokingAttrib</span> = <span class="name">Qt</span>.<span class="name">createQmlObject</span>(<span class="string">'import QtLocation 5.0; PlaceAttribute {}'</span>, <span class="name">place</span>);
    <span class="name">smokingAttrib</span>.<span class="name">label</span> <span class="operator">=</span> <span class="string">&quot;Smoking Allowed&quot;</span>
    <span class="name">smokingAttrib</span>.<span class="name">text</span> <span class="operator">=</span> <span class="string">&quot;No&quot;</span>
    <span class="name">place</span>.<span class="name">extendedAttributes</span>.<span class="name">smoking</span> <span class="operator">=</span> <span class="name">smokingAttrib</span>;

    <span class="comment">//modify an existing attribute</span>
    <span class="name">place</span>.<span class="name">extendedAttributes</span>.<span class="name">smoking</span>.<span class="name">text</span> <span class="operator">=</span> <span class="string">&quot;Yes&quot;</span></pre>
<p><b>See also </b><a href="qml-qtlocation-placeattribute.html">PlaceAttribute</a> and QQmlPropertyMap.</p>
<!-- @@@ExtendedAttributes -->
<h2>Signal Documentation</h2>
<!-- $$$onValueChanged -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onValueChanged-signal"></a><span class="type">void</span> <span class="name">onValueChanged</span>(<span class="type">string</span><i> key</i>, <span class="type">variant</span><i> value</i>)</p></td></tr></table></div><div class="qmldoc"><p>This signal is raised when the set of attributes changes. <i>key</i> is the key corresponding to the <i>value</i> that was changed.</p>
</div></div><!-- @@@onValueChanged -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$keys -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="keys-method"></a><span class="type">variant</span> <span class="name">keys</span>()</p></td></tr></table></div><div class="qmldoc"><p>Returns an array of place attribute keys currently stored in the map.</p>
</div></div><!-- @@@keys -->
<br/>
        </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>