/usr/share/qt5/doc/qtlocation/qplacecontentrequest.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 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 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" />
<!-- qplacecontentrequest.cpp -->
<title>QPlaceContentRequest Class | 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-module.html">C++ Classes</a></li>
<li>QPlaceContentRequest</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">QPlaceContentRequest Class</h1>
<!-- $$$QPlaceContentRequest-brief -->
<p>The QPlaceContentRequest class represents the parameters of a content request. <a href="#details">More...</a></p>
<!-- @@@QPlaceContentRequest -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include <QPlaceContentRequest></span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> <tt>QT += location</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="qplacecontentrequest-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="qplacecontentrequest.html#QPlaceContentRequest">QPlaceContentRequest</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qplacecontentrequest.html#QPlaceContentRequest-2">QPlaceContentRequest</a></b>(const QPlaceContentRequest &<i> other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qplacecontentrequest.html#dtor.QPlaceContentRequest">~QPlaceContentRequest</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacecontentrequest.html#clear">clear</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPlaceContent::Type </td><td class="memItemRight bottomAlign"><b><a href="qplacecontentrequest.html#contentType">contentType</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qplacecontentrequest.html#limit">limit</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qplacecontentrequest.html#offset">offset</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacecontentrequest.html#setContentType">setContentType</a></b>(QPlaceContent::Type<i> type</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacecontentrequest.html#setLimit">setLimit</a></b>(int<i> limit</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacecontentrequest.html#setOffset">setOffset</a></b>(int<i> offset</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qplacecontentrequest.html#operator-not-eq">operator!=</a></b>(const QPlaceContentRequest &<i> other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPlaceContentRequest & </td><td class="memItemRight bottomAlign"><b><a href="qplacecontentrequest.html#operator-eq">operator=</a></b>(const QPlaceContentRequest &<i> other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qplacecontentrequest.html#operator-eq-eq">operator==</a></b>(const QPlaceContentRequest &<i> other</i>) const</td></tr>
</table>
<a name="details"></a>
<!-- $$$QPlaceContentRequest-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QPlaceContentRequest class represents the parameters of a content request.</p>
<p>The QPlaceContentRequest class is used in conjunction with a <a href="qplacemanager.html">QPlaceManager</a> to retrieve rich content like images and reviews in a paginated fashion. The following code would request a set of 5 images from the 10th index:</p>
<pre class="cpp"><span class="type">QPlaceContentRequest</span> request;
request<span class="operator">.</span>setContentType(<span class="type"><a href="qplacecontent.html">QPlaceContent</a></span><span class="operator">::</span>ImageType);
request<span class="operator">.</span>setOffset(<span class="number">9</span>);
request<span class="operator">.</span>setLimit(<span class="number">5</span>);
<span class="type"><a href="qplacecontentreply.html">QPlaceContentReply</a></span> <span class="operator">*</span>contentReply <span class="operator">=</span> manager<span class="operator">-</span><span class="operator">></span>getPlaceContent(place<span class="operator">.</span>placeId()<span class="operator">,</span> request);
<span class="comment">//..connect signals..//</span>
...
...
<span class="type">void</span> contentHandler() {
<span class="keyword">if</span> (contentReply<span class="operator">-</span><span class="operator">></span>error() <span class="operator">=</span><span class="operator">=</span> <span class="type"><a href="qplacereply.html">QPlaceReply</a></span><span class="operator">::</span>NoError) {
place<span class="operator">.</span>insertContent(contentReply<span class="operator">-</span><span class="operator">></span>request()<span class="operator">.</span>contentType()<span class="operator">,</span>
contentReply<span class="operator">-</span><span class="operator">></span>content());
}
}</pre>
</div>
<p><b>See also </b><a href="qplacecontentreply.html">QPlaceContentReply</a>.</p>
<!-- @@@QPlaceContentRequest -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QPlaceContentRequest[overload1]$$$QPlaceContentRequest -->
<h3 class="fn"><a name="QPlaceContentRequest"></a>QPlaceContentRequest::<span class="name">QPlaceContentRequest</span>()</h3>
<p>Constructs a new request object.</p>
<!-- @@@QPlaceContentRequest -->
<!-- $$$QPlaceContentRequest$$$QPlaceContentRequestconstQPlaceContentRequest& -->
<h3 class="fn"><a name="QPlaceContentRequest-2"></a>QPlaceContentRequest::<span class="name">QPlaceContentRequest</span>(const <span class="type">QPlaceContentRequest</span> &<i> other</i>)</h3>
<p>Constructs a copy of <i>other</i>.</p>
<!-- @@@QPlaceContentRequest -->
<!-- $$$~QPlaceContentRequest[overload1]$$$~QPlaceContentRequest -->
<h3 class="fn"><a name="dtor.QPlaceContentRequest"></a>QPlaceContentRequest::<span class="name">~QPlaceContentRequest</span>()</h3>
<p>Destroys the request object</p>
<!-- @@@~QPlaceContentRequest -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn"><a name="clear"></a><span class="type">void</span> QPlaceContentRequest::<span class="name">clear</span>()</h3>
<p>Clears the content request.</p>
<!-- @@@clear -->
<!-- $$$contentType[overload1]$$$contentType -->
<h3 class="fn"><a name="contentType"></a><span class="type"><a href="qplacecontent.html#Type-enum">QPlaceContent::Type</a></span> QPlaceContentRequest::<span class="name">contentType</span>() const</h3>
<p>Returns the type of content to be requested, for example reviews or images</p>
<p><b>See also </b><a href="qplacecontentrequest.html#setContentType">setContentType</a>().</p>
<!-- @@@contentType -->
<!-- $$$limit[overload1]$$$limit -->
<h3 class="fn"><a name="limit"></a><span class="type">int</span> QPlaceContentRequest::<span class="name">limit</span>() const</h3>
<p>Returns the maximum number of content items to retrieve.</p>
<p>A negative value for limit means that it is undefined. It is left up to the backend provider to choose an appropriate number of items to return.</p>
<p>The default limit is -1.</p>
<p><b>See also </b><a href="qplacecontentrequest.html#setLimit">setLimit</a>().</p>
<!-- @@@limit -->
<!-- $$$offset[overload1]$$$offset -->
<h3 class="fn"><a name="offset"></a><span class="type">int</span> QPlaceContentRequest::<span class="name">offset</span>() const</h3>
<p>Returns the offset index of the first item that is to be retrieved.</p>
<p>The default offset is 0.</p>
<p><b>See also </b><a href="qplacecontentrequest.html#setOffset">setOffset</a>().</p>
<!-- @@@offset -->
<!-- $$$setContentType[overload1]$$$setContentTypeQPlaceContent::Type -->
<h3 class="fn"><a name="setContentType"></a><span class="type">void</span> QPlaceContentRequest::<span class="name">setContentType</span>(<span class="type"><a href="qplacecontent.html#Type-enum">QPlaceContent::Type</a></span><i> type</i>)</h3>
<p>Sets the <i>type</i> of content to be requested.</p>
<p><b>See also </b><a href="qplacecontentrequest.html#contentType">contentType</a>().</p>
<!-- @@@setContentType -->
<!-- $$$setLimit[overload1]$$$setLimitint -->
<h3 class="fn"><a name="setLimit"></a><span class="type">void</span> QPlaceContentRequest::<span class="name">setLimit</span>(<span class="type">int</span><i> limit</i>)</h3>
<p>Set the maximum number of content items to retrieve to <i>limit</i>.</p>
<p><b>See also </b><a href="qplacecontentrequest.html#limit">limit</a>().</p>
<!-- @@@setLimit -->
<!-- $$$setOffset[overload1]$$$setOffsetint -->
<h3 class="fn"><a name="setOffset"></a><span class="type">void</span> QPlaceContentRequest::<span class="name">setOffset</span>(<span class="type">int</span><i> offset</i>)</h3>
<p>Sets the starting index of the first item to be retrieved to <i>offset</i>.</p>
<p><b>See also </b><a href="qplacecontentrequest.html#offset">offset</a>().</p>
<!-- @@@setOffset -->
<!-- $$$operator!=[overload1]$$$operator!=constQPlaceContentRequest& -->
<h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QPlaceContentRequest::<span class="name">operator!=</span>(const <span class="type">QPlaceContentRequest</span> &<i> other</i>) const</h3>
<p>Returns true if <i>other</i> is not equal to this content request, otherwise returns false.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQPlaceContentRequest& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QPlaceContentRequest</span> & QPlaceContentRequest::<span class="name">operator=</span>(const <span class="type">QPlaceContentRequest</span> &<i> other</i>)</h3>
<p>Assigns <i>other</i> to this content request and returns a reference to this content request.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQPlaceContentRequest& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QPlaceContentRequest::<span class="name">operator==</span>(const <span class="type">QPlaceContentRequest</span> &<i> other</i>) const</h3>
<p>Returns true if <i>other</i> is equal to this content request, otherwise returns false.</p>
<!-- @@@operator== -->
</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>
|