QtMobility Reference Documentation

QLandmarkSortOrder Class Reference

The QLandmarkSortOrder class serves as a base class for the different sort order types and by itself represents no sorting. More...

 #include <QLandmarkSortOrder>

Inherited by: QLandmarkNameSort.

This class was introduced in Qt Mobility 1.1.

Public Types

enum SortType { NoSort, NameSort }

Public Functions

QLandmarkSortOrder ()
QLandmarkSortOrder ( const QLandmarkSortOrder & other )
virtual ~QLandmarkSortOrder ()
Qt::SortOrder direction () const
void setDirection ( Qt::SortOrder direction )
SortType type () const
bool operator!= ( const QLandmarkSortOrder & other ) const
QLandmarkSortOrder & operator= ( const QLandmarkSortOrder & other )
bool operator== ( const QLandmarkSortOrder & other ) const

Detailed Description

The QLandmarkSortOrder class serves as a base class for the different sort order types and by itself represents no sorting.

The sort orders define how a list of landmarks should be ordered when they searched using a QLandmarkManager or one of the landmark request classes. (For sorting by distance see the QLandmarkProximityFilter).

Member Type Documentation

enum QLandmarkSortOrder::SortType

Defines the type of sort order.

ConstantValueDescription
QLandmarkSortOrder::NoSort0No sorting is applied
QLandmarkSortOrder::NameSort1Sorts landmarks by name.

Member Function Documentation

QLandmarkSortOrder::QLandmarkSortOrder ()

Constructs a landmark sort order.

The type of the sort order is NoSort.

QLandmarkSortOrder::QLandmarkSortOrder ( const QLandmarkSortOrder & other )

Constructs a copy of other.

QLandmarkSortOrder::~QLandmarkSortOrder () [virtual]

Destroys the sort order

Qt::SortOrder QLandmarkSortOrder::direction () const

Returns the direction of the sort order.

This function was introduced in Qt Mobility 1.1.

See also setDirection().

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

Sets the direction of the sort order.

This function was introduced in Qt Mobility 1.1.

See also direction().

SortType QLandmarkSortOrder::type () const

Returns the type of sort.

This function was introduced in Qt Mobility 1.1.

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

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

This function was introduced in Qt Mobility 1.1.

See also operator==().

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

Assigns other to this sort order and returns a reference to this sort order.

This function was introduced in Qt Mobility 1.1.

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

Returns true if this sort order is identical to other.

This function was introduced in Qt Mobility 1.1.

See also 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.