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  · 

QContactDetailRangeFilter Class

The QContactDetailRangeFilter class provides a filter based around a detail value range criterion. More...

 #include <QContactDetailRangeFilter>

Inherits: QContactFilter.

Public Types

enum RangeFlag { IncludeLower, IncludeUpper, ExcludeLower, ExcludeUpper }
flags RangeFlags

Public Functions

QContactDetailRangeFilter()
QContactDetailRangeFilter(const QContactFilter & other)
int detailField() const
QContactDetail::DetailType detailType() const
QContactFilter::MatchFlags matchFlags() const
QVariant maxValue() const
QVariant minValue() const
RangeFlags rangeFlags() const
void setDetailType(QContactDetail::DetailType type, int field = -1)
void setMatchFlags(QContactFilter::MatchFlags flags)
void setRange(const QVariant & min, const QVariant & max, RangeFlags flags = 0)

Detailed Description

The QContactDetailRangeFilter class provides a filter based around a detail value range criterion.

It may be used to select contacts which contain a detail of a particular type with a particular value that lies in a range (either open or closed).

Member Type Documentation

enum QContactDetailRangeFilter::RangeFlag
flags QContactDetailRangeFilter::RangeFlags

Enumerates the semantics of the boundary conditions of the detail range filter

ConstantValueDescription
QContactDetailRangeFilter::IncludeLower0The filter will match if the field value is equal to or greater than the minimum value
QContactDetailRangeFilter::IncludeUpper1The filter will match if the field value is equal to or less than the maximum value
QContactDetailRangeFilter::ExcludeLower2The filter will match if the field value is greater than the minimum value (but not equal)
QContactDetailRangeFilter::ExcludeUpper0The filter will match if the field value is less than the maximum value (but not equal)

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

Member Function Documentation

QContactDetailRangeFilter::QContactDetailRangeFilter()

Constructs a new detail range filter

QContactDetailRangeFilter::QContactDetailRangeFilter(const QContactFilter & other)

Constructs a copy of other if possible, otherwise constructs a new detail range filter

int QContactDetailRangeFilter::detailField() const

Returns the detail field containinig the value which will be matched against the value criterion

See also setDetailType().

QContactDetail::DetailType QContactDetailRangeFilter::detailType() const

Returns the type of the details which will be inspected for matching values

See also setDetailType().

QContactFilter::MatchFlags QContactDetailRangeFilter::matchFlags() const

Returns the match flags of the criterion, which define semantics such as case sensitivity, and exact matching.

See also setMatchFlags().

QVariant QContactDetailRangeFilter::maxValue() const

Returns the upper bound of the value range criterion If this value is null, there is no upper bound. If it is valid, the rangeFlags() determines whether this value is included in the valid values.

See also setRange().

QVariant QContactDetailRangeFilter::minValue() const

Returns the lower bound of the value range criterion. If this value is null, there is no lower bound. If it is valid, the rangeFlags() determines whether this value is included in the valid values.

See also setRange().

RangeFlags QContactDetailRangeFilter::rangeFlags() const

Returns a set of flags which defines the boundary condition semantics of the value range criterion

See also setRange().

void QContactDetailRangeFilter::setDetailType(QContactDetail::DetailType type, int field = -1)

Sets the type of the detail definition of which type details will be inspected for matching values to type, and the name of the field which will be inspected in details of that definition to field.

See also detailType() and detailField().

void QContactDetailRangeFilter::setMatchFlags(QContactFilter::MatchFlags flags)

Sets the match flags of the filter criterion to flags

Not all flags are supported by a range filter. The supported flags include:

Unsupported flags will be ignored.

See also matchFlags().

void QContactDetailRangeFilter::setRange(const QVariant & min, const QVariant & max, RangeFlags flags = 0)

Sets the value range criterion of the filter to within min and max, with boundary conditions specified in the given flags. If min or max is a null variant, that condition will not be checked. For example, to check for fields with a value greater than 7, you would specify:

 filter.setRange(7, QVariant(), QContactDetailRangeFilter::ExcludeLower);

See also minValue() and maxValue().

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