The QGalleryAbstractResponse class provides a base class for responses to gallery requests. More...
#include <QGalleryAbstractResponse>
Inherited by QGalleryResultSet.
QGalleryAbstractResponse ( int error, const QString & errorString = QString(), QObject * parent = 0 ) | |
~QGalleryAbstractResponse () | |
virtual void | cancel () |
int | error () const |
QString | errorString () const |
bool | isActive () const |
bool | isIdle () const |
virtual bool | waitForFinished ( int msecs ) |
void | cancelled () |
void | finished () |
void | progressChanged ( int current, int maximum ) |
void | resumed () |
QGalleryAbstractResponse ( QObject * parent = 0 ) | |
void | error ( int error, const QString & errorString = QString() ) |
void | finish ( bool idle = false ) |
void | resume () |
The QGalleryAbstractResponse class provides a base class for responses to gallery requests.
Constructs a new gallery response, for a request that has finished with an error. The optional errorString will describe the error in greater detail.
The parent is passed to QObject.
Constructs a new gallery response.
The parent is passed to QObject.
Destroys a gallery response.
Cancels an active or idle gallery response.
The default implementation finishes the an active response with the QGalleryAbstractRequest::Cancelled result. If the reponse is idle the finished() signal will be re-emitted with idle
Signals that a response was cancelled.
Returns an identifier describing an error condition encountered by a response.
In the case of no error this will return QGalleryAbstractRequest::NoError.
See also QGalleryAbstractRequest::Error and QDocumentGallery::Error.
Finalizes a response in response to an error condition.
The error, and errorString are communicated to issuing request.
Returns a string describing the cause of an error() in more detail.
Finalizes a gallery response.
If idle is true the items returned by a response will be monitored for changes and updated as appropriate.
Signals that a response has finished.
Identifies if a response is an an active state.
Returns true if a response is active, and false otherwise.
Identifies if the items returned by a response are being monitored for changes.
Returns true if a response is in an idle state, and false otherwise.
Signals that the current or maximum progress of a request has changed.
Returns a response to an active state.
An idle response can call this to indicate it has begun refreshing its contents.
Signals that an idle() response has resumed communications.
Waits for msecs for the a response to finish.
Returns true if the response has finished on return, and returns false if the wait time expires or the request is inactive or idle.