API published in: S60 3rd Ed
Link against: eposlandmarks.lib
Required Capabilities
None
Exceptions
The capability ReadUserData is required in:
CPosLandmarkDatabase::OpenL();
CPosLandmarkDatabase::OpenL( const TDesC & aDatabaseUri );
CPosLandmarkDatabase::InitializeL();
CPosLandmarkDatabase::ReadLandmarkLC( TPosLmItemId aLandmarkId );
CPosLandmarkDatabase::LandmarkIteratorL();
CPosLandmarkDatabase::LandmarkIteratorL( const TPosLmSortPref & aSortPref );
CPosLandmarkDatabase::AddLandmarkL( CPosLandmark & aLandmark );
CPosLandmarkDatabase::UpdateLandmarkL( const CPosLandmark & aLandmark );
CPosLandmarkDatabase::RemoveLandmarkL( TPosLmItemId aLandmarkId );
CPosLandmarkDatabase::RemoveLandmarksL( const RArray< TPosLmItemId > & aLandmarkIdArray );
CPosLandmarkDatabase::RemoveAllLandmarksL();
CPosLandmarkDatabase::ReadPartialLandmarkLC( TPosLmItemId aLandmarkId );
CPosLandmarkDatabase::PreparePartialLandmarksL( const RArray< TPosLmItemId > & aLandmarkIdArray );
CPosLandmarkDatabase::SizeL();
CPosLandmarkDatabase::CompactL();
CPosLandmarkDatabase::NotifyDatabaseEvent( TPosLmEvent & aEvent, TRequestStatus & aStatus );
CPosLandmarkDatabase::CancelNotifyDatabaseEvent();
CPosLandmarkDatabase::ImportLandmarksL( CPosLandmarkParser& aLandmarkParser, TTransferOptions aTransferOptions );
CPosLandmarkDatabase::ImportLandmarksL( CPosLandmarkParser& aLandmarkParser, const RArray<TUint>& aLandmarkSelection, TTransferOptions aTransferOptions );
CPosLmCategoryManager::ReadCategoryLC( TPosLmItemId aCategoryId );
CPosLmCategoryManager::CategoryIteratorL( TCategorySortPref aSortPref );
CPosLmCategoryManager::ReferencedCategoryIteratorL( TCategorySortPref aSortPref )
CPosLmCategoryManager::AddCategoryL( CPosLandmarkCategory & aCategory );
CPosLmCategoryManager::UpdateCategoryL( const CPosLandmarkCategory & aCategory );
CPosLmCategoryManager::RemoveCategoryL( TPosLmItemId aCategoryId );
CPosLmCategoryManager::RemoveCategoriesL( const RArray< TPosLmItemId > & aCategoryIdArray );
CPosLmCategoryManager::AddCategoryToLandmarksL( TPosLmItemId aCategoryId, RArray< TPosLmItemId > & aLandmarkIdArray );
CPosLmCategoryManager::RemoveCategoryFromLandmarksL( TPosLmItemId aCategoryId, RArray< TPosLmItemId > & aLandmarkIdArray );
CPosLmCategoryManager::GetCategoryL( const TDesC & aCategoryName );
CPosLmCategoryManager::GetGlobalCategoryL( TPosLmGlobalCategory aGlobalCategory );
CPosLmCategoryManager::ResetGlobalCategoriesL();
The capability WriteUserData is required in:
CPosLandmarkDatabase::AddLandmarkL( CPosLandmark& aLandmark );
CPosLandmarkDatabase::UpdateLandmarkL( const CPosLandmark& aLandmark );
CPosLandmarkDatabase::RemoveLandmarkL( TPosLmItemId aLandmarkId );
CPosLandmarkDatabase::RemoveLandmarksL( const RArray<TPosLmItemId>& aLandmarkIdArray );
CPosLandmarkDatabase::RemoveAllLandmarksL();
CPosLandmarkDatabase::CompactL();
CPosLandmarkDatabase::ImportLandmarksL( CPosLandmarkParser& aLandmarkParser, TTransferOptions aTransferOptions );
CPosLandmarkDatabase::ImportLandmarksL( CPosLandmarkParser& aLandmarkParser, const RArray<TUint>& aLandmarkSelection, TTransferOptions aTransferOptions );
CPosLmCategoryManager::AddCategoryL( CPosLandmarkCategory & aCategory );
CPosLmCategoryManager::UpdateCategoryL( const CPosLandmarkCategory & aCategory );
CPosLmCategoryManager::RemoveCategoryL( TPosLmItemId aCategoryId );
CPosLmCategoryManager::RemoveCategoriesL( const RArray< TPosLmItemId > & aCategoryIdArray );
CPosLmCategoryManager::AddCategoryToLandmarksL( TPosLmItemId aCategoryId, RArray< TPosLmItemId > & aLandmarkIdArray );
CPosLmCategoryManager::RemoveCategoryFromLandmarksL( TPosLmItemId aCategoryId, RArray< TPosLmItemId > & aLandmarkIdArray );
CPosLmCategoryManager::ResetGlobalCategoriesL();
Other Information
The capability NetworkServices is required to work with remote databases.
#include <epos_cposlandmarkcategory.h>
A landmark database can contain a number of categories which can be assigned to the landmarks in the database. A landmark can be associated with multiple categories, e.g. a landmark can be a "Restaurant" and a "Pub". Categories also enable filtered searches, e.g. a client could search for nearby restaurants.
This class specifies the landmark category attributes, i.e. name, icon and a global category identifier. Global categories enable a uniform categorization across multiple databases.
A landmark category is created, updated or deleted by using functions in CPosLmCategoryManager.
Public Types |
|
typedef TUint32 | TAttributes |
Bitmap for specifying a group of category attributes. |
|
enum | _TAttributes { ENoAttribute = 0x0000, ECategoryName = 0x0001, EIcon = 0x0010, EAllAttributes = 0xFFFF } |
Specifies a category attribute, such as category name or category icon. More... |
|
Public Member Functions |
|
virtual | ~CPosLandmarkCategory () |
Destructor. |
|
IMPORT_C TPosLmItemId | CategoryId () const |
Reads the ID of the category entry in the database. |
|
IMPORT_C TPosLmGlobalCategory | GlobalCategory () const |
Retrieves global category ID. |
|
void | SetGlobalCategory (TPosLmGlobalCategory aGlobalCategory) |
IMPORT_C TInt | GetCategoryName (TPtrC &aCategoryName) const |
Reads the name of the landmark category. |
|
IMPORT_C void | SetCategoryNameL (const TDesC &aCategoryName) |
Sets the name of the landmark category. |
|
IMPORT_C void | SetIconL (const TDesC &aIconFileName, TInt aIconIndex, TInt aIconMaskIndex) |
Associates the landmark category with an icon. |
|
IMPORT_C TInt | GetIcon (TPtrC &aIconFileName, TInt &aIconIndex, TInt &aIconMaskIndex) const |
Returns the a link to the icon associated with the landmark category. |
|
IMPORT_C void | RemoveCategoryAttributes (TAttributes aAttributes) |
Removes category attributes from the landmark category. |
|
void | SetCategoryIdL (TPosLmItemId aId) |
Static Public Member Functions |
|
static IMPORT_C CPosLandmarkCategory * | NewLC () |
Two-phased constructor. |
|
static IMPORT_C CPosLandmarkCategory * | NewL () |
Two-phased constructor. |
|
static IMPORT_C CPosLandmarkCategory * | NewLC (const CPosLandmarkCategory &aCategory) |
Two-phased copy constructor. |
|
static IMPORT_C CPosLandmarkCategory * | NewL (const CPosLandmarkCategory &aCategory) |
Two-phased copy constructor. |
|
Bitmap for specifying a group of category attributes. Bit values are defined by _TAttributes. |
|
Specifies a category attribute, such as category name or category icon. |
|
Destructor. |
|
Reads the ID of the category entry in the database.
|
|
Reads the name of the landmark category.
|
|
Returns the a link to the icon associated with the landmark category. Icons are found in icon files. It is referenced by the name of the icon file and the index of the icon within the file. The landmark category is not affected if the icon file is changed or removed. It only contains a link to the icon. This means that the link could be invalid.
|
|
Retrieves global category ID. Global categories enable a uniform categorization across multiple databases.
|
|
Two-phased copy constructor.
|
|
Two-phased constructor.
|
|
Two-phased copy constructor.
|
|
Two-phased constructor.
|
|
Removes category attributes from the landmark category.
|
|
|
Sets the name of the landmark category.
|
|
|
Associates the landmark category with an icon. Icons are found in icon files. To set an icon, the client must specify the name of the icon file and the index of the icon within the file. The landmark is not affected if the icon file is changed or removed. It only contains a link to the icon.
|