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.