|
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: Common constants for TestClient |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __TESTCLIENTCONSTANTS_H__ |
|
19 #define __TESTCLIENTCONSTANTS_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32std.h> |
|
23 #include <in_sock.h> |
|
24 |
|
25 // Default value for TestClient log file name |
|
26 _LIT( KTcLogFile, "TestClient.log"); |
|
27 // Settings file name. |
|
28 _LIT( KTcSettingsFile, "c:\\system\\data\\TestClient.ini" ); |
|
29 // Default TCP port number |
|
30 const TInt KTcDefaultPort( 5070 ); |
|
31 // Default IAP Id |
|
32 const TInt KTcDefaultIAPId( 1 ); |
|
33 |
|
34 const TInt KTcDefaultBaudrate = 115200; |
|
35 |
|
36 // Enumeration for label array indices |
|
37 enum TLabel |
|
38 { |
|
39 ETestCaseName, |
|
40 ETestCaseValue, |
|
41 ERequestName, |
|
42 ERequestValue, |
|
43 EStatusName, |
|
44 EStatusValue |
|
45 }; |
|
46 |
|
47 // Texts for "Name" labels |
|
48 _LIT( KTestCase, "Testcase:" ); |
|
49 _LIT( KRequest, "Request:" ); |
|
50 _LIT( KStatus, "Status:" ); |
|
51 _LIT( KNone, "<none>" ); |
|
52 |
|
53 // Bearer types |
|
54 enum TTcSettingsBearerType |
|
55 { |
|
56 EBearerBluetooth = 0, |
|
57 EBearerTCP, |
|
58 EBearerSerial |
|
59 }; |
|
60 |
|
61 // Constants for laying out labels on screen |
|
62 #ifdef __SERIES60_ |
|
63 const TInt KLabelTlX( 10 ); |
|
64 const TInt KLabelTlY( 10 ); |
|
65 const TInt KLabelBrX( 166 ); |
|
66 const TInt KLabelBrY( 25 ); |
|
67 const TInt KLabelSpacing( 20 ); |
|
68 #else |
|
69 const TInt KLabelTlX( 20 ); |
|
70 const TInt KLabelTlY( 20 ); |
|
71 const TInt KLabelBrX( 366 ); |
|
72 const TInt KLabelBrY( 50 ); |
|
73 const TInt KLabelSpacing( 30 ); |
|
74 #endif |
|
75 |
|
76 // Maximum length for a label value |
|
77 const TInt KMaxLabelSize( 64 ); |
|
78 |
|
79 // Baclight trigger once in 10 seconds |
|
80 const TInt KPeriod10Sec( 10000000 ); |
|
81 |
|
82 // Status texts for the navigation label |
|
83 _LIT8( KTcNotConnected, "Not connected" ); |
|
84 _LIT8( KTcInitializing, "Initializing" ); |
|
85 _LIT8( KTcListening, "Listening" ); |
|
86 _LIT8( KTcConnected, "Connected" ); |
|
87 _LIT8( KTcConnecting, "Connecting" ); |
|
88 |
|
89 // Watcher timeout, five minutes (quite long because in some test cases |
|
90 // freezing the tester thread might be conscious |
|
91 const TInt KWatcherTimeout( 300 ); |
|
92 |
|
93 #endif // __TESTCLIENTCONSTANTS_H__ |