CMmsRegisteredApplications Class Reference

class CMmsRegisteredApplications : public CBase
CMmsRegisteredApplications takes care of registered applications in cen rep. it keeps count on which application ids are registered. mmsserversettings.lib
Since
3.0

Inherits from

  • CMmsRegisteredApplications

Constructor & Destructor Documentation

CMmsRegisteredApplications()

CMmsRegisteredApplications()[private]

C++ default constructor.

~CMmsRegisteredApplications()

~CMmsRegisteredApplications()[virtual]

Destructor

Member Functions Documentation

ConstructL()

voidConstructL()[private]

By default EPOC constructor is private.

LoadRegisteredApplicationsL()

IMPORT_C voidLoadRegisteredApplicationsL()

Loads registered applications array from Central Repository In addition number of registered applications is loaded from cen rep.

NewL()

IMPORT_C CMmsRegisteredApplications *NewL()[static]

Two-phased constructor.

NumberOfRegisteredApplicationsL()

IMPORT_C TIntNumberOfRegisteredApplicationsL()const

Get Number of Registered Applications; It is assumed that LoadRegisteredApplicationsL is called before this.

RegisterL(const TDesC &)

IMPORT_C TIntRegisterL(const TDesC &aApplicationId)
Register application. the function adds an application id to the cen rep array. If the application id is already registered, it is not added again. It is assumed that LoadRegisteredApplicationsL is called before this.
Since
3.0

Parameters

const TDesC & aApplicationIdapplication id

RegisterL(const TDesC &, const TDesC &)

IMPORT_C TIntRegisterL(const TDesC &aApplicationId,
const TDesC &aUserFriendlyName
)

Register application. the function adds an application id to the cen rep array. If the application id is already registered, it is not added again. It is assumed that LoadRegisteredApplicationsL is called before this.

Since
3.2

Parameters

const TDesC & aApplicationIdapplication id
const TDesC & aUserFriendlyNameuser friendly name for the application

Registered(const TDesC &, TInt &)

TBool Registered(const TDesC &aApplicationId,
TInt &aIndex
)[private]

gets the index of the registered application If application is not registered, index will be -1

Parameters

const TDesC & aApplicationIdid to check
TInt & aIndexindex of the id if registered

RegisteredApplicationList()

IMPORT_C const CDesCArray &RegisteredApplicationList()const

Return a list of registered applications

It is assumed that LoadRegisteredApplicationsL is called before this.

Since
3.1

RegisteredL(const TDesC &)

IMPORT_C TBoolRegisteredL(const TDesC &aApplicationId)

RegisteredL

checks locally if the application id is registered or not It is assumed that LoadRegisteredApplicationsL is called before this.
Since
3.0

Parameters

const TDesC & aApplicationIdapplication id

SaveCount()

TInt SaveCount()[private]

Saves number of registered applicationsto cen rep

UnregisterL(const TDesC &)

IMPORT_C TIntUnregisterL(const TDesC &aApplicationId)

Unregister application The function deletes the application id from the cenrep array. It is assumed that LoadRegisteredApplicationsL is called before this.

Since
3.0

Parameters

const TDesC & aApplicationIdapplication id

UserFriendlyName(const TDesC &)

IMPORT_C TPtrCUserFriendlyName(const TDesC &aApplicationId)

Get User Friendly Name for an application

Since
3.2

Parameters

const TDesC & aApplicationIdapplication id

Member Data Documentation

CDesCArrayFlat * iAppIdArray

CDesCArrayFlat *iAppIdArray[private]

CRepository * iRepository

CRepository *iRepository[private]

HBufC * iUserFriendlyName

HBufC *iUserFriendlyName[private]