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  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QOrganizerItemFetchHint Class

The QOrganizerItemFetchHint class provides hints to the manager about which organizer item information needs to be retrieved. More...

 #include <QOrganizerItemFetchHint>

Public Types

enum OptimizationHint { AllRequired, NoActionPreferences, NoBinaryBlobs }
flags OptimizationHints

Public Functions

QOrganizerItemFetchHint()
QOrganizerItemFetchHint(const QOrganizerItemFetchHint & other)
~QOrganizerItemFetchHint()
QList<QOrganizerItemDetail::DetailType> detailTypesHint() const
OptimizationHints optimizationHints() const
void setDetailTypesHint(const QList<QOrganizerItemDetail::DetailType> & detailTypes)
void setOptimizationHints(OptimizationHints hints)
QOrganizerItemFetchHint & operator=(const QOrganizerItemFetchHint & other)

Related Non-Members

Q_ORGANIZER_EXPORT operator<<(QDebug dbg, const QOrganizerItemFetchHint & hint)

Detailed Description

The QOrganizerItemFetchHint class provides hints to the manager about which organizer item information needs to be retrieved.

All of the hints may be ignored at the discretion of the manager, however if a manager is able to optimize retrieval of organizer items due to hints, it may do so. If a manager ignores a hint, it must retrieve the full set of data that the hint refers to.

The fetch hint contains:

  • a list of detail definition names which the client is interested in (empty if interested in all detail definitions)
  • some optimization flags which allow the client to tell the backend if they are not interested in binary blobs (images etc).

Important note: if certain organizer item is retrieved with fetch hint set, normal saving will result in the loss of information that is not retrieved. Partial save should be used to avoid information loss.

Member Type Documentation

enum QOrganizerItemFetchHint::OptimizationHint
flags QOrganizerItemFetchHint::OptimizationHints

This enum defines flags which may be set to inform the backend that the client does not require certain information.

ConstantValueDescription
QOrganizerItemFetchHint::AllRequired0x0Tells the backend that all information is required.
QOrganizerItemFetchHint::NoActionPreferences0x2Tells the backend that the client does not require retrieved organizer items to include a cache of action preferences.
QOrganizerItemFetchHint::NoBinaryBlobs0x4Tells the backend that the client does not require retrieved organizer items to include binary blobs such as thumbnail images.

The OptimizationHints type is a typedef for QFlags<OptimizationHint>. It stores an OR combination of OptimizationHint values.

Member Function Documentation

QOrganizerItemFetchHint::QOrganizerItemFetchHint()

Constructs a new organizer item fetch hint which requests that the backend fetch all information.

QOrganizerItemFetchHint::QOrganizerItemFetchHint(const QOrganizerItemFetchHint & other)

Constructs a new organizer item fetch hint as a copy of other.

QOrganizerItemFetchHint::~QOrganizerItemFetchHint()

Frees any memory in use by the fetch hint.

QList<QOrganizerItemDetail::DetailType> QOrganizerItemFetchHint::detailTypesHint() const

Returns the list of detail types that identify details which should be retrieved by the manager when fetching items.

See also setDetailTypesHint().

OptimizationHints QOrganizerItemFetchHint::optimizationHints() const

Returns the optimization hint flags specified by the client.

See also setOptimizationHints().

void QOrganizerItemFetchHint::setDetailTypesHint(const QList<QOrganizerItemDetail::DetailType> & detailTypes)

Sets the list of detail types to detailTypes that identify details which should be retrieved' by the manager when fetching items.

See also detailTypesHint().

void QOrganizerItemFetchHint::setOptimizationHints(OptimizationHints hints)

Sets the optimization hint flags specified by the client to hints.

See also optimizationHints().

QOrganizerItemFetchHint & QOrganizerItemFetchHint::operator=(const QOrganizerItemFetchHint & other)

Assigns this fetch hint to the other.

Related Non-Members

Q_ORGANIZER_EXPORT operator<<(QDebug dbg, const QOrganizerItemFetchHint & hint)

Outputs hint to the debug stream dbg.

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 5.0-snapshot
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