CPosLandmarkDatabaseExtended Class Reference

class CPosLandmarkDatabaseExtended : public CPosLandmarkDatabase

Handle to a landmark database.

This class defines extensions to the functionality of CPosLandmarkDatabase class.

CPosLandmarkDatabase
Since
S60 3.2 eposlandmarks.lib.

Inherits from

Public Member Functions
~CPosLandmarkDatabaseExtended ()
IMPORT_C TInt CategoriesCount ()
CPosLmCategoryManager & CategoryManager ()
IMPORT_C TInt LandmarksCount ()
IMPORT_C CPosLandmarkDatabaseExtended * OpenL ()
IMPORT_C CPosLandmarkDatabaseExtended * OpenL (const TDesC &)
Protected Member Functions
CPosLandmarkDatabaseExtended ()
void * GetExtension ( TUid )
Private Member Functions
CPosLandmarkDatabaseExtended (const CPosLandmarkDatabaseExtended &)
CPosLandmarkDatabaseExtended & operator= (const CPosLandmarkDatabaseExtended &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CPosLandmarkDatabase::AddLandmarkL(CPosLandmark &)
CPosLandmarkDatabase::CPosLandmarkDatabase()
CPosLandmarkDatabase::CancelNotifyDatabaseEvent()
CPosLandmarkDatabase::CompactL()
CPosLandmarkDatabase::DatabaseUriLC()
CPosLandmarkDatabase::ExportLandmarksL(CPosLandmarkEncoder &,const RArray< TPosLmItemId > &,TTransferOptions)
CPosLandmarkDatabase::ImplementationId()const
CPosLandmarkDatabase::ImportLandmarksL(CPosLandmarkParser &,TTransferOptions)
CPosLandmarkDatabase::ImportLandmarksL(CPosLandmarkParser &,const RArray< TUint > &,TTransferOptions)
CPosLandmarkDatabase::ImportedLandmarksIteratorL(CPosLmOperation *)
CPosLandmarkDatabase::InitializeL()
CPosLandmarkDatabase::IsInitializingNeeded()const
CPosLandmarkDatabase::LandmarkIteratorL()
CPosLandmarkDatabase::LandmarkIteratorL(const TPosLmSortPref &)
CPosLandmarkDatabase::NotifyDatabaseEvent(TPosLmEvent &,TRequestStatus &)
CPosLandmarkDatabase::PartialReadParametersLC()
CPosLandmarkDatabase::PreparePartialLandmarksL(const RArray< TPosLmItemId > &)
CPosLandmarkDatabase::ReadLandmarkLC(TPosLmItemId)
CPosLandmarkDatabase::ReadPartialLandmarkLC(TPosLmItemId)
CPosLandmarkDatabase::RemoveAllLandmarksL()
CPosLandmarkDatabase::RemoveLandmarkL(TPosLmItemId)
CPosLandmarkDatabase::RemoveLandmarksL(const RArray< TPosLmItemId > &)
CPosLandmarkDatabase::SetPartialReadParametersL(const CPosLmPartialReadParameters &)
CPosLandmarkDatabase::SizeL()
CPosLandmarkDatabase::TakePreparedPartialLandmarksL(CPosLmOperation *)
CPosLandmarkDatabase::UpdateLandmarkL(const CPosLandmark &)
CPosLandmarkDatabase::~CPosLandmarkDatabase()
Inherited Enumerations
CPosLandmarkDatabase:_TTransferOptions
Private Attributes
TInt8 reserved
Inherited Attributes
CPosLandmarkDatabase::iDtorIdKey

Constructor & Destructor Documentation

CPosLandmarkDatabaseExtended()

IMPORT_C CPosLandmarkDatabaseExtended ( ) [protected]

CPosLandmarkDatabaseExtended(const CPosLandmarkDatabaseExtended &)

CPosLandmarkDatabaseExtended ( const CPosLandmarkDatabaseExtended & ) [private]

~CPosLandmarkDatabaseExtended()

IMPORT_C ~CPosLandmarkDatabaseExtended ( ) [virtual]

Destructor.

Member Functions Documentation

CategoriesCount()

IMPORT_C TInt CategoriesCount ( )

Returns total amount of landmark categories in the database.

CategoryManager()

CPosLmCategoryManager & CategoryManager ( ) [pure virtual]

Returns reference to category manager instance for this database.

GetExtension(TUid)

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.

Parameters

TUid aExtensionUid Type of requested extension

LandmarksCount()

IMPORT_C TInt LandmarksCount ( )

Returns total amount of landmarks in the database.

OpenL()

IMPORT_C CPosLandmarkDatabaseExtended * OpenL ( ) [static]

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.

leave
KErrNotSupported This extended interface is not supported for default database.
CPosLandmarkDatabase::OpenL()

OpenL(const TDesC &)

IMPORT_C CPosLandmarkDatabaseExtended * OpenL ( const TDesC & aDatabaseUri ) [static]

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.

leave
KErrArgument Extension of the local database name is not "ldb".
leave
KErrNotSupported This extended interface is not supported for specified protocol.
CPosLandmarkDatabase::OpenL(const TDesC&)

Parameters

const TDesC & aDatabaseUri The URI of the database to open.

operator=(const CPosLandmarkDatabaseExtended &)

CPosLandmarkDatabaseExtended & operator= ( const CPosLandmarkDatabaseExtended & ) [private]

Member Data Documentation

TInt8 reserved

TInt8 reserved [private]