QtMobility Reference Documentation

Contents

QOrganizerItemSortOrder Class Reference

The QOrganizerItemSortOrder class defines how a list of organizer items should be ordered according to some criteria More...

 #include <QOrganizerItemSortOrder>

Public Types

enum BlankPolicy { BlanksFirst, BlanksLast }

Public Functions

QOrganizerItemSortOrder ()
QOrganizerItemSortOrder ( const QOrganizerItemSortOrder & other )
~QOrganizerItemSortOrder ()
BlankPolicy blankPolicy () const
Qt::CaseSensitivity caseSensitivity () const
QString detailDefinitionName () const
QString detailFieldName () const
Qt::SortOrder direction () const
bool isValid () const
void setBlankPolicy ( BlankPolicy blankPolicy )
void setCaseSensitivity ( Qt::CaseSensitivity sensitivity )
void setDetailDefinitionName ( const QString & definitionName, const QString & fieldName )
void setDirection ( Qt::SortOrder direction )
operator QList<QOrganizerItemSortOrder> () const
bool operator!= ( const QOrganizerItemSortOrder & other ) const
QOrganizerItemSortOrder & operator= ( const QOrganizerItemSortOrder & other )
bool operator== ( const QOrganizerItemSortOrder & other ) const

Detailed Description

The QOrganizerItemSortOrder class defines how a list of organizer items should be ordered according to some criteria

Member Type Documentation

enum QOrganizerItemSortOrder::BlankPolicy

Enumerates the ways in which the sort order interprets blanks when sorting organizer items

ConstantValueDescription
QOrganizerItemSortOrder::BlanksFirst0Considers blank values to evaluate to less than all other values in comparisons
QOrganizerItemSortOrder::BlanksLast1Considers blank values to evaluate to greater than all other values in comparisons

Member Function Documentation

QOrganizerItemSortOrder::QOrganizerItemSortOrder ()

Constructs a new sort order

QOrganizerItemSortOrder::QOrganizerItemSortOrder ( const QOrganizerItemSortOrder & other )

Constructs a copy of the other sort order

QOrganizerItemSortOrder::~QOrganizerItemSortOrder ()

Frees any memory in use by this sort order

BlankPolicy QOrganizerItemSortOrder::blankPolicy () const

Returns the blank policy of the sort order

See also setBlankPolicy().

Qt::CaseSensitivity QOrganizerItemSortOrder::caseSensitivity () const

Returns the case sensitivity of the sort order

See also setCaseSensitivity().

QString QOrganizerItemSortOrder::detailDefinitionName () const

Returns the definition name of the details which will be inspected to perform sorting. Note that if an organizer item has multiple details of the definition, the result of the sorting is undefined.

See also setDetailDefinitionName().

QString QOrganizerItemSortOrder::detailFieldName () const

Returns the name of the field in the definition which will be inspected to perform sorting

See also setDetailDefinitionName().

Qt::SortOrder QOrganizerItemSortOrder::direction () const

Returns the direction of the sort order

See also setDirection().

bool QOrganizerItemSortOrder::isValid () const

Returns true if the sort order is able to be used to sort a list of organizer items; otherwise, returns false

void QOrganizerItemSortOrder::setBlankPolicy ( BlankPolicy blankPolicy )

Sets the sort order's policy on blank values with respect to sorting to blankPolicy

See also blankPolicy().

void QOrganizerItemSortOrder::setCaseSensitivity ( Qt::CaseSensitivity sensitivity )

Sets the case sensitivity of the sort order to sensitivity

See also caseSensitivity().

void QOrganizerItemSortOrder::setDetailDefinitionName ( const QString & definitionName, const QString & fieldName )

Sets the definition name of the details which will be inspected to perform sorting to definitionName, and the name of those details' fields which contains the value which organizer items will be sorted by to fieldName

See also detailDefinitionName() and detailFieldName().

void QOrganizerItemSortOrder::setDirection ( Qt::SortOrder direction )

Sets the sort order direction to direction

See also direction().

QOrganizerItemSortOrder::operator QList<QOrganizerItemSortOrder> () const

Constructs a new list of sort orders containing only the current sort order

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

Returns true if this sort order is not identical to the other sort order

See also operator==().

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

Assigns this sort order to be equal to other

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

Returns true if this sort order is identical to the other sort order

See also operator!=().