#include <mw/epos_cposlandmarkdatabaseextended.h>
class CPosLandmarkDatabaseExtended : public CPosLandmarkDatabase |
Public Member Functions | |
---|---|
virtual | ~CPosLandmarkDatabaseExtended() |
IMPORT_C TInt | CategoriesCount() |
pure virtual CPosLmCategoryManager & | CategoryManager() |
IMPORT_C TInt | LandmarksCount() |
IMPORT_C CPosLandmarkDatabaseExtended * | OpenL() |
IMPORT_C CPosLandmarkDatabaseExtended * | OpenL(const TDesC &) |
Protected Member Functions | |
---|---|
CPosLandmarkDatabaseExtended() | |
pure virtual void * | GetExtension(TUid) |
Inherited Attributes | |
---|---|
CPosLandmarkDatabase::iDtorIdKey |
Inherited Enumerations | |
---|---|
CPosLandmarkDatabase:_TTransferOptions |
Inherited Type Definitions | |
---|---|
CPosLandmarkDatabase::TTransferOptions |
Handle to a landmark database.
This class defines extensions to the functionality of CPosLandmarkDatabase class.
See also: CPosLandmarkDatabase
IMPORT_C TInt | CategoriesCount | ( | ) |
Returns total amount of landmark categories in the database.
Returns: Number of landmark categories in the database or negative error code.KErrNotSupported if not supported in current database.KErrPosLmNotInitialized if database is not yet initialized.
CPosLmCategoryManager & | CategoryManager | ( | ) | [pure virtual] |
Returns reference to category manager instance for this database.
void * | GetExtension | ( | TUid | aExtensionUid | ) | [protected, pure virtual] |
Returns pointer to extension interface. Type of the requested extension interface is supplied by caller in aExtensionId.
Ownership of returned object is not transferred to caller, it is kept by implementation.
Parameter | Description |
---|---|
aExtensionUid | Type of requested extension |
Returns: Pointer to extension implementation, or NULL if not supported.
IMPORT_C TInt | LandmarksCount | ( | ) |
Returns total amount of landmarks in the database.
Returns: Number of landmarks in the database or negative error code:KErrNotSupported if not supported in current database.KErrPosLmNotInitialized if database is not yet initialized.
IMPORT_C CPosLandmarkDatabaseExtended * | OpenL | ( | ) | [static] |
Reimplemented from CPosLandmarkDatabase::OpenL()
Opens the default landmark database.
This method is the same as CPosLandmarkDatabase::OpenL() .
The client takes ownership of the returned database handle.
The database may have to be initialized before it can be used, see IsInitializingNeeded and InitializeL .
This function requires ReadUserData capability.
See also: CPosLandmarkDatabase::OpenL()
Returns: A handle to the open database.
IMPORT_C CPosLandmarkDatabaseExtended * | OpenL | ( | const TDesC & | aDatabaseUri | ) | [static] |
Reimplemented from CPosLandmarkDatabase::OpenL(const TDesC &)
Opens a specific landmark database.
This method is the same as CPosLandmarkDatabase::OpenL(const TDesC&) .
The client refers to a database by URI. The URI consists of a protocol specifier and the database location: "protocol://location". If the client does not specify a protocol, "file://" will be assumed.
For local landmark databases, the URI consists of the drive and the database file name, e.g. "c:landmarks.ldb". The path cannot be specified by the client. The extension of the database file name must be "ldb" otherwise the client will get the error KErrArgument.
If the client specifies a local database and does not specify the drive letter, e.g. "landmarks.ldb", default database drive will be assumed.
The client takes ownership of the returned database handle.
The database may have to be initialized before it can be used, see IsInitializingNeeded and InitializeL .
This function requires ReadUserData capability.
Parameter | Description |
---|---|
aDatabaseUri | The URI of the database to open. |
Returns: A handle to the open database.