telephonyserverplugins/simtsy/test/te_simeap/te_simeap.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18 */
       
    19 
       
    20 #ifndef _TE_SIMEAP_H_
       
    21 #define _TE_SIMEAP_H_
       
    22 
       
    23 #include "te_simeapteststepbase.h"
       
    24 #include <mmretrieve.h>
       
    25 
       
    26 class CTestSmartCardEap : public CSimEapTestStepBase
       
    27 	{
       
    28 public:
       
    29 	CTestSmartCardEap();
       
    30 	~CTestSmartCardEap() {};
       
    31 	virtual TVerdict doTestStepL();
       
    32 	};
       
    33 
       
    34 /**
       
    35 Active object definition for testing the two-phase retrieval of
       
    36 response packet from TSY to an authentication challenge request.
       
    37 */
       
    38 class CTestSimEapAuthenticateData : public CActive
       
    39 	{
       
    40 public:
       
    41 	static CTestSimEapAuthenticateData* NewLC(RMobileSmartCardEap& aPhone, TDesC8& aDes);
       
    42 	void Start();
       
    43 	TInt ValidateEapResponse(const TDesC8& aExpectedResponse);
       
    44 
       
    45 private:
       
    46 	~CTestSimEapAuthenticateData();
       
    47 	CTestSimEapAuthenticateData(RMobileSmartCardEap& aPhone, TDesC8& aDes);
       
    48 	void ConstructL(TDesC8& aDes);
       
    49 	void DoCancel();
       
    50 	void RunL();
       
    51 
       
    52 private:
       
    53 	RMobileSmartCardEap& iPhone;
       
    54 	CAsyncSmartCardEapAuthentication* iTwoPhaseRetrieve;
       
    55 	TDesC8& iDes;
       
    56 	/**
       
    57 	Descriptor to retrieved data, used in the ValidateEapResponse()
       
    58 	check.
       
    59 	*/
       
    60 	TDesC8* iAuthResp;
       
    61 	};
       
    62 
       
    63 
       
    64 class CTestInitEapWithoutClosing : public CSimEapTestStepBase
       
    65 	{
       
    66 public:
       
    67 	CTestInitEapWithoutClosing();
       
    68 	~CTestInitEapWithoutClosing() {};
       
    69 	virtual TVerdict doTestStepL();
       
    70 	};
       
    71 
       
    72 class CTestSmartCardAppAuthenticate : public CSimEapTestStepBase
       
    73 	{
       
    74 public:
       
    75 	CTestSmartCardAppAuthenticate();
       
    76 	~CTestSmartCardAppAuthenticate() {};
       
    77 	virtual TVerdict doTestStepL();
       
    78 	};
       
    79 
       
    80 class CTestGetSmartCardAppEapList : public CSimEapTestStepBase
       
    81 	{
       
    82 public:
       
    83 	CTestGetSmartCardAppEapList();
       
    84 	~CTestGetSmartCardAppEapList() {};
       
    85 	virtual TVerdict doTestStepL();
       
    86 	};
       
    87 
       
    88 class CTestSmartCardAppAuthenticate2 : public CSimEapTestStepBase
       
    89 	{
       
    90 public:
       
    91 	CTestSmartCardAppAuthenticate2();
       
    92 	~CTestSmartCardAppAuthenticate2() {};
       
    93 	virtual TVerdict doTestStepL();
       
    94 	};
       
    95 
       
    96 #endif // _TE_SIMEAP_H_