CCertificateAppInfoManager Class Reference

#include <certificateapps.h>

Link against: certstore.lib

class CCertificateAppInfoManager : public CBase

Inherits from

  • CCertificateAppInfoManager

Detailed 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.

Constructor & Destructor Documentation

~CCertificateAppInfoManager ( )

IMPORT_C~CCertificateAppInfoManager()[virtual]

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

Member Function Documentation

AddL ( const TCertificateAppInfo & )

IMPORT_C voidAddL(const TCertificateAppInfo &aClient)

Adds a new application.

Parameters
aClientThe new application to add.
Leave Codes
KErrPermissionDeniedIf the caller does not have the required capability.
Capability
WriteDeviceDataThe caller requires the WriteDeviceData capability.

ApplicationL ( const TUid &, TInt & )

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

Gets an application by UID.

Parameters
aUidThe UID of the application.
aIndexOn return, the index of the application in the store.
Return Value
Information about the application if it is present.
Leave Codes
KErrNotFoundIf there is no application matching the specified UID.

Applications ( )

IMPORT_C const RArray< TCertificateAppInfo > &Applications()const

Gets a list of all applications in the store.

Return Value
An array containing all applications in the store.

NewL ( )

IMPORT_C CCertificateAppInfoManager *NewL()[static]

Creates a new instance of the app info manager.

Return Value
A new CCertificateAppInfoManager object.

NewL ( RFs &, TBool )

IMPORT_C CCertificateAppInfoManager *NewL(RFs &aFs,
TBoolaOpenedForWrite
)[static]

Creates a new instance of the app info manager.

DeprecatedClients should use the no-argument version.

NewLC ( )

IMPORT_C CCertificateAppInfoManager *NewLC()[static]

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

Return Value
A new CCertificateAppInfoManager object.

NewLC ( RFs &, TBool )

IMPORT_C CCertificateAppInfoManager *NewLC(RFs &aFs,
TBoolaOpenedForWrite
)[static]

Creates a new instance of the app info manager.

DeprecatedClients should use the no-argument version.

RemoveL ( const TUid & )

IMPORT_C voidRemoveL(const TUid &aUid)

Removes an existing application.

Parameters
aUidThe UID of the application to remove.
Leave Codes
KErrPermissionDeniedIf the caller does not have the required capability.
KErrNotFoundIf there is no application matching the specified UID.
Capability
WriteDeviceDataThe caller requires the WriteDeviceData capability.