|
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 // Tests border drawing using border colour & style. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent - Internal Symbian test code |
|
21 */ |
|
22 |
|
23 #ifndef __T_FOCUSSTEP_H |
|
24 #define __T_FOCUSSTEP_H |
|
25 |
|
26 |
|
27 #include "appfwk_test_AppUi.h" |
|
28 |
|
29 _LIT(KTestFocusStep, "T_Focus"); |
|
30 |
|
31 |
|
32 |
|
33 //! A CTestBrdrColStep test class. |
|
34 /** |
|
35 Tests border drawing using border colour & style. |
|
36 */ |
|
37 class CTestFocusStep : public CTmsTestStep |
|
38 { |
|
39 public: |
|
40 CTestFocusStep(); |
|
41 ~CTestFocusStep(); |
|
42 //virtual TVerdict doTestStepPreambleL(); |
|
43 virtual TVerdict doTestStepL(); |
|
44 void ConstructAppL(CEikonEnv* aCoe); |
|
45 private: |
|
46 }; |
|
47 |
|
48 |
|
49 //! CSimpleControl. |
|
50 /** |
|
51 A simple control on which all tests are carried out. |
|
52 */ |
|
53 class CSimpleFocusControl : public CCoeControl |
|
54 { |
|
55 public: |
|
56 void ConstructL(); |
|
57 ~CSimpleFocusControl(); |
|
58 |
|
59 private: // framework |
|
60 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
61 |
|
62 }; |
|
63 |
|
64 //! CSimpleAppUi. |
|
65 /** |
|
66 UI class to CTestFocusStep test step class. |
|
67 */ |
|
68 class CSimpleFocusAppUi : public CTestCoeAppUi |
|
69 { |
|
70 public: |
|
71 CSimpleFocusAppUi(CTmsTestStep* aStep): |
|
72 CTestCoeAppUi(aStep) {} |
|
73 void ConstructL(); |
|
74 ~CSimpleFocusAppUi(); |
|
75 private: |
|
76 CSimpleFocusControl* iSimpleFocusControl; |
|
77 private: |
|
78 virtual void RunTestStepL(TInt aNextStep); |
|
79 }; |
|
80 |
|
81 |
|
82 #endif |
|
83 |
|
84 |