Location:
certificateapps.h
Link against: certstore.lib
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
CBase
- Base class for all classes to be instantiated on the heap
CCertificateAppInfoManager
- This class is used to access a persistent store which contains the available applications on a device
Members
Defined in CCertificateAppInfoManager
:
AddL()
, ApplicationL()
, Applications()
, NewL()
, NewL()
, NewLC()
, NewLC()
, RemoveL()
, ~CCertificateAppInfoManager()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
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
static IMPORT_C CCertificateAppInfoManager *NewL();
Description
Creates a new instance of the app info manager.
Return value
static IMPORT_C CCertificateAppInfoManager *NewLC(RFs &aFs, TBool aOpenedForWrite);
Description
Creates a new instance of the app info manager.
Parameters
Return value
static IMPORT_C CCertificateAppInfoManager *NewL(RFs &aFs, TBool aOpenedForWrite);
Description
Creates a new instance of the app info manager.
Parameters
Return value
virtual IMPORT_C ~CCertificateAppInfoManager();
Description
Virtual destructor. Frees all resources owned by the object, prior to its destruction.
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.
|
|
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.
|
|
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.
|
|
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.
|
|