API published in: S60 3rd Ed
Link against: eposlmdbmanlib.lib
Required Capabilities
None
Exceptions
The capability ReadUserData is required in:
CPosLmDatabaseManager::NewL();
CPosLmDatabaseManager::DefaultDatabaseUriLC();
CPosLmDatabaseManager::NotifyDatabaseEvent( TPosLmDatabaseEvent & aEvent, TRequestStatus & aStatus );
CPosLmDatabaseManager::DatabaseUriFromLastEventLC();
CPosLmDatabaseManager::ListDatabasesLC( const TDesC & aProtocol = KNullDesC );
CPosLmDatabaseManager::ListDatabasesL( RPointerArray< HPosLmDatabaseInfo > & aDatabaseInfoArray, const TDesC & aProtocol = KNullDesC );
CPosLmDatabaseManager::RegisterDatabaseL( HPosLmDatabaseInfo & aDatabaseInfo );
CPosLmDatabaseManager::UnregisterDatabaseL( const TDesC & aDatabaseUri );
CPosLmDatabaseManager::UnregisterAllDatabasesL( const TDesC & aProtocol );
CPosLmDatabaseManager::ModifyDatabaseSettingsL( const TDesC & aDatabaseUri, const TPosLmDatabaseSettings & aDatabaseSettings );
CPosLmDatabaseManager::GetDatabaseInfoL( HPosLmDatabaseInfo & aDatabaseInfo );
CPosLmDatabaseManager::DatabaseExistsL( const TDesC & aDatabaseUri );
CPosLmDatabaseManager::CreateDatabaseL( HPosLmDatabaseInfo & aDatabaseInfo );
CPosLmDatabaseManager::DeleteDatabaseL( const TDesC & aDatabaseUri );
CPosLmDatabaseManager::CopyDatabaseL( const TDesC & aSourceUri, const TDesC & aTargetUri );
The capability WriteUserData is required in:
CPosLmDatabaseManager::RegisterDatabaseL( HPosLmDatabaseInfo & aDatabaseInfo );
CPosLmDatabaseManager::UnregisterDatabaseL( const TDesC & aDatabaseUri );
CPosLmDatabaseManager::UnregisterAllDatabasesL( const TDesC & aProtocol );
CPosLmDatabaseManager::ModifyDatabaseSettingsL( const TDesC & aDatabaseUri, const TPosLmDatabaseSettings & aDatabaseSettings );
CPosLmDatabaseManager::CreateDatabaseL( HPosLmDatabaseInfo & aDatabaseInfo );
CPosLmDatabaseManager::DeleteDatabaseL( const TDesC & aDatabaseUri );
CPosLmDatabaseManager::CopyDatabaseL( const TDesC & aSourceUri, const TDesC & aTargetUri );
The capability WriteDeviceData is required in:
CPosLmDatabaseManager::SetDefaultDatabaseUriL( const TDesC & aDatabaseUri );
The capability NetworkServices is required in:
CPosLmDatabaseManager::DatabaseExistsL( const TDesC & aDatabaseUri ); When database URI refers to remote database.
CPosLmDatabaseManager::CreateDatabaseL( HPosLmDatabaseInfo & aDatabaseInfo ); When database URI refers to remote database.
CPosLmDatabaseManager::DeleteDatabaseL( const TDesC & aDatabaseUri ); When database URI refers to remote database.
CPosLmDatabaseManager::CopyDatabaseL( const TDesC & aSourceUri, const TDesC & aTargetUri ); When any of database URIs refers to remote database.
Other Information
The capability NetworkServices is required to work with remote databases.
#include <epos_hposlmdatabaseinfo.h>
Public Member Functions |
|
IMPORT_C TPtrC | DatabaseUri () const |
Retrieves the database URI. |
|
IMPORT_C TPtrC | Protocol () const |
Returns the protocol part from the URI which is set. |
|
IMPORT_C TBool | IsDefault () const |
Returns whether the database is the default database. |
|
IMPORT_C TMediaType | DatabaseMedia () const |
Returns which storage media the database resides in. |
|
IMPORT_C TChar | DatabaseDrive () const |
Returns which database drive the database resides in. |
|
IMPORT_C const TPosLmDatabaseSettings & | Settings () const |
Retrieve a const reference to the database settings. |
|
IMPORT_C TPosLmDatabaseSettings & | Settings () |
Retrieve a reference to the database settings. |
|
IMPORT_C TInt | Size () const |
Returns the size in bytes of this object. |
|
void | SetDefault (TBool aIsDefault) |
void | SetMediaType (TMediaType aMediaType) |
void | SetDatabaseDrive (TChar aDatabaseDrive) |
Static Public Member Functions |
|
static IMPORT_C HPosLmDatabaseInfo * | NewLC (const TDesC &aDatabaseUri) |
Two-phased constructor. |
|
static IMPORT_C HPosLmDatabaseInfo * | NewL (const TDesC &aDatabaseUri) |
Two-phased constructor. |
|
static IMPORT_C HPosLmDatabaseInfo * | NewLC (const HPosLmDatabaseInfo &aDatabaseInfo) |
Two-phased copy constructor. |
|
static IMPORT_C HPosLmDatabaseInfo * | NewL (const HPosLmDatabaseInfo &aDatabaseInfo) |
Two-phased copy constructor. |
|
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.
|
|
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
|
|
Retrieves the database URI.
|
|
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
|
|
Two-phased copy constructor.
|
|
Two-phased constructor.
|
|
Two-phased copy constructor.
|
|
Two-phased constructor.
|
|
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.
|
|
|
|
|
Retrieve a reference to the database settings. The reference can be used to read and write to the database settings.
|
|
Retrieve a const reference to the database settings. The const reference can be used to read the database settings.
|
|
Returns the size in bytes of this object.
|