|
1 /* |
|
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Class definition for CTestAppConsole |
|
15 ** |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __TESTAPPCONSOLE_H |
|
21 #define __TESTAPPCONSOLE_H |
|
22 |
|
23 #include <e32cons.h> |
|
24 #include "mmccinterface.h" |
|
25 #include "mmccnetworksettings.h" |
|
26 #include "test_async_features.h" |
|
27 |
|
28 class CMccInterfaceStub; |
|
29 |
|
30 class CTestAppConsole : public CActive |
|
31 { |
|
32 public: |
|
33 static CTestAppConsole* NewLC(); |
|
34 virtual ~CTestAppConsole(); |
|
35 |
|
36 void StartTesting(); |
|
37 void DisplayMsg( const TDesC& aMsg ); |
|
38 |
|
39 private: |
|
40 |
|
41 CTestAppConsole( ); |
|
42 void ConstructL(); |
|
43 |
|
44 void RunL(); |
|
45 void DoCancel(); |
|
46 |
|
47 void ProcessMainInput(); |
|
48 |
|
49 // create console menus |
|
50 void DisplayConsoleMenuL( const TDesC& aInstructions ); |
|
51 TKeyCode GetStringFromConsole( TDes& aAddr ); |
|
52 |
|
53 void DoRead(); |
|
54 void ResetNetworkSettings(); |
|
55 void QueryNetworkSettings(); |
|
56 void QueryIPAddress(); |
|
57 |
|
58 |
|
59 // Test functions |
|
60 private: |
|
61 |
|
62 // Starting point functions for testing |
|
63 TInt RunPluginTests(); |
|
64 TInt RunInterfaceTests(); |
|
65 TInt RunAudioControlTests(); |
|
66 TInt RunDtmfTests(); |
|
67 TInt RunRtcpTests(); |
|
68 TInt RunAsyncFeatureTests(); |
|
69 |
|
70 TInt RunSecureTests(); |
|
71 |
|
72 // Test preamble function for creating the Mcc IF |
|
73 void MccInterfacePreambleL(); |
|
74 |
|
75 // Test postamble function for destroying the Mcc IF |
|
76 void MccInterfacePostamble(); |
|
77 |
|
78 private: |
|
79 |
|
80 CConsoleBase* iConsole; |
|
81 HBufC* iInstruct; |
|
82 CMccInterface* iMccInterface; |
|
83 CMccInterfaceStub* iMccInterfaceStub; |
|
84 TMccNetSettings iNetsettings; |
|
85 TInetAddr iRemoteAddr; |
|
86 CTestAsyncFeat* iFeatTest; |
|
87 }; |
|
88 |
|
89 |
|
90 |
|
91 #endif __TESTAPPCONSOLE_H |