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 /** |
|
40 * Bearer type. |
|
41 */ |
|
42 enum WlanQtUtilsBearerType { |
|
43 WlanQtUtilsBearerTypeNone = 0, ///< None of the bearer types. |
|
44 WlanQtUtilsBearerTypeCellular , ///< Cellular (2G, 3G, 3.5G) bearer type. |
|
45 WlanQtUtilsBearerTypeWlan ///< WLAN bearer type. |
|
46 }; |
|
47 |
|
48 /** |
|
49 * Connection status. |
|
50 */ |
|
51 enum WlanQtUtilsConnectionStatus { |
|
52 WlanQtUtilsConnectionStatusNone = 0, ///< None of the connection statuses. |
|
53 WlanQtUtilsConnectionStatusConnecting, ///< Connecting. |
|
54 WlanQtUtilsConnectionStatusConnected, ///< Connected. |
|
55 WlanQtUtilsConnectionStatusDisconnected ///< Disconnected. |
|
56 }; |
|
57 |
|
58 /** |
|
59 * Signal strength category boundaries in dB (absolute value). |
|
60 * Smaller value means better signal. |
|
61 */ |
|
62 // TODO: WLAN signal level values valid are copied from 08wk41 Sniffer. OK? |
|
63 // (WINS emulator gives just 0 which is equal to "Absolute max"...) |
|
64 enum |
|
65 { |
|
66 WlanQtUtilsWlanSignalStrengthAbsoluteMax = 0, ///< Absolute maximum signal strength. |
|
67 WlanQtUtilsWlanSignalStrengthMax = 60, ///< Maximum signal strength. |
|
68 WlanQtUtilsWlanSignalStrengthGood = 74, ///< Good signal strength. |
|
69 WlanQtUtilsWlanSignalStrengthLow = 87, ///< signal strength. |
|
70 WlanQtUtilsWlanSignalStrengthMin = 100, ///< Minimum signal strength. |
|
71 WlanQtUtilsWlanSignalUnavailable = 9999, ///< Signal is unavailable. |
|
72 }; |
|
73 |
|
74 /** WLAN signal is unknown. */ |
|
75 const int WlanQtUtilsWlanSignalUnknown = 1000000; |
|
76 |
|
77 /** WLAN transmit power is unknown. */ |
|
78 const unsigned WlanQtUtilsWlanTransmitPowerUnknown = 0xFFFFFFFF; |
|
79 |
|
80 #endif // WLANQTUTILSCOMMON_H |
|