TPosLmDatabaseSettings Class Reference

class TPosLmDatabaseSettings

TPosLmDatabaseSettings encapsulates the attributes that can be set for a landmark database.

The only available attribute is the displayable name.

To set a new display name, create a HPosLmDatabaseInfo object containing the URI of the database. Call SetDatabaseName on the TPosLmDatabaseSettings member in HPosLmDatabaseInfo and then pass the HPosLmDatabaseInfo to CPosLmDatabaseManager::ModifyDatabaseSettingsL .

When retrieving settings for a database, IsAttributeSet can be used to find out whether display name is set for the database or not.

eposlmdbmanlib.lib
Since
S60 3.0
Public Member Functions
TPosLmDatabaseSettings()
IMPORT_C TPtrCDatabaseName()
IMPORT_C TBoolIsAttributeSet(TAttribute)
IMPORT_C voidSetDatabaseName(const TPosLmDatabaseName &)
IMPORT_C voidUnsetAttribute(TAttribute)
Public Member Enumerations
enumTAttribute { EName = 0x01 }
Private Attributes
TUint8 iAttributes
TPosLmDatabaseName iName
TUint8 iReserved

Constructor & Destructor Documentation

TPosLmDatabaseSettings()

IMPORT_CTPosLmDatabaseSettings()

Default constructor.

Member Functions Documentation

DatabaseName()

IMPORT_C TPtrCDatabaseName()const

Retrieves the displayable name for the database.

If the EName attribute is not set, an empty descriptor is returned.

IsAttributeSet(TAttribute)

IMPORT_C TBoolIsAttributeSet(TAttributeaDbAttribute)const

Checks whether a database attribute is set in this instance.

Parameters

TAttribute aDbAttributeThe database attribute to check.

SetDatabaseName(const TPosLmDatabaseName &)

IMPORT_C voidSetDatabaseName(const TPosLmDatabaseName &aDatabaseName)

Set a displayable name for the database.

If an empty descriptor is set, the database display name will be set to an empty string.

Parameters

const TPosLmDatabaseName & aDatabaseNameThe new name for the database.

UnsetAttribute(TAttribute)

IMPORT_C voidUnsetAttribute(TAttributeaDbAttribute)

Unset a database attribute.

If an attribute is not set in this instance and the instance is passed as input to a function for modifying the settings for a database, e.g. CPosLmDatabaseManager::ModifyDatabaseSettingsL , the attribute will be removed from the database.

Parameters

TAttribute aDbAttributeThe database attribute to unset.

Member Enumerations Documentation

Enum TAttribute

Enumeration of the attributes that can be set for a landmark database.

Enumerators

EName = 0x01

Displayable name for the landmark database

Member Data Documentation

TUint8 iAttributes

TUint8 iAttributes[private]

TPosLmDatabaseName iName

TPosLmDatabaseName iName[private]

TUint8 iReserved

TUint8 iReserved[private]