|
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 __DEFOCUSING_EDWIN_H |
|
23 #define __DEFOCUSING_EDWIN_H |
|
24 |
|
25 |
|
26 #include "appfwk_test_AppUi.h" |
|
27 |
|
28 _LIT(KDefocusingEdwinStep, "DefocusingEdwin"); |
|
29 |
|
30 |
|
31 |
|
32 /************************************************************* |
|
33 ** |
|
34 ** CTestTimer |
|
35 ** |
|
36 *************************************************************/ |
|
37 |
|
38 class CTestTimer : private CTimer |
|
39 { |
|
40 public: |
|
41 static CTestTimer* NewL(TInt aDurationInSeconds); |
|
42 TBool iCompleted; |
|
43 private: |
|
44 CTestTimer(TInt aDurationInSeconds); |
|
45 void QueueAndInfoPrint(); |
|
46 // from CTimer |
|
47 virtual void RunL(); |
|
48 private: |
|
49 TInt iSecondsRemaining; |
|
50 }; |
|
51 |
|
52 |
|
53 /************************************************************* |
|
54 ** |
|
55 ** CDefocusingEdwinUi |
|
56 ** |
|
57 *************************************************************/ |
|
58 |
|
59 class CDefocusingEdwinUi : public CTestAppUi |
|
60 { |
|
61 public: |
|
62 CDefocusingEdwinUi(CTmsTestStep* aStep); |
|
63 ~CDefocusingEdwinUi(); |
|
64 void ConstructL(); |
|
65 void SendEventToWindowGroups(TWsEvent& aEvent); |
|
66 void HandleApplicationSpecificEventL(TInt aType, const TWsEvent& aEvent); |
|
67 protected: |
|
68 CEikEdwin* iTextEditor; |
|
69 CTestTimer* iTestTimer; |
|
70 TTime iTmStart; |
|
71 TInt iCurrentSecond; |
|
72 protected: |
|
73 virtual void RunTestStepL(TInt aStep); |
|
74 }; |
|
75 |
|
76 |
|
77 |
|
78 /************************************************************* |
|
79 ** |
|
80 ** CTestDefocusingEdwinStep |
|
81 ** |
|
82 *************************************************************/ |
|
83 |
|
84 class CTestDefocusingEdwinStep : public CTmsTestStep |
|
85 { |
|
86 public: |
|
87 CTestDefocusingEdwinStep(); |
|
88 ~CTestDefocusingEdwinStep(); |
|
89 //virtual TVerdict doTestStepPreambleL(); |
|
90 virtual TVerdict doTestStepL(); |
|
91 void ConstructAppL(CEikonEnv* aCoe); |
|
92 private: |
|
93 }; |
|
94 |
|
95 #endif |
|
96 |
|
97 |
|
98 |