|
1 // Copyright (c) 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 |
|
18 /** |
|
19 @file |
|
20 @internalComponent - Internal Symbian test code |
|
21 @test |
|
22 */ |
|
23 |
|
24 #ifndef __TCONEEVENTS_H__ |
|
25 #define __TCONEEVENTS_H__ |
|
26 |
|
27 #include <test/testexecutestepbase.h> |
|
28 #include "TConeTestServer.h" |
|
29 #include "COECNTRL.H" |
|
30 #include "appfwk_test_AppUi.h" |
|
31 |
|
32 _LIT(KTConeEvents,"TConeEvents"); |
|
33 _LIT(KTConeEvents2,"TConeEvents2"); |
|
34 |
|
35 |
|
36 /** |
|
37 A class to test the recieving of events from WSERV |
|
38 */ |
|
39 class CTConeEvents : public CTmsTestStep |
|
40 { |
|
41 public: |
|
42 CTConeEvents(TInt aMode); |
|
43 void ConstructL(CCoeEnv* aCoe); |
|
44 //Pure virtual function form CTestStep |
|
45 TVerdict doTestStepL(); |
|
46 private: |
|
47 TInt iMode; |
|
48 }; |
|
49 |
|
50 /** |
|
51 App Ui class for the TConeEvents |
|
52 */ |
|
53 class CConeEventsAppUi : public CTestCoeAppUi |
|
54 { |
|
55 public: |
|
56 CConeEventsAppUi(CTmsTestStep* aStep,CCoeEnv* aCoe); |
|
57 void ConstructL(); |
|
58 void ManyEvents(); |
|
59 void ManyRedrawsL(); |
|
60 //Virtual function from CCoeAppUi |
|
61 void HandleWsEventL(const TWsEvent& aEvent,CCoeControl* aDestination); |
|
62 protected: |
|
63 //Pure virtual function from MAutoTestApp |
|
64 void RunTestStepL(TInt aStepNum); |
|
65 private: |
|
66 CCoeEnv* iCoe; //The control enviroment |
|
67 TInt iEventCount; |
|
68 }; |
|
69 |
|
70 #endif //__TCONEEVENTS_H__ |