diff -r 712b4ffd76bb -r 43351a4f2da3 inc/pacstore_inc/EapFastPacStore.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/inc/pacstore_inc/EapFastPacStore.h Thu Sep 16 13:07:04 2010 +0300 @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: EAP-FAST PAC-store IF + * + */ + +/* + * %version: 12 % + */ + +#ifndef _EAPFASTPACSTORE_H_ +#define _EAPFASTPACSTORE_H_ + +// INCLUDES +#include +#include + + +class CEapFastPacStore +: public CBase +{ + +public: + + /** + * Factory function that loads the CEapFastPacStore implementation DLL (plug-in). + */ + static CEapFastPacStore * NewL(); + +#if 0 + virtual void OpenPacStoreL() = 0; + + virtual void CreateDeviceSeedL() = 0; +#endif + + virtual TBool IsMasterKeyPresentL() = 0; + + virtual TBool IsMasterKeyAndPasswordMatchingL( + const TDesC8 & aPassword8) = 0; + + virtual TInt CreateAndSaveMasterKeyL( + const TDesC8 & aPassword8) = 0; + + virtual TInt ComparePacStorePasswordL( + TDes8 & aPassword8) = 0; + + virtual TBool IsPacStorePasswordPresentL() = 0; + + virtual TInt SetPacStorePasswordL( + const TDesC8 & aPassword8) = 0; + + virtual TInt DestroyPacStore() = 0; + +private: + + /// ECom uses this key to keep track of DLL usage. + TUid iDtor_ID_Key; + +}; + +#include "EapFastPacStore.inl" + + +#endif //_EAPFASTPACSTORE_H_