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 *)

void ConstructL ( TResourceReader * aResReader ) [private]

Symbian constructor.

Parameters

TResourceReader * aResReader

Count()

IMPORT_C TInt Count ( ) 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 ( TInt aIndex ) const

Function to return the generic name of a service.

Since
S60 v5.0

Parameters

TInt aIndex the index of the service

ServiceNameLC(TUid)

IMPORT_C HBufC * ServiceNameLC ( TUid aServiceUid ) const

Function to return the generic name of a service.

Since
S60 v5.0

Parameters

TUid aServiceUid the Uid of the service

ServiceStringLC(TInt, const TDes &)

IMPORT_C HBufC * ServiceStringLC ( TInt aIndex,
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 aIndex the index of the service
const TDes & aParam parameter for the localized string

ServiceStringLC(TUid, const TDes &)

IMPORT_C HBufC * ServiceStringLC ( TUid aServiceUid,
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 aServiceUid the Uid of the service
const TDes & aParam parameter for the localized string

ServiceUidL(TInt)

IMPORT_C TUid ServiceUidL ( TInt aIndex ) 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