The QGalleryTypeRequest class provides an interface for requesting the properties of a type from a gallery. More...
#include <QGalleryTypeRequest>
Inherits: QGalleryAbstractRequest.
This class was introduced in Qt Mobility 1.1.
QGalleryTypeRequest ( QObject * parent = 0 ) | |
QGalleryTypeRequest ( QAbstractGallery * gallery, QObject * parent = 0 ) | |
~QGalleryTypeRequest () | |
bool | autoUpdate () const |
bool | isValid () const |
QString | itemType () const |
QVariant | metaData ( int key ) const |
QVariant | metaData ( const QString & property ) const |
QGalleryProperty::Attributes | propertyAttributes ( int key ) const |
int | propertyKey ( const QString & property ) const |
QStringList | propertyNames () const |
QVariant::Type | propertyType ( int key ) const |
QGalleryResultSet * | resultSet () const |
void | setAutoUpdate ( bool enabled ) |
void | setItemType ( const QString & itemType ) |
void | setPropertyNames ( const QStringList & names ) |
void | autoUpdateChanged () |
void | itemTypeChanged () |
void | metaDataChanged ( const QList<int> & keys ) |
void | propertyNamesChanged () |
void | resultSetChanged ( QGalleryResultSet * resultSet ) |
void | typeChanged () |
virtual void | setResponse ( QGalleryAbstractResponse * response ) |
The QGalleryTypeRequest class provides an interface for requesting the properties of a type from a gallery.
QGalleryItemRequest executes a query which returns information summarizing items of the type specified in itemType. The query will return meta-data values which describe the type as a whole such as the total number of items of that type.
When the request has finished and if the type is one recognized by the gallery the valid property will be true, if not it will be false.
If the autoUpdate property is true when the request is executed it will enter an Idle state on finishing and will refresh the queried information if the type changes. If the gallery can't provide updates it will instead go immediately to the Finished state. Automatic updates can be canceled by calling cancel() on a idle request.
See also QDocumentGallery.
This property holds whether a the results of a request should be updated after a request has finished.
If this is true the request will go into the Idle state when the request has finished rather than returning to Inactive.
This property was introduced in Qt Mobility 1.1.
Access functions:
bool | autoUpdate () const |
void | setAutoUpdate ( bool enabled ) |
Notifier signal:
void | autoUpdateChanged () |
This property holds the type a request should return the properties of.
This property was introduced in Qt Mobility 1.1.
Access functions:
QString | itemType () const |
void | setItemType ( const QString & itemType ) |
Notifier signal:
void | itemTypeChanged () |
This property holds a list of names of meta-data properties a request should return values for.
This property was introduced in Qt Mobility 1.1.
Access functions:
QStringList | propertyNames () const |
void | setPropertyNames ( const QStringList & names ) |
Notifier signal:
void | propertyNamesChanged () |
This property holds whether the request currently holds valid type information.
This property was introduced in Qt Mobility 1.1.
Access functions:
bool | isValid () const |
Notifier signal:
void | typeChanged () |
Constructs a new gallery type request.
The parent is passed to QObject.
Contructs a new type request for the given gallery.
The parent is passed to QObject.
Destroys a gallery type request.
Signals that the value of autoUpdate has changed.
This function was introduced in Qt Mobility 1.1.
Signals that the itemType property has changed.
This function was introduced in Qt Mobility 1.1.
Returns the value of a meta-data property identified by key.
This function was introduced in Qt Mobility 1.1.
Returns the value of a meta-data property.
This function was introduced in Qt Mobility 1.1.
Signals that the values of meta-data properties identified by keys have changed.
This function was introduced in Qt Mobility 1.1.
Returns the attributes of the property identified by key.
This function was introduced in Qt Mobility 1.1.
Returns the key of property.
This function was introduced in Qt Mobility 1.1.
Signals that the value of propertyNames has changed.
This function was introduced in Qt Mobility 1.1.
Returns the type of the property identified by key.
This function was introduced in Qt Mobility 1.1.
Returns the result set containing the meta-data of a type.
This function was introduced in Qt Mobility 1.1.
Signals that the resultSet containing the meta-data of a type has changed.
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGalleryAbstractRequest::setResponse().
This function was introduced in Qt Mobility 1.1.
Signals that the properties of a type have changed.
This function was introduced in Qt Mobility 1.1.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.