|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef STUB_WLANQTUTILSCOMMON_H |
|
19 #define STUB_WLANQTUTILSCOMMON_H |
|
20 /* |
|
21 #ifdef BUILD_WLAN_QT_UTILS_STUBS |
|
22 #define WLANQTUTILITIESDLL_EXPORT Q_DECL_EXPORT |
|
23 #else |
|
24 #define WLANQTUTILITIESDLL_EXPORT Q_DECL_IMPORT |
|
25 #endif |
|
26 */ |
|
27 #ifdef BUILD_WLANQTUTILITIES_DLL |
|
28 #define WLANQTUTILITIESDLL_EXPORT Q_DECL_EXPORT |
|
29 #else |
|
30 #define WLANQTUTILITIESDLL_EXPORT Q_DECL_IMPORT |
|
31 #endif |
|
32 // Maximum length of WLAN SSID (limit also for number of characters for user input) |
|
33 static const int KMaxSsidLen = 32; |
|
34 // Maximum length of WEP key |
|
35 static const int KMaxWEPKeyLen = 64; |
|
36 // Maximum length of WPA key |
|
37 static const int KMaxWPAKeyLen = 256; |
|
38 |
|
39 #ifdef ICT_RESULT_ENUM |
|
40 enum WlanLoginIctsResultType { |
|
41 IctsPassed, // Icts is passed |
|
42 IctsHotspotPassed, // Icts and Hotspot authentication are passed |
|
43 IctsCanceled, // User has canceled operation |
|
44 IctsFailed |
|
45 }; // Icts or/and Hotspot authentication are failed |
|
46 #endif |
|
47 |
|
48 |
|
49 /** |
|
50 * Bearer type. |
|
51 */ |
|
52 enum WlanQtUtilsBearerType { |
|
53 WlanQtUtilsBearerTypeNone = 0, ///< None of the bearer types. |
|
54 WlanQtUtilsBearerTypeCellular , ///< Cellular (2G, 3G, 3.5G) bearer type. |
|
55 WlanQtUtilsBearerTypeWlan ///< WLAN bearer type. |
|
56 }; |
|
57 |
|
58 /** |
|
59 * Connection status. |
|
60 */ |
|
61 enum WlanQtUtilsConnectionStatus { |
|
62 WlanQtUtilsConnectionStatusNone = 0, ///< None of the connection statuses. |
|
63 WlanQtUtilsConnectionStatusConnecting, ///< Connecting. |
|
64 WlanQtUtilsConnectionStatusConnected, ///< Connected. |
|
65 WlanQtUtilsConnectionStatusDisconnected ///< Disconnected. |
|
66 }; |
|
67 |
|
68 /** |
|
69 * Signal strength category boundaries in dB (absolute value). |
|
70 * Smaller value means better signal. |
|
71 */ |
|
72 // TODO: WLAN signal level values valid are copied from 08wk41 Sniffer. OK? |
|
73 // (WINS emulator gives just 0 which is equal to "Absolute max"...) |
|
74 enum |
|
75 { |
|
76 WlanQtUtilsWlanSignalStrengthAbsoluteMax = 0, ///< Absolute maximum signal strength. |
|
77 WlanQtUtilsWlanSignalStrengthMax = 60, ///< Maximum signal strength. |
|
78 WlanQtUtilsWlanSignalStrengthGood = 74, ///< Good signal strength. |
|
79 WlanQtUtilsWlanSignalStrengthLow = 87, ///< signal strength. |
|
80 WlanQtUtilsWlanSignalStrengthMin = 100, ///< Minimum signal strength. |
|
81 WlanQtUtilsWlanSignalUnavailable = 9999, ///< Signal is unavailable. |
|
82 }; |
|
83 |
|
84 /** WLAN signal is unknown. */ |
|
85 const int WlanQtUtilsWlanSignalUnknown = 1000000; |
|
86 |
|
87 /** WLAN transmit power is unknown. */ |
|
88 const unsigned WlanQtUtilsWlanTransmitPowerUnknown = 0xFFFFFFFF; |
|
89 |
|
90 #endif // WLANQTUTILSCOMMON_H |