|
1 // Copyright (c) 2005-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 @internalComponent - Internal Symbian test code |
|
19 */ |
|
20 |
|
21 |
|
22 #if !defined(__TCONE0STEP_H__) |
|
23 #define __TCONE0STEP_H__ |
|
24 |
|
25 #include <test/testexecutestepbase.h> |
|
26 #include "TConeTestServer.h" |
|
27 #include "appfwk_test_AppUi.h" |
|
28 |
|
29 //! A CTestStep Derived Class.\n |
|
30 |
|
31 /** Incorporates the tests to create a sample application and |
|
32 handle the key events.\n */ |
|
33 |
|
34 class CTCone0Step : public CTmsTestStep |
|
35 { |
|
36 public: |
|
37 CTCone0Step(); |
|
38 ~CTCone0Step(); |
|
39 // virtual TVerdict doTestStepPreambleL(); |
|
40 // virtual TVerdict doTestStepPostambleL(); |
|
41 virtual TVerdict doTestStepL(); |
|
42 void ConstructAppL(CCoeEnv* aCoe); |
|
43 |
|
44 private: |
|
45 }; |
|
46 //! A CTestCoeAppUi derived Class.\n |
|
47 |
|
48 /** App Ui class for the TCone0Step.\n */ |
|
49 |
|
50 class CCone0TestAppUi : public CTestCoeAppUi |
|
51 { |
|
52 public: |
|
53 CCone0TestAppUi(CTmsTestStep* aStep); |
|
54 ~CCone0TestAppUi(); |
|
55 void ConstructL(); |
|
56 private: // from CCoeAppUi |
|
57 TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
58 void HandleForegroundEventL(TBool aForeground); |
|
59 private: // utility |
|
60 void Beep(TInt aFrequency); |
|
61 void RunTestStepL(TInt aStepNum); |
|
62 void TestStepKeyDownL(TKeyEvent aKeyEvent); |
|
63 void TestStepKeyUpL(TKeyEvent aKeyEvent); |
|
64 }; |
|
65 |
|
66 //! Cone0 Test Step Name |
|
67 _LIT(KTCone0Step,"TCone0"); |
|
68 |
|
69 #endif |
|
70 |
|
71 |