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  · 

QContactFilter Class

The QContactFilter class is used to select contacts made available through a QContactManager. More...

 #include <QContactFilter>

Inherited by: QContactActionFilter, QContactChangeLogFilter, QContactDetailFilter, QContactDetailRangeFilter, QContactIdFilter, QContactIntersectionFilter, QContactInvalidFilter, QContactRelationshipFilter, and QContactUnionFilter.

Public Types

enum FilterType { InvalidFilter, ContactDetailFilter, ContactDetailRangeFilter, ChangeLogFilter, ..., DefaultFilter }
enum MatchFlag { MatchExactly, MatchContains, MatchStartsWith, MatchEndsWith, ..., MatchKeypadCollation }
flags MatchFlags

Public Functions

QContactFilter()
QContactFilter(const QContactFilter & other)
~QContactFilter()
FilterType type() const
bool operator!=(const QContactFilter & other) const
QContactFilter & operator=(const QContactFilter & other)
bool operator==(const QContactFilter & other) const

Related Non-Members

const Q_CONTACTS_EXPORT operator&(const QContactFilter & left, const QContactFilter & right)
const Q_CONTACTS_EXPORT operator|(const QContactFilter & left, const QContactFilter & right)

Detailed Description

The QContactFilter class is used to select contacts made available through a QContactManager.

This class is used as a parameter to various functions offered by QContactManager, to allow selection of contacts which have certain details or properties.

Member Type Documentation

enum QContactFilter::FilterType

Describes the type of the filter

ConstantValueDescription
QContactFilter::InvalidFilter0An invalid filter which matches nothing
QContactFilter::ContactDetailFilter1A filter which matches contacts containing one or more details of a particular definition with a particular value
QContactFilter::ContactDetailRangeFilter2A filter which matches contacts containing one or more details of a particular definition whose values are within a particular range
QContactFilter::ChangeLogFilter3A filter which matches contacts whose timestamps have been updated since some particular date and time
QContactFilter::ActionFilter4A filter which matches contacts for which a particular action is available, or which contain a detail with a particular value for which a particular action is available
QContactFilter::RelationshipFilter5A filter which matches contacts which participate in a particular type of relationship, or relationship with a specified contact
QContactFilter::IntersectionFilter6A filter which matches all contacts that are matched by all filters it includes
QContactFilter::UnionFilter7A filter which matches any contact that is matched by any of the filters it includes
QContactFilter::IdFilter8A filter which matches any contact whose local id is contained in a particular list of contact local ids
QContactFilter::DefaultFilter9A filter which matches everything

enum QContactFilter::MatchFlag
flags QContactFilter::MatchFlags

Describes the semantics of matching followed by the filter

ConstantValueDescription
QContactFilter::MatchExactly0x0000Performs QVariant-based matching , combination of MatchExactly with other flags is not supported
QContactFilter::MatchContains0x0001The search term is contained in the item
QContactFilter::MatchStartsWith0x0002The search term matches the start of the item
QContactFilter::MatchEndsWith0x0004The search term matches the end of the item
QContactFilter::MatchFixedString0x0008Performs string-based matching. String-based comparisons are case-insensitive unless the MatchCaseSensitive flag is also specified
QContactFilter::MatchCaseSensitive0x0010The search is case sensitive
QContactFilter::MatchPhoneNumber0x400The search term is considered to be in the form of a phone number, and special processing (removing dialing prefixes, non significant characters like '-'. ')' etc). may be performed when matching the item.
QContactFilter::MatchKeypadCollation0x800The search term is in the form of text entered by a numeric phone keypad (such as ITU-T E.161 compliant keypads). Each digit in the search term can represent a number of alphanumeric symbols. For example, the search string "43556" would match items "HELLO", "GEKKO", "HELL6" and "43556" among others. Accented characters and other punctuation characters may additionally be matched by the QContactManager in a way consistent with the platform.

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

Member Function Documentation

QContactFilter::QContactFilter()

Constructs an empty filter

QContactFilter::QContactFilter(const QContactFilter & other)

Constructs a new copy of other

QContactFilter::~QContactFilter()

Cleans up the memory used by this filter

FilterType QContactFilter::type() const

Returns the type of the filter

bool QContactFilter::operator!=(const QContactFilter & other) const

Returns true if this filter is not identical to the other filter.

See also operator==().

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

Assigns this filter to be other

bool QContactFilter::operator==(const QContactFilter & other) const

Returns true if the filter has the same type and criteria as other

Related Non-Members

const Q_CONTACTS_EXPORT operator&(const QContactFilter & left, const QContactFilter & right)

Returns a filter which is the intersection of the left and right filters

See also QContactIntersectionFilter.

const Q_CONTACTS_EXPORT operator|(const QContactFilter & left, const QContactFilter & right)

Returns a filter which is the union of the left and right filters

See also QContactUnionFilter.

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