The QAbstractGallery class provides a base class for gallery implementations. More...
#include <QAbstractGallery>
Inherits: QObject.
Inherited by: QDocumentGallery.
This class was introduced in Qt Mobility 1.1.
QAbstractGallery ( QObject * parent = 0 ) | |
~QAbstractGallery () | |
virtual bool | isRequestSupported ( QGalleryAbstractRequest::RequestType type ) const = 0 |
virtual QGalleryAbstractResponse * | createResponse ( QGalleryAbstractRequest * request ) = 0 |
The QAbstractGallery class provides a base class for gallery implementations.
Classes implementing the QAbstractGallery interface allow QGalleryAbstractRequest implementations to connect to a gallery and execute a query or perform an action.
The types of request that can be executed by a gallery are defined in QGalleryAbstractRequest::RequestType. If a gallery supports a request the isRequestSupportedFunction() will return true when given the type of the request, and false if it is not supported.
When a QGalleryAbstractRequest is executed it will call createResponse() on its gallery and pass a pointer to itself. The gallery will then use the type property of the request to determine its type and cast to the correct class. Using the properties of the request a gallery can then create a QGalleryAbstractResponse which executes the requested task and returns any results. Some requests will require the response to implement additional interfaces such as QGalleryResultSet to access the data produced in the response.
See also QGalleryAbstractRequest.
Constructs a new gallery.
The parent is passed to QObject.
Destroys a gallery.
Creates a response to a gallery request.
This function was introduced in Qt Mobility 1.1.
Identifies if a gallery supports a request type.
Returns true if the request is supported, and false otherwise.
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.