CServicesDB Class Reference

class CServicesDB : public CBase

API for retrieving various localized strings associated with services.

This class receives a resource ID during construction (resource type is DAS_SERVICES) and retrieves various info defined in this resource.

defaultappclient.dll
Since
S60 v5.0

Inherits from

Constructor & Destructor Documentation

CServicesDB()

CServicesDB()[private]

C++ default constructor.

~CServicesDB()

IMPORT_C~CServicesDB()

Destructor.

Member Functions Documentation

ConstructL(TResourceReader *)

voidConstructL(TResourceReader *aResReader)[private]

Symbian constructor.

Parameters

TResourceReader * aResReader

Count()

IMPORT_C TIntCount()const

Returns the number of available services (the number of services read from the resource during construction)

Since
S60 v5.0

NewL(TResourceReader *)

IMPORT_C CServicesDB *NewL(TResourceReader *aResReader)[static]

Symbian OS two-phased constructor

Parameters

TResourceReader * aResReader

NewLC(TResourceReader *)

IMPORT_C CServicesDB *NewLC(TResourceReader *aResReader)[static]

Symbian OS two-phased constructor

Parameters

TResourceReader * aResReader

ServiceNameLC(TInt)

IMPORT_C HBufC *ServiceNameLC(TIntaIndex)const

Function to return the generic name of a service.

Since
S60 v5.0

Parameters

TInt aIndexthe index of the service

ServiceNameLC(TUid)

IMPORT_C HBufC *ServiceNameLC(TUidaServiceUid)const

Function to return the generic name of a service.

Since
S60 v5.0

Parameters

TUid aServiceUidthe Uid of the service

ServiceStringLC(TInt, const TDes &)

IMPORT_C HBufC *ServiceStringLC(TIntaIndex,
const TDes &aParam
)const

Function to return the localized name associated with a service. If the returned strings accepts a parameter, this can be specified as aParam

Since
S60 v5.0

Parameters

TInt aIndexthe index of the service
const TDes & aParamparameter for the localized string

ServiceStringLC(TUid, const TDes &)

IMPORT_C HBufC *ServiceStringLC(TUidaServiceUid,
const TDes &aParam
)const

Function to return the localized name associated with a service. If the returned strings accepts a parameter, this can be specified as aParam

Since
S60 v5.0

Parameters

TUid aServiceUidthe Uid of the service
const TDes & aParamparameter for the localized string

ServiceUidL(TInt)

IMPORT_C TUidServiceUidL(TIntaIndex)const

Function to return the Uid of a service (by index).

Since
S60 v5.0

Parameters

TInt aIndex

Member Data Documentation

RPointerArray< HBufC > iServiceLoc

RPointerArray< HBufC >iServiceLoc[private]

array of service localized names

RPointerArray< HBufC > iServiceNames

RPointerArray< HBufC >iServiceNames[private]

array of service names

RArray< TInt > iServiceUids

RArray< TInt >iServiceUids[private]

array of service Uids