epoc32/include/mctcertapps.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
    14 * Description: 
    14 * Description: 
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 
       
    20 
       
    21 /**
    19 /**
    22  @file 
    20  @file 
    23  @internalAll
    21  @publishedAll
       
    22  @released
    24 */
    23 */
    25  
    24  
    26 #ifndef __MCTCERTAPPS_H__
    25 #ifndef __MCTCERTAPPS_H__
    27 #define __MCTCERTAPPS_H__
    26 #define __MCTCERTAPPS_H__
    28 
    27 
    29 #include <e32base.h>
    28 #include <e32base.h>
    30 #include <f32file.h>
    29 #include <f32file.h>
    31 #include <s32file.h>
    30 #include <s32file.h>
    32 #include <ct/mcttokeninterface.h>
    31 #include <ct/mcttokeninterface.h>
    33 
    32 
    34 /** The UID of certificate application token type */
    33 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    35 const TInt KTokenTypeCertApps = 0x101f7a37;
    34 #include <mctcertappinterface.h>
       
    35 #endif
    36 
    36 
    37 /** The UID of certificate application interface */
    37 
    38 const TInt KInterfaceCertApps = 0x101f7a38;
       
    39 
    38 
    40 /**
    39 /**
    41  * Information about a certificate application.
    40  * Information about a certificate application.
    42  *
    41  *
    43  * Certificate applications are used to represent classes of certificate use,
    42  * Certificate applications are used to represent classes of certificate use,
    48  * and validating certificate chains.
    47  * and validating certificate chains.
    49  *
    48  *
    50  * An application is identified by a UID.  A TCertificateAppInfo contains this
    49  * An application is identified by a UID.  A TCertificateAppInfo contains this
    51  * and the name of the application.
    50  * and the name of the application.
    52  * 
    51  * 
    53  * @publishedAll
       
    54  * @released
       
    55  */
    52  */
    56 class TCertificateAppInfo
    53 class TCertificateAppInfo
    57 	{
    54 	{
    58 public:
    55 public:
    59 	IMPORT_C TCertificateAppInfo(const TUid& aUid, const TName& aName);
    56 	IMPORT_C TCertificateAppInfo(const TUid& aUid, const TName& aName);
    67 private:
    64 private:
    68 	TUid iUid;                    
    65 	TUid iUid;                    
    69 	TName iName;
    66 	TName iName;
    70 	};
    67 	};
    71 
    68 
    72 /**
       
    73  * Interface for certificate applications manager token.
       
    74  */
       
    75 class MCTCertApps : public MCTTokenInterface
       
    76 	{
       
    77 public:
       
    78 	virtual void AddL(const TCertificateAppInfo& aClient) = 0;
       
    79 	virtual void RemoveL(const TUid& aUid) = 0;
       
    80 	virtual TInt ApplicationCountL() const = 0;
       
    81 	virtual void ApplicationsL(RArray<TCertificateAppInfo>& aAppArray) const = 0;
       
    82 	virtual void ApplicationL(const TUid& aUid, TCertificateAppInfo& aInfo) const = 0;
       
    83 	};
       
    84 
       
    85 
    69 
    86 #endif // __MCTCERTAPPS_H__
    70 #endif // __MCTCERTAPPS_H__