Qt Mobility Reference Documentation

QGalleryCountRequest Class Reference

The QGalleryCountRequest class provides a request for the number of items in a gallery matching some criteria. More...

 #include <QGalleryCountRequest>

Inherits QGalleryAbstractRequest.


Properties


Public Functions

QGalleryCountRequest ( QObject * parent = 0 )
QGalleryCountRequest ( QAbstractGallery * gallery, QObject * parent = 0 )
~QGalleryCountRequest ()
int count () const
QGalleryFilter filter () const
bool isLive () const
QString itemType () const
QGalleryAbstractRequest::Scope scope () const
QVariant scopeItemId () const
void setFilter ( const QGalleryFilter & filter )
void setItemType ( const QString & type )
void setLive ( bool live )
void setScope ( QGalleryAbstractRequest::Scope scope )
void setScopeItemId ( const QVariant & id )

Signals

void countChanged ()

Reimplemented Protected Functions

virtual void setResponse ( QGalleryAbstractResponse * response )

Additional Inherited Members


Detailed Description

The QGalleryCountRequest class provides a request for the number of items in a gallery matching some criteria.


Property Documentation

count : const int

This property holds the number of gallery items matching a requests filtering criteria.

Access functions:

int count () const

Notifier signal:

void countChanged ()

filter : QGalleryFilter

This property holds a filter used to restrict the items counted by a request.

Access functions:

QGalleryFilter filter () const
void setFilter ( const QGalleryFilter & filter )

itemType : QString

This property holds the type of item a request should count.

Access functions:

QString itemType () const
void setItemType ( const QString & type )

live : bool

This property holds whether a the results of a request should be updated after a request has finished.

If this is true the request will go into the Idle state when the request has finished rather than returning to Inactive.

Access functions:

bool isLive () const
void setLive ( bool live )

scope : QGalleryAbstractRequest::Scope

This property holds whether all descendants of the scopeItemId should be counted by a request or just the direct descendants.

Access functions:

QGalleryAbstractRequest::Scope scope () const
void setScope ( QGalleryAbstractRequest::Scope scope )

scopeItemId : QVariant

This property holds the ID of an item a request should count the descendants of.

Access functions:

QVariant scopeItemId () const
void setScopeItemId ( const QVariant & id )

See also scope.


Member Function Documentation

QGalleryCountRequest::QGalleryCountRequest ( QObject * parent = 0 )

Constructs a new gallery count request.

The parent is passed to QObject.

QGalleryCountRequest::QGalleryCountRequest ( QAbstractGallery * gallery, QObject * parent = 0 )

Contructs a new count request for the given gallery.

The parent is passed to QObject.

QGalleryCountRequest::~QGalleryCountRequest ()

Destroys a count request.

void QGalleryCountRequest::countChanged () [signal]

Signals that the count property has changed.

void QGalleryCountRequest::setResponse ( QGalleryAbstractResponse * response ) [virtual protected]

Reimplemented from QGalleryAbstractRequest::setResponse().


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