class CPosLmDisplayItem : public CBase |
Displayable item.
A displayable item consists of a landmark or category and its database index. Database index is 0 if running single database search, and it is in the range [0, CPosLmMultiDbSearch::NumOfDatabasesInSearch - 1] in case of multiple database search. Thus, this class is a link between a landmark or a category and its database.
The class is usually not instantiated by client applications.
Public Member Functions | |
---|---|
~CPosLmDisplayItem () | |
IMPORT_C const CPosLandmarkCategory & | Category () |
IMPORT_C TUint | DatabaseIndex () |
IMPORT_C TDisplayItemType | DisplayItemType () |
IMPORT_C TInt | GetDistance ( TReal32 &) |
IMPORT_C const CPosLandmark & | Landmark () |
IMPORT_C CPosLmDisplayItem * | NewL ( CPosLandmark *, TUint ) |
IMPORT_C CPosLmDisplayItem * | NewL ( CPosLandmarkCategory *, TUint ) |
void | SetDatabaseIndex ( TUint ) |
void | SetDistance ( TReal32 ) |
Private Member Functions | |
---|---|
CPosLmDisplayItem ( CPosLandmark *, TUint ) | |
CPosLmDisplayItem ( CPosLandmarkCategory *, TUint ) |
Public Member Enumerations | |
---|---|
enum | TDisplayItemType { ELandmarkItem = 0, ECategoryItem } |
Private Attributes | |
---|---|
CPosLandmarkCategory * | iCategory |
TUint | iDatabaseIndex |
TDisplayItemType | iDisplayItemType |
TReal32 | iDistance |
TBool | iHasDistance |
CPosLandmark * | iLandmark |
CPosLmDisplayItem | ( | CPosLandmark * | aLandmark, |
TUint | aDatabaseIndex | ||
) | [private] |
C++ constructor.
CPosLandmark * aLandmark | A landmark. |
TUint aDatabaseIndex | Database index. |
CPosLmDisplayItem | ( | CPosLandmarkCategory * | aCategory, |
TUint | aDatabaseIndex | ||
) | [private] |
C++ constructor.
CPosLandmarkCategory * aCategory | A category. |
TUint aDatabaseIndex | Database index. |
IMPORT_C const CPosLandmarkCategory & | Category | ( | ) | const |
Returns the category contained in the displayable item.
IMPORT_C TUint | DatabaseIndex | ( | ) | const |
Returns the index of the database, which contained item belongs to.
The database index is associated with a database URI from the list of databases specified in CPosLmMultiDbSearch .
If display data is used in CPosLandmarkSearch , this function always returns 0.
IMPORT_C TDisplayItemType | DisplayItemType | ( | ) | const |
Returns the type of the display item.
IMPORT_C TInt | GetDistance | ( | TReal32 & | aDistance | ) | const |
Returns the distance to a position specified in the CPosLmNearestCriteria . The distance data is only used when searching with this criteria.
TReal32 & aDistance | Distance to the position specified in a CPosLmNearestCriteria . |
IMPORT_C const CPosLandmark & | Landmark | ( | ) | const |
Returns the landmark contained in the displayable item.
IMPORT_C CPosLmDisplayItem * | NewL | ( | CPosLandmark * | aLandmark, |
TUint | aDatabaseIndex = 0 | |||
) | [static] |
Two-phased constructor.
CPosLandmark * aLandmark | A landmark. |
TUint aDatabaseIndex = 0 | A database index. |
IMPORT_C CPosLmDisplayItem * | NewL | ( | CPosLandmarkCategory * | aCategory, |
TUint | aDatabaseIndex = 0 | |||
) | [static] |
Two-phased constructor.
CPosLandmarkCategory * aCategory | A category. |
TUint aDatabaseIndex = 0 | A database index. |
void | SetDatabaseIndex | ( | TUint | aDatabaseIndex | ) |
TUint aDatabaseIndex |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.