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