fep/frontendprocessor/test/inc/TFEP1TESTTARGET.h
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     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  @test
       
    19  @internalComponent - Internal Symbian test code 
       
    20 */
       
    21 
       
    22 #ifndef		__TFEP1TESTTARGET_H
       
    23 #define		__TFEP1TESTTARGET_H
       
    24 
       
    25 #include <eikenv.h>
       
    26 #include <e32std.h>
       
    27 #include <e32base.h>
       
    28 #include <coemain.h>
       
    29 #include <bautils.h>
       
    30 #include <techview/eikdialg.h>
       
    31 #include "TFEP1COM.H"
       
    32 
       
    33 #include "appfwk_test_AppUi.h"
       
    34 
       
    35 _LIT(KFep1TestTargetStep, "Fep1TestTarget");
       
    36 
       
    37 
       
    38 
       
    39 /*************************************************************
       
    40  **  
       
    41  **  TTstResourceFileId - TCleanupItem derived class
       
    42  **  
       
    43  *************************************************************/
       
    44 /*
       
    45 	Encapsulates the clean up operations. The class unloads the resource file from the list maintained by CCoeEnv 
       
    46 */
       
    47 class TTstResourceFileId : public TCleanupItem
       
    48 	{
       
    49 public:
       
    50 	TTstResourceFileId(CCoeEnv& aConeEnvironment, TInt aResourceFileId);
       
    51 private:
       
    52 	static void UnloadResourceFile(TAny* aThis);
       
    53 private:
       
    54 	CCoeEnv& iConeEnvironment;
       
    55 	TInt iResourceFileId;
       
    56 	};
       
    57 
       
    58 
       
    59 /*************************************************************
       
    60  **  
       
    61  **  CTstTestTargetDialog - CEikDialog derived class
       
    62  **  
       
    63  *************************************************************/
       
    64 /*
       
    65 	The class to create the target dialog, specifying the FEP specific extensions supported by the controls.\n 
       
    66 */
       
    67 
       
    68 class CTstTestTargetDialog : public CEikDialog, private TCoeInputCapabilities::MCoeFepSpecificExtensions
       
    69 	{
       
    70 private:
       
    71 	// from CEikDialog
       
    72 	virtual void PreLayoutDynInitL();
       
    73 	virtual TBool OkToExitL(TInt aKeyCode);
       
    74 	// from TCoeInputCapabilities::MCoeFepSpecificExtensions
       
    75 	virtual TBool SupportsPhoneticAlphabet() const;
       
    76 	};
       
    77 
       
    78 
       
    79 
       
    80 /*************************************************************
       
    81  **  
       
    82  **  CFep1TestTargetUi
       
    83  **  
       
    84  *************************************************************/
       
    85 
       
    86 class CFep1TestTargetUi  : public CTestAppUi
       
    87 	{
       
    88 public:
       
    89 	CFep1TestTargetUi(CTmsTestStep* aStep);
       
    90 	~CFep1TestTargetUi();
       
    91 	void ConstructL();
       
    92 protected:
       
    93 	virtual void HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent);
       
    94 protected:
       
    95 	virtual void RunTestStepL(TInt aStep);
       
    96 private:
       
    97 	void SendEventToWindowGroups(TWsEvent&	aEvent);
       
    98 	void SendKey(TUint aCode, TUint aModifiers = 0,  TInt aRepeats = 0, TInt aScanCode = 0);
       
    99 	};
       
   100 
       
   101 
       
   102 /*************************************************************
       
   103  **  
       
   104  **  CTestFep1TargetStep
       
   105  **  
       
   106  *************************************************************/
       
   107 /**
       
   108 	Performs the FEP tests, with a Target Dialog application.
       
   109 */
       
   110 class CTestFep1TargetStep : public CTmsTestStep
       
   111 	{
       
   112 public:
       
   113 	CTestFep1TargetStep();
       
   114 	~CTestFep1TargetStep();
       
   115 	virtual TVerdict doTestStepL();
       
   116 
       
   117 	void ConstructAppL(CEikonEnv* aCoe);
       
   118 	};
       
   119 
       
   120 
       
   121 
       
   122 #endif
       
   123 
       
   124