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 * This is the header file for WlanQtUtilsWlanAp class. |
|
16 */ |
|
17 |
|
18 #ifndef STUB_WLANQTUTILSWLANAP_H |
|
19 #define STUB_WLANQTUTILSWLANAP_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QMetaType> |
|
23 #include <QVariant> |
|
24 #include "cmmanagerdefines_shim.h" |
|
25 |
|
26 class QString; |
|
27 class WlanQtUtilsApPrivate; |
|
28 |
|
29 /** |
|
30 * This class represents WLAN access point (AP). |
|
31 */ |
|
32 class WlanQtUtilsAp : public QObject |
|
33 { |
|
34 public: |
|
35 /*! |
|
36 * Scan Results: |
|
37 * - ConfIdSsid |
|
38 * - ConfIdBssid |
|
39 * - ConfIdSignalStrength |
|
40 * - ConfIdConnectionMode |
|
41 * - ConfIdSecurityMode |
|
42 * - ConfIdWpaPskUse |
|
43 * - ConfIdWpsSupported |
|
44 * |
|
45 * IAP creation and updates: |
|
46 * Mandatory for all security modes: |
|
47 * - ConfIdSsid |
|
48 * - ConfIdConnectionMode |
|
49 * - ConfIdSecurityMode |
|
50 * - ConfIdHidden |
|
51 * |
|
52 * Open: No extra configurations. |
|
53 * 802.1x: No extra configurations. |
|
54 * |
|
55 * WEP: |
|
56 * - ConfIdWepKey1 |
|
57 * - ConfIdWepKey2 |
|
58 * - ConfIdWepKey3 |
|
59 * - ConfIdWepKey4 |
|
60 * - ConfIdWepDefaultIndex |
|
61 * |
|
62 * WPA/WPA2: |
|
63 * - ConfIdWpaPskUse |
|
64 * - ConfIdWpaPsk |
|
65 * |
|
66 */ |
|
67 enum ConfId{ |
|
68 /// int: IAP ID, -1 for invalid IAP (WlanQtUtilsInvalidIapId) |
|
69 ConfIdIapId, |
|
70 /// QString: WLAN Network Name (SSID) |
|
71 ConfIdSsid, |
|
72 /// QString: Basic Service Set Identifier |
|
73 ConfIdBssid, |
|
74 /// int: signal strength in RSSI (dBm) |
|
75 ConfIdSignalStrength, |
|
76 /// int: (CMManagerShim::WlanNetMode) |
|
77 ConfIdConnectionMode, |
|
78 /// int: (CMManagerShim::WlanSecMode) |
|
79 ConfIdSecurityMode, |
|
80 /// bool: true - WPA PSK, false - WPA EAP |
|
81 ConfIdWpaPskUse, |
|
82 /// QString: Pre-Shared Key for WPA |
|
83 /// Length: 8-63 - Ascii key |
|
84 /// Length: 64 - Hex key |
|
85 ConfIdWpaPsk, |
|
86 /// QString: WEP Key for index 1: |
|
87 /// HEX: |
|
88 /// - 64 bit: allowed key length = 10 |
|
89 /// - 128 bit: allowed key length = 26 |
|
90 /// |
|
91 /// ASCII: |
|
92 /// - 64 bit: allowed key length = 5 |
|
93 /// - 128 bit: allowed key length = 13 |
|
94 ConfIdWepKey1, |
|
95 /// QString: WEP Key for index 2 |
|
96 ConfIdWepKey2, |
|
97 /// QString: WEP Key for index 3 |
|
98 ConfIdWepKey3, |
|
99 /// QString: WEP Key for index 4 |
|
100 ConfIdWepKey4, |
|
101 /// int: (CMManagerShim::WlanWepKeyIndex): Default WEP Key index |
|
102 ConfIdWepDefaultIndex, |
|
103 /// bool: Is WLAN Hidden: true - hidden, false - not hidden. |
|
104 ConfIdHidden, |
|
105 /// bool: true - Wifi Protected setup is supported, false - not |
|
106 ConfIdWpsSupported, |
|
107 }; |
|
108 |
|
109 public: |
|
110 WlanQtUtilsAp(); |
|
111 WlanQtUtilsAp(const WlanQtUtilsAp &ref); |
|
112 ~WlanQtUtilsAp(); |
|
113 QVariant value(int identifier) const; |
|
114 void setValue(int identifier, QVariant value ); |
|
115 bool operator==(const WlanQtUtilsAp & rhs ) const; |
|
116 |
|
117 static int compare( |
|
118 const WlanQtUtilsAp *ap1, |
|
119 const WlanQtUtilsAp *ap2); |
|
120 |
|
121 private: |
|
122 WlanQtUtilsApPrivate *d_ptr; |
|
123 |
|
124 }; |
|
125 |
|
126 Q_DECLARE_METATYPE(WlanQtUtilsAp) |
|
127 |
|
128 #endif /* WLANQTUTILSWLANIAP_H */ |
|