The QGalleryResultSet class provides an interface for accessing the results of an gallery query. More...
#include <QGalleryResultSet>
Inherits QGalleryAbstractResponse.
QGalleryResultSet ( QObject * parent = 0 ) | |
~QGalleryResultSet () | |
virtual int | currentIndex () const = 0 |
virtual bool | fetch ( int index ) = 0 |
virtual bool | fetchFirst () |
virtual bool | fetchLast () |
virtual bool | fetchNext () |
virtual bool | fetchPrevious () |
virtual bool | isValid () const |
virtual int | itemCount () const = 0 |
virtual QVariant | itemId () const = 0 |
virtual QString | itemType () const = 0 |
virtual QUrl | itemUrl () const = 0 |
virtual QVariant | metaData ( int key ) const = 0 |
virtual QGalleryProperty::Attributes | propertyAttributes ( int key ) const = 0 |
virtual int | propertyKey ( const QString & property ) const = 0 |
virtual QVariant::Type | propertyType ( int key ) const = 0 |
virtual QList<QGalleryResource> | resources () const |
virtual bool | setMetaData ( int key, const QVariant & value ) = 0 |
void | currentIndexChanged ( int index ) |
void | currentItemChanged () |
void | itemsInserted ( int index, int count ) |
void | itemsMoved ( int from, int to, int count ) |
void | itemsRemoved ( int index, int count ) |
void | metaDataChanged ( int index, int count, const QList<int> & keys ) |
The QGalleryResultSet class provides an interface for accessing the results of an gallery query.
Constructs a new result set.
The parent is passed to QGalleryAbstractResponse.
Destroys a result set.
Returns the index of the item a result set currently positioned on.
See also fetch().
Signals that a result set has been repositioned on a new index.
Signals that the item the result set is positioned on has changed.
Moves the current position of a result set to an arbitrary index.
Returns true if the result set is positioned on a valid item on return; otherwise returns false.
Moves the current position of the result set to the first item in the set.
Returns true if the result set is positioned on a valid item on return; otherwise returns false.
Moves the current position of the result set to the last item in the set.
Returns true if the result set is positioned on a valid item on return; otherwise returns false.
Moves the current position of the result set to the next item in the set.
Returns true if the result set is positioned on a valid item on return; otherwise returns false.
Moves the current position of the result set to the previous item in the set.
Returns true if the result set is positioned on a valid item on return; otherwise returns false.
Returns true if a result set is currently positioned on a valid item; otherwise returns false.
See also currentIndex().
Returns the number of items in a result set.
Returns the ID of the item a result set is currently positioned on.
See also currentIndex().
Returns the type of the item a result set is currently positioned on.
See also currentIndex().
Returns the URL of the item a result set is currently positioned on.
See also currentIndex() and resources().
Signals that count items have been inserted into a result set at index.
Signals that count items have been moved from an existing index to a new index.
Signals that count items have been removed from a result set at index.
Returns the meta-data value of the current item for key.
See also setMetaData().
Signals that the meta-data identified by keys of count items starting at index has changed.
Returns the attributes of the property identified by key.
Returns a positive integer key for a property name, or a negative integer if the property name is invalid.
Returns the type of the property identified by key.
Returns the resources of the item of a result set is currently positioned on.
The default implementation returns a single resource with the URL of the current item, or an empty list if the current item doesn't have a valid URL.
See also currentIndex() and itemUrl().
Sets the meta-data value of the current item for key.
Returns true if the value was changed successfully; otherwise returns false.
See also metaData().