applayerprotocols/httptransportfw/Test/t_utils/t_detectkey.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2001-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 
       
    18 #include <e32base.h>
       
    19 
       
    20 //##ModelId=3C4C4C3E0193
       
    21 class MTestInteractionObserver
       
    22 	{
       
    23 public:
       
    24 	
       
    25 	enum TTestInteraction
       
    26 		{
       
    27 		EStopCurrentTest
       
    28 		};
       
    29 	
       
    30 	//##ModelId=3C4C4C3E019D
       
    31 	virtual void TestInteractionDetectedL(TTestInteraction aTestInteraction)= 0;
       
    32 	};
       
    33 
       
    34 
       
    35 //##ModelId=3C4C4C3E0073
       
    36 class CDetectKeyPress : public CActive
       
    37 	{
       
    38 public:
       
    39 	//##ModelId=3C4C4C3E00FF
       
    40 	static CDetectKeyPress* NewLC(CConsoleBase& aConsole, MTestInteractionObserver& aObserver);
       
    41 	//##ModelId=3C4C4C3E00FE
       
    42 	~CDetectKeyPress();
       
    43 	//##ModelId=3C4C4C3E00FD
       
    44 	void RequestKey();
       
    45 private:
       
    46 	//##ModelId=3C4C4C3E00F6
       
    47 	void DoCancel();
       
    48 	//##ModelId=3C4C4C3E00F5
       
    49 	void RunL();
       
    50 	//##ModelId=3C4C4C3E00EC
       
    51 	CDetectKeyPress(CConsoleBase& aConsole, MTestInteractionObserver& aObserver);
       
    52 private:
       
    53 	//##ModelId=3C4C4C3E00E9
       
    54 	CConsoleBase& iConsole;
       
    55 	//##ModelId=3C4C4C3E00D7
       
    56 	MTestInteractionObserver& iObserver;
       
    57 	};