Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: certificateapps.h
Link against: certstore.lib

Class CCertificateAppInfoManager

class CCertificateAppInfoManager : public CBase;

Description

This class is used to access a persistent store which contains the available applications on a device. It provides an interface to add and retrieve applications.

Derivation

Members

Defined in CCertificateAppInfoManager:
AddL(), ApplicationL(), Applications(), NewL(), NewL(), NewLC(), NewLC(), RemoveL(), ~CCertificateAppInfoManager()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewLC()

static IMPORT_C CCertificateAppInfoManager *NewLC();

Description

Creates a new instance of the app info manager and puts a pointer to it onto the cleanup stack.

Return value

CCertificateAppInfoManager *

A new CCertificateAppInfoManager object.


NewL()

static IMPORT_C CCertificateAppInfoManager *NewL();

Description

Creates a new instance of the app info manager.

Return value

CCertificateAppInfoManager *

A new CCertificateAppInfoManager object.


NewLC()

static IMPORT_C CCertificateAppInfoManager *NewLC(RFs &aFs, TBool aOpenedForWrite);

Description

Creates a new instance of the app info manager.

Parameters

RFs &aFs

TBool aOpenedForWrite

Return value

CCertificateAppInfoManager *


NewL()

static IMPORT_C CCertificateAppInfoManager *NewL(RFs &aFs, TBool aOpenedForWrite);

Description

Creates a new instance of the app info manager.

Parameters

RFs &aFs

TBool aOpenedForWrite

Return value

CCertificateAppInfoManager *


~CCertificateAppInfoManager()

virtual IMPORT_C ~CCertificateAppInfoManager();

Description

Virtual destructor. Frees all resources owned by the object, prior to its destruction.

[Top]


Member functions


AddL()

Capability: WriteDeviceData The caller requires the WriteDeviceData capability.

IMPORT_C void AddL(const TCertificateAppInfo &aClient);

Description

Adds a new application.

Parameters

const TCertificateAppInfo &aClient

The new application to add.

Leave codes

KErrPermissionDenied

If the caller does not have the required capability.


RemoveL()

Capability: WriteDeviceData The caller requires the WriteDeviceData capability.

IMPORT_C void RemoveL(const TUid &aUid);

Description

Removes an existing application.

Parameters

const TUid &aUid

The UID of the application to remove.

Leave codes

KErrPermissionDenied

If the caller does not have the required capability.

KErrNotFound

If there is no application matching the specified UID.


ApplicationL()

IMPORT_C const TCertificateAppInfo &ApplicationL(const TUid &aUid, TInt &aIndex) const;

Description

Gets an application by UID.

Parameters

const TUid &aUid

The UID of the application.

TInt &aIndex

On return, the index of the application in the store.

Return value

const TCertificateAppInfo &

Information about the application if it is present.

Leave codes

KErrNotFound

If there is no application matching the specified UID.


Applications()

IMPORT_C const RArray< TCertificateAppInfo > &Applications() const;

Description

Gets a list of all applications in the store.

Return value

const RArray< TCertificateAppInfo > &

An array containing all applications in the store.