204
205
<li class="fn">10 public functions inherited from <a href="qgalleryabstractrequest.html#public-functions">QGalleryAbstractRequest</a></li>
206
<li class="fn">29 public functions inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#public-functions">QObject</a></li>
207
209
<a name="signals"></a>
209
211
<table class="alignedsummary">
212
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgalleryitemrequest.html#autoUpdateChanged">autoUpdateChanged</a></b> ()</td></tr>
210
213
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgalleryitemrequest.html#itemChanged">itemChanged</a></b> ()</td></tr>
211
214
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgalleryitemrequest.html#itemIdChanged">itemIdChanged</a></b> ()</td></tr>
212
215
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgalleryitemrequest.html#metaDataChanged">metaDataChanged</a></b> ( const QList<int> & <i>keys</i> )</td></tr>
216
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgalleryitemrequest.html#propertyNamesChanged">propertyNamesChanged</a></b> ()</td></tr>
213
217
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgalleryitemrequest.html#resultSetChanged">resultSetChanged</a></b> ( QGalleryResultSet * <i>resultSet</i> )</td></tr>
216
<li class="fn">7 signals inherited from <a href="qgalleryabstractrequest.html#signals">QGalleryAbstractRequest</a></li>
220
<li class="fn">8 signals inherited from <a href="qgalleryabstractrequest.html#signals">QGalleryAbstractRequest</a></li>
221
<li class="fn">1 signal inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#signals">QObject</a></li>
219
224
<a name="reimplemented-protected-functions"></a>
225
230
<li class="fn">1 protected function inherited from <a href="qgalleryabstractrequest.html#protected-functions">QGalleryAbstractRequest</a></li>
231
<li class="fn">7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#protected-functions">QObject</a></li>
227
233
<h3>Additional Inherited Members</h3>
229
235
<li class="fn">3 public slots inherited from <a href="qgalleryabstractrequest.html#public-slots">QGalleryAbstractRequest</a></li>
236
<li class="fn">1 public slot inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#public-slots">QObject</a></li>
237
<li class="fn">1 public variable inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#public-variables">QObject</a></li>
238
<li class="fn">4 static public members inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#static-public-members">QObject</a></li>
230
239
<li class="fn">1 protected function inherited from <a href="qgalleryabstractrequest.html#protected-functions">QGalleryAbstractRequest</a></li>
240
<li class="fn">7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#protected-functions">QObject</a></li>
241
<li class="fn">2 protected variables inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#protected-variables">QObject</a></li>
232
243
<a name="details"></a>
234
245
<div class="descr"/>
235
246
<h2>Detailed Description</h2>
236
247
<p>The QGalleryItemRequest class provides a request for the properties of a single item from a gallery.</p>
248
<p>QGalleryItemRequest executes a query which returns information about the gallery item specified in <a href="qgalleryitemrequest.html#itemId-prop">itemId</a>. The query will return an <a href="qgalleryitemrequest.html#itemUrl-prop">itemUrl</a>, an <a href="qgalleryitemrequest.html#itemType-prop">itemType</a>, <a href="qgalleryitemrequest.html#resources-prop">resources</a> and <a href="qgalleryitemrequest.html#metaData">meta-data</a> values for the properties listed in <a href="qgalleryitemrequest.html#propertyNames-prop">propertyNames</a>.</p>
249
<p>When the request has finished and if the item could be found the <a href="qgalleryitemrequest.html#valid-prop">valid</a> property will be true, if not it will be false.</p>
250
<p>If the <a href="qgalleryitemrequest.html#autoUpdate-prop">autoUpdate</a> property is true when the request is executed it will enter an <a href="qgalleryabstractrequest.html#State-enum">Idle</a> state on finishing and will refresh the queried information if the item changes. If the gallery can't provide updates it will instead go immediately to the <a href="qgalleryabstractrequest.html#State-enum">Finished</a> state. Automatic updates can be canceled by calling <a href="qgalleryabstractrequest.html#cancel">cancel</a>() on a idle request.</p>
252
<p>See also <a href="qdocumentgallery.html">QDocumentGallery</a>.</p>
239
254
<div class="prop"/>
240
255
<h2>Property Documentation</h2>
246
261
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b>autoUpdate</b> () const</td></tr>
247
262
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b>setAutoUpdate</b> ( bool <i>enabled</i> )</td></tr>
249
<h3 class="fn"><a name="itemId-prop"></a>itemId : QVariant</h3>
264
<p><b>Notifier signal:</b></p>
265
<table class="alignedsummary">
266
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgalleryitemrequest.html#autoUpdateChanged">autoUpdateChanged</a></b> ()</td></tr>
268
<h3 class="fn"><a name="itemId-prop"></a>itemId : <a href="http://qt.nokia.com/doc/4.6/qvariant.html">QVariant</a></h3>
250
269
<p>This property holds the ID of an item the request should return the properties of.</p>
251
270
<p><b>Access functions:</b></p>
252
271
<table class="alignedsummary">
277
296
<table class="alignedsummary">
278
297
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgalleryitemrequest.html#itemChanged">itemChanged</a></b> ()</td></tr>
280
<h3 class="fn"><a name="propertyNames-prop"></a>propertyNames : QStringList</h3>
299
<h3 class="fn"><a name="propertyNames-prop"></a>propertyNames : <a href="http://qt.nokia.com/doc/4.6/qstringlist.html">QStringList</a></h3>
281
300
<p>This property holds a list of names of meta-data properties a request should return values for.</p>
282
301
<p><b>Access functions:</b></p>
283
302
<table class="alignedsummary">
284
303
<tr><td class="memItemLeft topAlign rightAlign"> QStringList </td><td class="memItemRight bottomAlign"><b>propertyNames</b> () const</td></tr>
285
304
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b>setPropertyNames</b> ( const QStringList & <i>names</i> )</td></tr>
287
<h3 class="fn"><a name="resources-prop"></a>resources : const QList<<a href="qgalleryresource.html">QGalleryResource</a>></h3>
306
<p><b>Notifier signal:</b></p>
307
<table class="alignedsummary">
308
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgalleryitemrequest.html#propertyNamesChanged">propertyNamesChanged</a></b> ()</td></tr>
310
<h3 class="fn"><a name="resources-prop"></a>resources : const <a href="http://qt.nokia.com/doc/4.6/qlist.html">QList</a><<a href="qgalleryresource.html">QGalleryResource</a>></h3>
288
311
<p>This property holds the resources of an item.</p>
289
312
<p><b>Access functions:</b></p>
290
313
<table class="alignedsummary">
309
332
<div class="func"/>
310
333
<h2>Member Function Documentation</h2>
311
<h3 class="fn"><a name="QGalleryItemRequest"></a>QGalleryItemRequest::QGalleryItemRequest ( QObject * <i>parent</i> = 0 )</h3>
334
<h3 class="fn"><a name="QGalleryItemRequest"></a>QGalleryItemRequest::QGalleryItemRequest ( <a href="http://qt.nokia.com/doc/4.6/qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
312
335
<p>Constructs a new gallery item request.</p>
313
<p>The <i>parent</i> is passed to QObject.</p>
314
<h3 class="fn"><a name="QGalleryItemRequest-2"></a>QGalleryItemRequest::QGalleryItemRequest ( <a href="qabstractgallery.html">QAbstractGallery</a> * <i>gallery</i>, QObject * <i>parent</i> = 0 )</h3>
336
<p>The <i>parent</i> is passed to <a href="http://qt.nokia.com/doc/4.6/qobject.html">QObject</a>.</p>
337
<h3 class="fn"><a name="QGalleryItemRequest-2"></a>QGalleryItemRequest::QGalleryItemRequest ( <a href="qabstractgallery.html">QAbstractGallery</a> * <i>gallery</i>, <a href="http://qt.nokia.com/doc/4.6/qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
315
338
<p>Contructs a new item request for the given <i>gallery</i>.</p>
316
<p>The <i>parent</i> is passed to QObject.</p>
339
<p>The <i>parent</i> is passed to <a href="http://qt.nokia.com/doc/4.6/qobject.html">QObject</a>.</p>
317
340
<h3 class="fn"><a name="dtor.QGalleryItemRequest"></a>QGalleryItemRequest::~QGalleryItemRequest ()</h3>
318
341
<p>Destroys a gallery item request.</p>
342
<h3 class="fn"><a name="autoUpdateChanged"></a>void QGalleryItemRequest::autoUpdateChanged ()<tt> [signal]</tt></h3>
343
<p>Signals that the value of <a href="qgalleryitemrequest.html#autoUpdate-prop">autoUpdate</a> has changed.</p>
319
344
<h3 class="fn"><a name="itemChanged"></a>void QGalleryItemRequest::itemChanged ()<tt> [signal]</tt></h3>
320
345
<p>Signals that the properties of an item have changed.</p>
321
346
<h3 class="fn"><a name="itemIdChanged"></a>void QGalleryItemRequest::itemIdChanged ()<tt> [signal]</tt></h3>
322
347
<p>Signals that the value of the <a href="qgalleryitemrequest.html#itemId-prop">itemId</a> property has changed.</p>
323
<h3 class="fn"><a name="metaData"></a>QVariant QGalleryItemRequest::metaData ( int <i>key</i> ) const</h3>
348
<h3 class="fn"><a name="metaData"></a><a href="http://qt.nokia.com/doc/4.6/qvariant.html">QVariant</a> QGalleryItemRequest::metaData ( int <i>key</i> ) const</h3>
324
349
<p>Returns the value of a meta-data property identified by <i>key</i>.</p>
325
350
<p>See also <a href="qgalleryitemrequest.html#setMetaData">setMetaData</a>().</p>
326
<h3 class="fn"><a name="metaData-2"></a>QVariant QGalleryItemRequest::metaData ( const QString & <i>property</i> ) const</h3>
351
<h3 class="fn"><a name="metaData-2"></a><a href="http://qt.nokia.com/doc/4.6/qvariant.html">QVariant</a> QGalleryItemRequest::metaData ( const <a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a> & <i>property</i> ) const</h3>
327
352
<p>Returns the value of a meta-data <i>property</i>.</p>
328
<h3 class="fn"><a name="metaDataChanged"></a>void QGalleryItemRequest::metaDataChanged ( const QList<int> & <i>keys</i> )<tt> [signal]</tt></h3>
353
<h3 class="fn"><a name="metaDataChanged"></a>void QGalleryItemRequest::metaDataChanged ( const <a href="http://qt.nokia.com/doc/4.6/qlist.html">QList</a><int> & <i>keys</i> )<tt> [signal]</tt></h3>
329
354
<p>Signals that the values of meta-data properties identified by <i>keys</i> have changed.</p>
330
355
<h3 class="fn"><a name="propertyAttributes"></a><a href="qgalleryproperty.html#Attribute-enum">QGalleryProperty::Attributes</a> QGalleryItemRequest::propertyAttributes ( int <i>key</i> ) const</h3>
331
356
<p>Returns the attributes of the property identified by <i>key</i>.</p>
332
<h3 class="fn"><a name="propertyKey"></a>int QGalleryItemRequest::propertyKey ( const QString & <i>property</i> ) const</h3>
357
<h3 class="fn"><a name="propertyKey"></a>int QGalleryItemRequest::propertyKey ( const <a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a> & <i>property</i> ) const</h3>
333
358
<p>Returns the key of <i>property</i>.</p>
334
<h3 class="fn"><a name="propertyType"></a>QVariant::Type QGalleryItemRequest::propertyType ( int <i>key</i> ) const</h3>
359
<h3 class="fn"><a name="propertyNamesChanged"></a>void QGalleryItemRequest::propertyNamesChanged ()<tt> [signal]</tt></h3>
360
<p>Signals that the value of <a href="qgalleryitemrequest.html#propertyNames-prop">propertyNames</a> has changed.</p>
361
<h3 class="fn"><a name="propertyType"></a><a href="http://qt.nokia.com/doc/4.6/qvariant.html#Type-enum">QVariant::Type</a> QGalleryItemRequest::propertyType ( int <i>key</i> ) const</h3>
335
362
<p>Returns the type of the property identified by <i>key</i>.</p>
336
363
<h3 class="fn"><a name="resultSet"></a><a href="qgalleryresultset.html">QGalleryResultSet</a> * QGalleryItemRequest::resultSet () const</h3>
337
364
<p>Returns the result set containing the meta-data of a type.</p>
338
365
<h3 class="fn"><a name="resultSetChanged"></a>void QGalleryItemRequest::resultSetChanged ( <a href="qgalleryresultset.html">QGalleryResultSet</a> * <i>resultSet</i> )<tt> [signal]</tt></h3>
339
366
<p>Signals that the <i>resultSet</i> containing the meta-data of an item has changed.</p>
340
<h3 class="fn"><a name="setMetaData"></a>bool QGalleryItemRequest::setMetaData ( int <i>key</i>, const QVariant & <i>value</i> )</h3>
367
<h3 class="fn"><a name="setMetaData"></a>bool QGalleryItemRequest::setMetaData ( int <i>key</i>, const <a href="http://qt.nokia.com/doc/4.6/qvariant.html">QVariant</a> & <i>value</i> )</h3>
341
368
<p>Sets the <i>value</i> of a meta-data property identified by <i>key</i>.</p>
342
369
<p>Returns true if the value was changed; otherwise returns false.</p>
343
370
<p>See also <a href="qgalleryitemrequest.html#metaData">metaData</a>().</p>
344
<h3 class="fn"><a name="setMetaData-2"></a>bool QGalleryItemRequest::setMetaData ( const QString & <i>property</i>, const QVariant & <i>value</i> )</h3>
371
<h3 class="fn"><a name="setMetaData-2"></a>bool QGalleryItemRequest::setMetaData ( const <a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a> & <i>property</i>, const <a href="http://qt.nokia.com/doc/4.6/qvariant.html">QVariant</a> & <i>value</i> )</h3>
346
373
<table class="valuelist"><tr class="odd"><tr><th>Constant</th><th>Value</th><th>Description</th></tr>
347
374
<tr><td class="topAlign"><tt>QGalleryItemRequest::of</tt></td><td class=" topAlign">?</td><td class="topAlign">a meta-data <i>property</i>.</td></tr>