QGalleryItemList Class Reference
The QGalleryItemList class provides an abstract interface for a list of gallery items from a gallery. More...
#include <QGalleryItemList>
Inherited by QGalleryAbstractResponse.
Public Types
Properties
Public Functions
| QGalleryItemList ( QObject * parent = 0 ) |
| ~QGalleryItemList () |
virtual int | count () const = 0 |
int | cursorPosition () const |
virtual QVariant | id ( int index ) const = 0 |
virtual QVariant | metaData ( int index, int key ) const = 0 |
virtual QVariant | metaData ( int index, const QString & property ) const |
virtual int | minimumPagedItems () const |
virtual QGalleryProperty::Attributes | propertyAttributes ( int key ) const = 0 |
virtual int | propertyKey ( const QString & propertyName ) const = 0 |
virtual QStringList | propertyNames () const = 0 |
virtual QVariant::Type | propertyType ( int key ) const = 0 |
virtual QList<QGalleryResource> | resources ( int index ) const = 0 |
virtual void | setMetaData ( int index, int key, const QVariant & value ) = 0 |
virtual void | setMetaData ( int index, const QString & property, const QVariant & value ) |
virtual ItemStatus | status ( int index ) const = 0 |
virtual QString | type ( int index ) const = 0 |
virtual QUrl | url ( int index ) const = 0 |
Public Slots
Signals
void | inserted ( int index, int count ) |
void | metaDataChanged ( int index, int count, const QList<int> & keys = QList<int> () ) |
void | moved ( int from, int to, int count ) |
void | removed ( int index, int count ) |
void | statusChanged ( int index, int count ) |
Detailed Description
The QGalleryItemList class provides an abstract interface for a list of gallery items from a gallery.
Member Type Documentation
enum QGalleryItemList::ItemStatusFlag
flags QGalleryItemList::ItemStatus
This enumeration describes the current status of a gallery item.
|
Constant | Value | Description |
QGalleryItemList::OutOfRange | 0x01 | The item is outside the range of currently paged items. |
QGalleryItemList::Reading | 0x02 | New item data is currently being fetched. |
QGalleryItemList::Writing | 0x04 | Changes to item data are currently being written. |
The ItemStatus type is a typedef for QFlags<ItemStatusFlag>. It stores an OR combination of ItemStatusFlag values.
Property Documentation
cursorPosition : int
This property holds the current position of the cache cursor.
Access functions:
int | cursorPosition () const |
virtual void | setCursorPosition ( int position ) |
minimumPagedItems : const int
This property holds the minimum number of consecutive items loaded in a list.
Access functions:
virtual int | minimumPagedItems () const |
Member Function Documentation
QGalleryItemList::QGalleryItemList ( QObject * parent = 0 )
Constructs a new gallery gallery item list.
The parent is passed to QObject.
QGalleryItemList::~QGalleryItemList ()
Destroys a gallery gallery item list.
int QGalleryItemList::count () const [pure virtual]
Returns the number of gallery items in a gallery item list.
QVariant QGalleryItemList::id ( int index ) const [pure virtual]
Returns the id of the gallery item at index.
void QGalleryItemList::inserted ( int index, int count ) [signal]
Signals that count gallery items have been inserted into a gallery item list starting at index.
QVariant QGalleryItemList::metaData ( int index, int key ) const [pure virtual]
Returns the meta-data key value of the gallery item at index.
See also setMetaData().
QVariant QGalleryItemList::metaData ( int index, const QString & property ) const [virtual]
Returns the value of a meta-data property for the item at index in a list.
void QGalleryItemList::metaDataChanged ( int index, int count, const QList<int> & keys = QList<int> () ) [signal]
Signals that the meta-data identified by keys of count gallery items starting at index has changed.
void QGalleryItemList::moved ( int from, int to, int count ) [signal]
Signals that count gallery items have been moved from one starting index to another.
QGalleryProperty::Attributes QGalleryItemList::propertyAttributes ( int key ) const [pure virtual]
Returns the attributes of the property identified by key.
int QGalleryItemList::propertyKey ( const QString & propertyName ) const [pure virtual]
Returns a integer key for a meta-data propertyName.
QStringList QGalleryItemList::propertyNames () const [pure virtual]
Returns a list of property names an item list has meta-data values for.
QVariant::Type QGalleryItemList::propertyType ( int key ) const [pure virtual]
Returns the type of the property identified by key.
void QGalleryItemList::removed ( int index, int count ) [signal]
Signals that count gallery items have been removed from a gallery item list starting at index.
QList<QGalleryResource> QGalleryItemList::resources ( int index ) const [pure virtual]
Returns a list of resources for the gallery item at index.
void QGalleryItemList::setMetaData ( int index, int key, const QVariant & value ) [pure virtual]
Sets the meta-data key value of the gallery item at index.
See also metaData().
void QGalleryItemList::setMetaData ( int index, const QString & property, const QVariant & value ) [virtual]
Sets the value of a meta-data property for the item at index in a list.
ItemStatus QGalleryItemList::status ( int index ) const [pure virtual]
Returns the status of the gallery item at index.
void QGalleryItemList::statusChanged ( int index, int count ) [signal]
Signals that the status of count gallery items starting at index has changed.
QString QGalleryItemList::type ( int index ) const [pure virtual]
Returns the type of the gallery item at index.
QUrl QGalleryItemList::url ( int index ) const [pure virtual]
Returns the URL of the gallery item at index.