TPosLmSortPref Class Reference

#include <mw/EPos_TPosLmSortPref.h>

Link against: eposlandmarks.lib

class TPosLmSortPref

Detailed Description

Class for specifying sort preference.

A sort pref object can be passed to some listing and searching functions in the API, to specify a sorting order for the returned landmark list.

Landmark sorting is not case sensitive.

Since
S60 3.0

Member Enumeration Documentation

Enum TSortOrder

Specifies the sort order.

EnumeratorValueDescription
EAscending0

Ascending sort order

EDescending

Descending sort order

Constructor & Destructor Documentation

TPosLmSortPref ( CPosLandmark::TAttributes, TSortOrder )

IMPORT_CTPosLmSortPref(CPosLandmark::TAttributesaLandmarkAttribute,
TSortOrderaSortOrder = EAscending
)

C++ constructor.

Only one landmark attribute can be specified here, not a bitmap of landmark attributes.

Landmark sorting is not case sensitive.

panic
"Landmarks Client"-EPosNoneOrMultipleLandmarkAttributeSet More than one attribute is specified or no attributes at all.
ParameterDescription
aLandmarkAttributeThe landmark attribute to sort by.
aSortOrderAscending or descending sort order.

Member Function Documentation

LandmarkAttributeToSortBy ( )

IMPORT_C CPosLandmark::TAttributesLandmarkAttributeToSortBy()const

Gets the landmark attribute to sort by.

Returns: The landmark attribute to sort by, or CPosLandmark::ENoAttribute, if sort is not done by landmark attribute.

SetSortByLandmarkAttribute ( CPosLandmark::TAttributes, TSortOrder )

IMPORT_C voidSetSortByLandmarkAttribute(CPosLandmark::TAttributesaLandmarkAttribute,
TSortOrderaSortOrder = EAscending
)

Sets the landmark attribute to sort by.

Landmark sorting is not case sensitive.

panic
"Landmarks Client"-EPosNoneOrMultipleLandmarkAttributeSet More than one attribute is specified or no attributes at all.
ParameterDescription
aLandmarkAttributeThe landmark attribute to sort by.
aSortOrderThe preferred sort order.

SortOrder ( )

IMPORT_C TSortOrderSortOrder()const

Gets the preferred sort order.

Returns: The preferred sort order.