QtMobility Reference Documentation

Contents

QML DocumentGalleryItem Element

The DocumentGalleryItem element allows you to request information about a single item from the document gallery More...

Properties

Methods

Detailed Description

This element is part of the QtMobility.gallery 1.1 module.

See also DocumentGalleryModel and DocumentGalleryType.

Property Documentation

autoUpdate : bool

This property holds whether a request should refresh its results automatically.

This documentation was introduced in Qt Mobility Mobility 1.1.


read-onlyavailable : bool

This property holds whether the meta-data of an item is available.

This documentation was introduced in Qt Mobility Mobility 1.1.


item : variant

This property holds the id of the item to return information about.

This documentation was introduced in Qt Mobility Mobility 1.1.


read-onlyitemType : enum

This property holds the type of a gallery item. It can be one of:

  • DocumentGallery.InvalidType
  • DocumentGallery.File
  • DocumentGallery.Folder
  • DocumentGallery.Document
  • DocumentGallery.Text
  • DocumentGallery.Audio
  • DocumentGallery.Image
  • DocumentGallery.Video
  • DocumentGallery.Playlist
  • DocumentGallery.Artist
  • DocumentGallery.AlbumArtist
  • DocumentGallery.Album
  • DocumentGallery.AudioGenre
  • DocumentGallery.PhotoAlbum

This documentation was introduced in Qt Mobility Mobility 1.1.


read-onlyitemUrl : url

This property holds the URL of a gallery item.

This documentation was introduced in Qt Mobility Mobility 1.1.


read-onlymetaData : object

This property holds the meta-data of a gallery item.

This documentation was introduced in Qt Mobility Mobility 1.1.


read-onlyprogress : real

This property holds the current progress of the request, from 0.0 (started) to 1.0 (finished).

This documentation was introduced in Qt Mobility Mobility 1.1.


properties : QStringList

This property holds the item properties a request should return values for.

This documentation was introduced in Qt Mobility Mobility 1.1.


read-onlystatus : enum

This property holds the status of an item request. It can be one of:

  • Null No item has been specified.
  • Active Information about an item is being fetched from the gallery.
  • Finished Information about an item is available.
  • Idle Information about an item which will be automatically updated is available.
  • Canceling The query was canceled but hasn't yet reached the canceled status.
  • Canceled The query was canceled.
  • Error Information about a type could not be retrieved due to an error.

This documentation was introduced in Qt Mobility Mobility 1.1.


Method Documentation

DocumentGalleryItem::cancel ()

Cancels an executing request.

This documentation was introduced in Qt Mobility Mobility 1.1.


DocumentGalleryItem::clear ()

Clears the results of a request.

This documentation was introduced in Qt Mobility Mobility 1.1.


DocumentGalleryItem::reload ()

Re-queries the gallery.

This documentation was introduced in Qt Mobility Mobility 1.1.