The QContactSortOrder class defines how a list of contacts should be ordered according to some criteria More...
#include <QContactSortOrder>
This class was introduced in Qt Mobility 1.0.
enum | BlankPolicy { BlanksFirst, BlanksLast } |
QContactSortOrder () | |
QContactSortOrder ( const QContactSortOrder & other ) | |
~QContactSortOrder () | |
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<QContactSortOrder> () const | |
bool | operator!= ( const QContactSortOrder & other ) const |
QContactSortOrder & | operator= ( const QContactSortOrder & other ) |
bool | operator== ( const QContactSortOrder & other ) const |
The QContactSortOrder class defines how a list of contacts should be ordered according to some criteria
Enumerates the ways in which the sort order interprets blanks when sorting contacts
Constant | Value | Description |
---|---|---|
QContactSortOrder::BlanksFirst | 0 | Considers blank values to evaluate to less than all other values in comparisons |
QContactSortOrder::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
Frees any memory in use by this sort order
Returns the blank policy of the sort order
See also setBlankPolicy().
Returns the case sensitivity of the sort order
See also setCaseSensitivity().
Returns the definition name of the details which will be inspected to perform sorting. Note that if a contact has multiple details of the definition, the result of the sorting is undefined.
See also setDetailDefinitionName().
Returns the name of the field in the definition which will be inspected to perform sorting
See also setDetailDefinitionName().
Returns the direction of the sort order
See also setDirection().
Returns true if the sort order is able to be used to sort a list of contacts; otherwise, returns false
Sets the sort order's policy on blank values with respect to sorting to blankPolicy
See also blankPolicy().
Sets the case sensitivity of the sort order to sensitivity
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 contacts will be sorted by to fieldName
See also detailDefinitionName() and detailFieldName().
Sets the sort order direction to direction
See also direction().
Constructs a new list of sort orders containing only the current sort order
Returns true if this sort order is not identical to the other sort order
See also operator==().
Assigns this sort order to be equal to other
Returns true if this sort order is identical to the other sort order
See also operator!=().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.