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

Constructor & Destructor Documentation

CMmsRegisteredApplications()

CMmsRegisteredApplications ( ) [private]

C++ default constructor.

~CMmsRegisteredApplications()

~CMmsRegisteredApplications ( ) [virtual]

Destructor

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

By default EPOC constructor is private.

LoadRegisteredApplicationsL()

IMPORT_C void LoadRegisteredApplicationsL ( )

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 TInt NumberOfRegisteredApplicationsL ( ) const

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

RegisterL(const TDesC &)

IMPORT_C TInt RegisterL ( 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 & aApplicationId application id

RegisterL(const TDesC &, const TDesC &)

IMPORT_C TInt RegisterL ( 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 & aApplicationId application id
const TDesC & aUserFriendlyName user 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 & aApplicationId id to check
TInt & aIndex index 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 TBool RegisteredL ( 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 & aApplicationId application id

SaveCount()

TInt SaveCount ( ) [private]

Saves number of registered applicationsto cen rep

UnregisterL(const TDesC &)

IMPORT_C TInt UnregisterL ( 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 & aApplicationId application id

UserFriendlyName(const TDesC &)

IMPORT_C TPtrC UserFriendlyName ( const TDesC & aApplicationId )

Get User Friendly Name for an application

Since
3.2

Parameters

const TDesC & aApplicationId application id

Member Data Documentation

CDesCArrayFlat * iAppIdArray

CDesCArrayFlat * iAppIdArray [private]

CRepository * iRepository

CRepository * iRepository [private]

HBufC * iUserFriendlyName

HBufC * iUserFriendlyName [private]