MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QMessageDataComparator Namespace

The QMessageDataComparator namespace contains types used in specifying the comparison of MessageStore objects with user-defined values. More...

 #include <QMessageDataComparator>

Types

enum EqualityComparator { Equal, NotEqual }
enum InclusionComparator { Includes, Excludes }
enum LikeComparator { Like, NotLike }
enum MatchFlag { MatchCaseSensitive, MatchFullWord }
flags MatchFlags
enum RelationComparator { LessThan, LessThanEqual, GreaterThan, GreaterThanEqual }

Detailed Description

The QMessageDataComparator namespace contains types used in specifying the comparison of MessageStore objects with user-defined values.

Type Documentation

enum QMessageDataComparator::EqualityComparator

Defines the comparison operations that can be used to compare data elements of QMessageManager objects for equality and inequality.

Constant Value Description
QMessageDataComparator::Equal 0 Represents the '==' operator.
QMessageDataComparator::NotEqual 1 Represents the '!=' operator.

enum QMessageDataComparator::InclusionComparator

Defines the comparison operations that can be used to compare data elements of QMessageManager objects for inclusion or exclusion.

Constant Value Description
QMessageDataComparator::Includes 0 Represents an operation in which an associated property is tested to determine whether it includes a value.
QMessageDataComparator::Excludes 1 Represents an operation in which an associated property is tested to determine whether it is equal to the supplied value.

enum QMessageDataComparator::LikeComparator

Defines the comparison operations that can be used to compare data elements of QMessageManager objects, according to a specific relation.

LikeComparator used the same syntax as an SQL like search, namely, '_' matches any single character and '%' matches zero or more characters. '' is used to escape these symbols and itself.

Constant Value Description
QMessageDataComparator::Like 0 Represents a postive match.
QMessageDataComparator::NotLike 1 Represent a negative match.

enum QMessageDataComparator::MatchFlag
flags QMessageDataComparator::MatchFlags

This enum describes additional matching criteria when performing a search.

Constant Value Description
QMessageDataComparator::MatchCaseSensitive Qt::MatchCaseSensitive The key should be case sensitive. Not supported on QMF platform.
QMessageDataComparator::MatchFullWord 128 The key should only match a complete word. Not supported on Windows and QMF platforms.

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

enum QMessageDataComparator::RelationComparator

Defines the comparison operations that can be used to compare data elements of QMessageManager objects, according to a specific relation.

Constant Value Description
QMessageDataComparator::LessThan 0 Represents the '<' operator.
QMessageDataComparator::LessThanEqual 1 Represents the '<=' operator.
QMessageDataComparator::GreaterThan 2 Represents the '>' operator.
QMessageDataComparator::GreaterThanEqual 3 Represents the '>= operator'.