inc/pacstore_inc/EapFastPacStore.h
changeset 49 43351a4f2da3
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
       
     1 /*
       
     2  * Copyright (c) 2010 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:  EAP-FAST PAC-store IF
       
    15  *
       
    16  */
       
    17 
       
    18 /*
       
    19  * %version: 12 %
       
    20  */
       
    21 
       
    22 #ifndef _EAPFASTPACSTORE_H_
       
    23 #define _EAPFASTPACSTORE_H_
       
    24 
       
    25 // INCLUDES
       
    26 #include <e32base.h>
       
    27 #include <ecom/ecom.h> 
       
    28 
       
    29 
       
    30 class CEapFastPacStore
       
    31 : public CBase
       
    32 {
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37     * Factory function that loads the CEapFastPacStore implementation DLL (plug-in).
       
    38     */
       
    39     static CEapFastPacStore * NewL();
       
    40 
       
    41 #if 0
       
    42     virtual void OpenPacStoreL() = 0;
       
    43     
       
    44     virtual void CreateDeviceSeedL() = 0;
       
    45 #endif
       
    46 
       
    47     virtual TBool IsMasterKeyPresentL() = 0;
       
    48 
       
    49     virtual TBool IsMasterKeyAndPasswordMatchingL(
       
    50       const TDesC8 & aPassword8) = 0;
       
    51 
       
    52     virtual TInt CreateAndSaveMasterKeyL(
       
    53       const TDesC8 & aPassword8) = 0;
       
    54 
       
    55     virtual TInt ComparePacStorePasswordL(
       
    56       TDes8 & aPassword8) = 0;
       
    57 
       
    58     virtual TBool IsPacStorePasswordPresentL() = 0;
       
    59 
       
    60     virtual TInt SetPacStorePasswordL(
       
    61       const TDesC8 & aPassword8) = 0;
       
    62 
       
    63     virtual TInt DestroyPacStore() = 0;
       
    64 
       
    65 private:
       
    66 
       
    67 	/// ECom uses this key to keep track of DLL usage.
       
    68 	TUid iDtor_ID_Key;
       
    69 
       
    70 };
       
    71 
       
    72 #include "EapFastPacStore.inl"
       
    73 
       
    74 
       
    75 #endif //_EAPFASTPACSTORE_H_