class HPosLmDatabaseInfo |
HPosLmDatabaseInfo encapsulates information about a landmark database.
Public Member Functions | |
---|---|
IMPORT_C TChar | DatabaseDrive() |
IMPORT_C TMediaType | DatabaseMedia() |
IMPORT_C TPtrC | DatabaseUri() |
IMPORT_C TBool | IsDefault() |
IMPORT_C HPosLmDatabaseInfo * | NewL(const TDesC &) |
IMPORT_C HPosLmDatabaseInfo * | NewL(const HPosLmDatabaseInfo &) |
IMPORT_C HPosLmDatabaseInfo * | NewLC(const TDesC &) |
IMPORT_C HPosLmDatabaseInfo * | NewLC(const HPosLmDatabaseInfo &) |
IMPORT_C TPtrC | Protocol() |
void | SetDatabaseDrive(TChar) |
void | SetDefault(TBool) |
void | SetMediaType(TMediaType) |
IMPORT_C const TPosLmDatabaseSettings & | Settings() |
IMPORT_C TPosLmDatabaseSettings & | Settings() |
IMPORT_C TInt | Size() |
Private Member Functions | |
---|---|
HPosLmDatabaseInfo(const TDesC &) | |
HPosLmDatabaseInfo(const HPosLmDatabaseInfo &) | |
TAny * | AllocateL(const TDesC &) |
TInt | BufferOffset() |
void | SetDatabaseUri(const TDesC &) |
HPosLmDatabaseInfo & | operator=(const HPosLmDatabaseInfo &) |
Private Attributes | |
---|---|
TUint8 | iBuffer |
TChar | iDatabaseDrive |
TMediaType | iDatabaseMedia |
TBool | iIsDefault |
TPosLmDatabaseSettings | iSettings |
HPosLmDatabaseInfo | ( | const TDesC & | aDatabaseUri | ) | [private] |
const TDesC & aDatabaseUri |
HPosLmDatabaseInfo | ( | const HPosLmDatabaseInfo & | aDatabaseInfo | ) | [private] |
const HPosLmDatabaseInfo & aDatabaseInfo |
TAny * | AllocateL | ( | const TDesC & | aDatabaseUri | ) | [private, static] |
const TDesC & aDatabaseUri |
IMPORT_C TChar | DatabaseDrive | ( | ) | const |
Returns which database drive the database resides in.
Note: that this attribute is only set if the HPosLmDatabaseInfo instance has been returned from a CPosLmDatabaseManager function, e.g. CPosLmDatabaseManager::ListDatabasesL , CPosLmDatabaseManager::GetDatabaseInfoL , CPosLmDatabaseManager::RegisterDatabaseL , CPosLmDatabaseManager::CreateDatabaseL or CPosLmDatabaseManager::ModifyDatabaseSettingsL . If not, this function returns 0.
If database drive is not applicable for the database, e.g. the database is remote, this function returns 0.
IMPORT_C TMediaType | DatabaseMedia | ( | ) | const |
Returns which storage media the database resides in.
Note: this attribute is only set if the HPosLmDatabaseInfo instance has been returned from a CPosLmDatabaseManager function, e.g. CPosLmDatabaseManager::ListDatabasesL , CPosLmDatabaseManager::GetDatabaseInfoL , CPosLmDatabaseManager::RegisterDatabaseL , CPosLmDatabaseManager::CreateDatabaseL or CPosLmDatabaseManager::ModifyDatabaseSettingsL . If not, this function returns EMediaUnknown.
IMPORT_C TBool | IsDefault | ( | ) | const |
Returns whether the database is the default database.
Note: that this attribute is only set if the HPosLmDatabaseInfo instance has been returned from a CPosLmDatabaseManager function, e.g. CPosLmDatabaseManager::ListDatabasesL , CPosLmDatabaseManager::GetDatabaseInfoL , CPosLmDatabaseManager::RegisterDatabaseL , CPosLmDatabaseManager::CreateDatabaseL or CPosLmDatabaseManager::ModifyDatabaseSettingsL . If not, this function returns EFalse.
IMPORT_C HPosLmDatabaseInfo * | NewL | ( | const TDesC & | aDatabaseUri | ) | [static] |
Two-phased constructor.
const TDesC & aDatabaseUri | The URI of the landmark database. |
IMPORT_C HPosLmDatabaseInfo * | NewL | ( | const HPosLmDatabaseInfo & | aDatabaseInfo | ) | [static] |
Two-phased copy constructor.
const HPosLmDatabaseInfo & aDatabaseInfo | The information instance to copy. |
IMPORT_C HPosLmDatabaseInfo * | NewLC | ( | const TDesC & | aDatabaseUri | ) | [static] |
Two-phased constructor.
const TDesC & aDatabaseUri | The URI of the landmark database. |
IMPORT_C HPosLmDatabaseInfo * | NewLC | ( | const HPosLmDatabaseInfo & | aDatabaseInfo | ) | [static] |
Two-phased copy constructor.
const HPosLmDatabaseInfo & aDatabaseInfo | The information instance to copy. |
IMPORT_C TPtrC | Protocol | ( | ) | const |
Returns the protocol part from the URI which is set.
Example: If the URI is "file://c:landmarks.ldb" then the protocol is "file".
If no protocol is specified, an empty descriptor is returned. This implies "file" protocol.
void | SetDatabaseUri | ( | const TDesC & | aDatabaseUri | ) | [private] |
const TDesC & aDatabaseUri |
IMPORT_C const TPosLmDatabaseSettings & | Settings | ( | ) | const |
Retrieve a const reference to the database settings.
The const reference can be used to read the database settings.
IMPORT_C TPosLmDatabaseSettings & | Settings | ( | ) |
Retrieve a reference to the database settings.
The reference can be used to read and write to the database settings.
HPosLmDatabaseInfo & | operator= | ( | const HPosLmDatabaseInfo & | ) | [private] |
const HPosLmDatabaseInfo & |
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.