QtMobility Reference Documentation

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.

ConstantValueDescription
QMessageDataComparator::Equal0Represents the '==' operator.
QMessageDataComparator::NotEqual1Represents the '!=' operator.

enum QMessageDataComparator::InclusionComparator

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

ConstantValueDescription
QMessageDataComparator::Includes0Represents an operation in which an associated property is tested to determine whether it includes a value.
QMessageDataComparator::Excludes1Represents 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.

ConstantValueDescription
QMessageDataComparator::Like0Represents a postive match.
QMessageDataComparator::NotLike1Represent a negative match.

enum QMessageDataComparator::MatchFlag
flags QMessageDataComparator::MatchFlags

This enum describes additional matching criteria when performing a search.

ConstantValueDescription
QMessageDataComparator::MatchCaseSensitiveQt::MatchCaseSensitiveThe key should be case sensitive. Not supported on QMF platform.
QMessageDataComparator::MatchFullWord128The 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.

ConstantValueDescription
QMessageDataComparator::LessThan0Represents the '<' operator.
QMessageDataComparator::LessThanEqual1Represents the '<=' operator.
QMessageDataComparator::GreaterThan2Represents the '>' operator.
QMessageDataComparator::GreaterThanEqual3Represents the '>= operator'.
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.