The QOrganizerItemSortOrder class defines how a list of organizer items should be ordered according to some criteria More...
#include <QOrganizerItemSortOrder>This class was introduced in Qt Mobility 1.1.
| enum | BlankPolicy { BlanksFirst, BlanksLast } |
| 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 |
The QOrganizerItemSortOrder class defines how a list of organizer items should be ordered according to some criteria
Enumerates the ways in which the sort order interprets blanks when sorting organizer items
| Constant | Value | Description |
|---|---|---|
| QOrganizerItemSortOrder::BlanksFirst | 0 | Considers blank values to evaluate to less than all other values in comparisons |
| QOrganizerItemSortOrder::BlanksLast | 1 | Considers blank values to evaluate to greater than all other values in comparisons |
Constructs a new sort order
* Constructs a copy of the other sort order
This function was introduced in Qt Mobility 1.1.
Frees any memory in use by this sort order
* Returns the blank policy of the sort order *
This function was introduced in Qt Mobility 1.1.
See also setBlankPolicy().
* Returns the case sensitivity of the sort order *
This function was introduced in Qt Mobility 1.1.
See also setCaseSensitivity().
* 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. *
This function was introduced in Qt Mobility 1.1.
See also setDetailDefinitionName().
* Returns the name of the field in the definition which will be inspected to perform sorting *
This function was introduced in Qt Mobility 1.1.
See also setDetailDefinitionName().
* Returns the direction of the sort order *
This function was introduced in Qt Mobility 1.1.
See also setDirection().
* Returns true if the sort order is able to be used to sort a list of organizer items; otherwise, returns false
This function was introduced in Qt Mobility 1.1.
* Sets the sort order's policy on blank values with respect to sorting to blankPolicy *
This function was introduced in Qt Mobility 1.1.
See also blankPolicy().
* Sets the case sensitivity of the sort order to sensitivity *
This function was introduced in Qt Mobility 1.1.
See also caseSensitivity().
* 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 *
This function was introduced in Qt Mobility 1.1.
See also detailDefinitionName() and detailFieldName().
* Sets the sort order direction to direction *
This function was introduced in Qt Mobility 1.1.
See also direction().
* * Constructs a new list of sort orders containing only the current sort order
This function was introduced in Qt Mobility 1.1.
* * Returns true if this sort order is not identical to the other sort order *
This function was introduced in Qt Mobility 1.1.
See also operator==().
* Assigns this sort order to be equal to other
This function was introduced in Qt Mobility 1.1.
* Returns true if this sort order is identical to the other sort order *
This function was introduced in Qt Mobility 1.1.
See also operator!=().