Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QGalleryTypeRequest Class Reference

The QGalleryTypeRequest class provides an interface for requesting the properties of a type from a gallery. More...

 #include <QGalleryTypeRequest>

Inherits QGalleryAbstractRequest.

Properties

Public Functions

QGalleryTypeRequest ( QObject * parent = 0 )
QGalleryTypeRequest ( QAbstractGallery * gallery, QObject * parent = 0 )
~QGalleryTypeRequest ()
bool autoUpdate () const
bool isValid () const
QString itemType () const
QVariant metaData ( int key ) const
QVariant metaData ( const QString & property ) const
QGalleryProperty::Attributes propertyAttributes ( int key ) const
int propertyKey ( const QString & property ) const
QStringList propertyNames () const
QVariant::Type propertyType ( int key ) const
QGalleryResultSet * resultSet () const
void setAutoUpdate ( bool enabled )
void setItemType ( const QString & itemType )
void setPropertyNames ( const QStringList & names )

Signals

void autoUpdateChanged ()
void itemTypeChanged ()
void metaDataChanged ( const QList<int> & keys )
void propertyNamesChanged ()
void resultSetChanged ( QGalleryResultSet * resultSet )
void typeChanged ()

Reimplemented Protected Functions

virtual void setResponse ( QGalleryAbstractResponse * response )

Additional Inherited Members

Detailed Description

The QGalleryTypeRequest class provides an interface for requesting the properties of a type from a gallery.

QGalleryItemRequest executes a query which returns information summarizing items of the type specified in itemType. The query will return meta-data values which describe the type as a whole such as the total number of items of that type.

When the request has finished and if the type is one recognized by the gallery the valid property will be true, if not it will be false.

If the autoUpdate property is true when the request is executed it will enter an Idle state on finishing and will refresh the queried information if the type changes. If the gallery can't provide updates it will instead go immediately to the Finished state. Automatic updates can be canceled by calling cancel() on a idle request.

See also QDocumentGallery.

Property Documentation

autoUpdate : 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 autoUpdate () const
void setAutoUpdate ( bool enabled )

Notifier signal:

void autoUpdateChanged ()

itemType : QString

This property holds the type a request should return the properties of.

Access functions:

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

Notifier signal:

void itemTypeChanged ()

propertyNames : QStringList

This property holds a list of names of meta-data properties a request should return values for.

Access functions:

QStringList propertyNames () const
void setPropertyNames ( const QStringList & names )

Notifier signal:

void propertyNamesChanged ()

valid : const bool

This property holds whether the request currently holds valid type information.

Access functions:

bool isValid () const

Notifier signal:

void typeChanged ()

Member Function Documentation

QGalleryTypeRequest::QGalleryTypeRequest ( QObject * parent = 0 )

Constructs a new gallery type request.

The parent is passed to QObject.

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

Contructs a new type request for the given gallery.

The parent is passed to QObject.

QGalleryTypeRequest::~QGalleryTypeRequest ()

Destroys a gallery type request.

void QGalleryTypeRequest::autoUpdateChanged () [signal]

Signals that the value of autoUpdate has changed.

void QGalleryTypeRequest::itemTypeChanged () [signal]

Signals that the itemType property has changed.

QVariant QGalleryTypeRequest::metaData ( int key ) const

Returns the value of a meta-data property identified by key.

QVariant QGalleryTypeRequest::metaData ( const QString & property ) const

Returns the value of a meta-data property.

void QGalleryTypeRequest::metaDataChanged ( const QList<int> & keys ) [signal]

Signals that the values of meta-data properties identified by keys have changed.

QGalleryProperty::Attributes QGalleryTypeRequest::propertyAttributes ( int key ) const

Returns the attributes of the property identified by key.

int QGalleryTypeRequest::propertyKey ( const QString & property ) const

Returns the key of property.

void QGalleryTypeRequest::propertyNamesChanged () [signal]

Signals that the value of propertyNames has changed.

QVariant::Type QGalleryTypeRequest::propertyType ( int key ) const

Returns the type of the property identified by key.

QGalleryResultSet * QGalleryTypeRequest::resultSet () const

Returns the result set containing the meta-data of a type.

void QGalleryTypeRequest::resultSetChanged ( QGalleryResultSet * resultSet ) [signal]

Signals that the resultSet containing the meta-data of a type has changed.

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

Reimplemented from QGalleryAbstractRequest::setResponse().

void QGalleryTypeRequest::typeChanged () [signal]

Signals that the properties of a type have changed.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtmobility-1.1
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web