Qt Mobility Reference Documentation

QLandmarkSortOrder Class Reference

The QLandmarkSortOrder class serves as a base class for the different sort order types. More...

 #include <QLandmarkSortOrder>

Inherited by QLandmarkDistanceSort and QLandmarkNameSort.


Public Types

enum SortType { DefaultSort, NameSort, DistanceSort }

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.

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.


Member Type Documentation

enum QLandmarkSortOrder::SortType

Defines the type of sort order.

ConstantValueDescription
QLandmarkSortOrder::DefaultSort0The default sort order that does nothing
QLandmarkSortOrder::NameSort1Sorts landmarks by name.
QLandmarkSortOrder::DistanceSort2Sorts landmarks by distance from a particular coordinate.

Member Function Documentation

QLandmarkSortOrder::QLandmarkSortOrder ()

Constructs a landmark sort order.

The type of the sort order is InvalidSort.

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.

See also setDirection().

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

Sets the direction of the sort order.

See also direction().

SortType QLandmarkSortOrder::type () const

Returns the type of sort.

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

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

See also operator==().

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

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

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

Returns true if this sort order is identical to other.

See also operator!=().


Copyright © 2009-2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.1.0