Document Gallery API: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Convert ExpressionEngine links)
(Cleanup)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}
{{LangSwitch}}
 
'''English''' [[Document_Gallery_API|Spanish]]
 
[[Category:Developing with Qt::QtMobility]]
[[Category:Developing with Qt::QtMobility]]
[toc align_right="yes" depth="3"]
= News =
[http://labs.qt.nokia.com/2011/05/04/qt-4-7-3-and-qt-mobility-1-1-3-have-been-released/ Qt Mobility 1.1.3 Release] is available now for commercial app development and deployment on Ovi store.
[http://labs.qt.nokia.com/2011/05/12/qt-mobility-1-2-0-released/ Qt Mobility 1.2.0 release] is available now.
= Document Gallery API =
== Summary ==
== Summary ==



Latest revision as of 16:47, 28 June 2015

En Ar Bg De El Es Fa Fi Fr Hi Hu It Ja Kn Ko Ms Nl Pl Pt Ru Sq Th Tr Uk Zh

Summary

A Document Gallery is a virtual gallery of documents and media. The Document Gallery API provides methods to discover the contents and their meta-data, of a Gallery.

Meta-data is information which describes a document, it can identify the creator of a document or a contributor, it can identify logical collections a document belongs to and significant dates in a documents history, and many other things. The document gallery stores all this information and provides interfaces to query it.

Documents can be found in the gallery using their type, filters, and collections. The type of a document is a generic classification of its content and usually encapsulates multiple MIME types, a document may be a File, a Folder, a Document, Audio, an Image, Video, or a Playlist.

Filters provide a means to express criteria which the meta-data of a document must pass for the document to be included in a query result. A filter either compares a meta-data property to a value or collects a group of sub-filters in a logical union or intersection.

Collections are sets of documents in the gallery that can all be identified by a common property or parent. Each collection is itself a document with its own set of properties that may be queried. Some collections mirror an actual file (Folder), while others are compiled from the meta-data documents they contain (Artist, Album Artist, Album, AudioGenre, PhotoAlbum).

Key Features

  • Browse collections of documents with common identifying meta-data.
  • Query meta-data values from individual documents and collections of documents.
  • Edit the meta-data of documents.
  • Filter query results using meta-data expressions.
  • Sort query results using meta-data.
  • Stay up to date as documents are added, removed, and changed with live queries.

Example applications

Media Browser

The Media Browser example demonstrates how to use collections to navigate the document gallery.

The application menu in the media browser provides a list of gallery item types; both collections (Artists, Album Artists and Albums) and documents (Songs and Photos). Selecting a type from the menu will display a list of all items of that type, and selecting a virtual item from that list will display items belonging to that collection.

The Media Browser also allows you to edit meta-data of items in the Songs list. Changing an editable field (Track number, Title, Artist, or Album Artist) will write those changes back to the gallery.

Document Share

The Document Share example is a simple web browser with a download manager which demonstrates how to query the meta-data of a document using it's URL.

The download manager queries the document gallery for the ID and type of downloaded files, then when the user selects a file it is able to use that information to query the document gallery for type appropriate meta-data to present in a download summary.