vpnengine/pkiservice/inc/certificaterequeststore.h
changeset 0 33413c0669b9
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 2007 - 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Class, which handles storing and accessing certificate requests.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_CERTIFICATEREQUESTSTORE_H
       
    22 #define C_CERTIFICATEREQUESTSTORE_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <f32file.h>
       
    26 
       
    27 #include "pkidefs.h"
       
    28 
       
    29 /**
       
    30  *  Class, which handles storing and accessing certificate requests.
       
    31  *
       
    32  *  @since S60 v3.2
       
    33  */
       
    34 class CCertificateRequestStore : public CBase
       
    35     {
       
    36 
       
    37 public:
       
    38 
       
    39     static CCertificateRequestStore* NewL();
       
    40     ~CCertificateRequestStore();
       
    41 
       
    42     TInt CertReqCountL();
       
    43     CArrayFixFlat<TCertificateRequestListEntry>* GetCertReqListLC();
       
    44     
       
    45     HBufC*  SaveCertRequestLC(const TDesC8& aCertReqData);
       
    46     HBufC8* ReadCertRequestLC(const TDesC& aCertReqObjectName);
       
    47     void DeleteCertRequestL(const TDesC& aCertReqObjectName);
       
    48     
       
    49 private:
       
    50 
       
    51     void ConstructL();
       
    52 
       
    53     TFileName* GetNewCertReqFileNameLC();
       
    54 
       
    55     RFs iFileSession;
       
    56     TFileName iPrivatePath;
       
    57     };
       
    58 
       
    59 
       
    60 #endif // C_CERTIFICATEREQUESTSTORE_H