Qt Mobility Reference Documentation

QGalleryAbstractResponse Class Reference

The QGalleryAbstractResponse class provides a base class for responses to gallery requests. More...

 #include <QGalleryAbstractResponse>

Inherits QGalleryItemList.


Public Functions

QGalleryAbstractResponse ( QObject * parent = 0 )
~QGalleryAbstractResponse ()
virtual void cancel ()
bool isIdle () const
int result () const
virtual bool waitForFinished ( int msecs ) = 0

Signals

void finished ()
void progressChanged ( int current, int maximum )

Protected Functions

void finish ( int result, bool idle = false )

Additional Inherited Members


Detailed Description

The QGalleryAbstractResponse class provides a base class for responses to gallery requests.


Member Function Documentation

QGalleryAbstractResponse::QGalleryAbstractResponse ( QObject * parent = 0 )

Constructs a new gallery response.

The parent is passed to QObject.

QGalleryAbstractResponse::~QGalleryAbstractResponse ()

Destroys a gallery response.

void QGalleryAbstractResponse::cancel () [virtual]

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

void QGalleryAbstractResponse::finish ( int result, bool idle = false ) [protected]

Finalizes a gallery response, and sets the result.

If idle is true the items returned by a response will be monitored for changes and updated as appropriate.

void QGalleryAbstractResponse::finished () [signal]

Signals that a response has finished.

bool QGalleryAbstractResponse::isIdle () const

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.

void QGalleryAbstractResponse::progressChanged ( int current, int maximum ) [signal]

Signals that the current or maximum progress of a request has changed.

int QGalleryAbstractResponse::result () const

Returns the result of a gallery request.

bool QGalleryAbstractResponse::waitForFinished ( int msecs ) [pure virtual]

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.


Copyright © 2009-2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.1.0