|
1 /* |
|
2 * Copyright (c) 2010 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 // Data types |
|
37 |
|
38 /*! |
|
39 Configuration IDs that can be read and set in this class. |
|
40 |
|
41 ConfID's available for scan results: |
|
42 - ConfIdSsid |
|
43 - ConfIdBssid |
|
44 - ConfIdSignalStrength |
|
45 - ConfIdConnectionMode |
|
46 - ConfIdSecurityMode |
|
47 - ConfIdWpaPskUse |
|
48 - ConfIdWpsSupported |
|
49 |
|
50 ConfID's for IAP creation and updates, these are |
|
51 mandatory for all security modes: |
|
52 - ConfIdSsid |
|
53 - ConfIdConnectionMode |
|
54 - ConfIdSecurityMode |
|
55 - ConfIdWepKey1 (Empty if not used) |
|
56 - ConfIdWepKey2 (Empty if not used) |
|
57 - ConfIdWepKey3 (Empty if not used) |
|
58 - ConfIdWepKey4 (Empty if not used) |
|
59 - ConfIdWepDefaultIndex |
|
60 - ConfIdWpaPskUse |
|
61 - ConfIdWpaPsk (Empty if not used) |
|
62 - ConfIdHidden |
|
63 - ConfIdWlanScanSSID |
|
64 */ |
|
65 enum ConfId { |
|
66 //! QString: WLAN Network Name (SSID) |
|
67 ConfIdSsid = 0, |
|
68 //! QByteArray: Basic Service Set Identifier |
|
69 ConfIdBssid = 1, |
|
70 //! int: signal strength in RSSI (dBm) |
|
71 ConfIdSignalStrength = 2, |
|
72 //! int: (CMManagerShim::WlanNetMode) |
|
73 ConfIdConnectionMode = 3, |
|
74 //! int: (CMManagerShim::WlanSecMode) |
|
75 ConfIdSecurityMode = 4, |
|
76 //! bool: true - WPA PSK, false - WPA EAP |
|
77 ConfIdWpaPskUse = 5, |
|
78 //! QString: Pre-Shared Key for WPA |
|
79 //! Length: 8-63 - Ascii key |
|
80 //! Length: 64 - Hex key |
|
81 ConfIdWpaPsk = 6, |
|
82 //! QString: WEP Key for index 1: |
|
83 //! HEX: |
|
84 //! - 64 bit: allowed key length = 10 |
|
85 //! - 128 bit: allowed key length = 26 |
|
86 //! |
|
87 //! ASCII: |
|
88 //! - 64 bit: allowed key length = 5 |
|
89 //! - 128 bit: allowed key length = 13 |
|
90 ConfIdWepKey1 = 7, |
|
91 //! QString: WEP Key for index 2 |
|
92 ConfIdWepKey2 = 8, |
|
93 //! QString: WEP Key for index 3 |
|
94 ConfIdWepKey3 = 9, |
|
95 //! QString: WEP Key for index 4 |
|
96 ConfIdWepKey4 = 10, |
|
97 //! int: (CMManagerShim::WlanWepKeyIndex): Default WEP Key index |
|
98 ConfIdWepDefaultIndex = 11, |
|
99 //! bool: Is WLAN hidden (CMManagerShim::CmHidden). |
|
100 ConfIdHidden = 12, |
|
101 //! bool: Does WLAN AP need explicit scanning (CMManagerShim::WlanScanSSID) |
|
102 ConfIdWlanScanSSID = 13, |
|
103 //! bool: true - Wifi Protected setup is supported, false - not |
|
104 ConfIdWpsSupported = 14 |
|
105 }; |
|
106 |
|
107 public: |
|
108 WlanQtUtilsAp(); |
|
109 WlanQtUtilsAp(const WlanQtUtilsAp &ref); |
|
110 ~WlanQtUtilsAp(); |
|
111 QVariant value(int identifier) const; |
|
112 void setValue(int identifier, QVariant value ); |
|
113 bool operator==(const WlanQtUtilsAp & rhs ) const; |
|
114 |
|
115 static int compare( |
|
116 const WlanQtUtilsAp *ap1, |
|
117 const WlanQtUtilsAp *ap2); |
|
118 |
|
119 private: |
|
120 WlanQtUtilsApPrivate *d_ptr; |
|
121 |
|
122 }; |
|
123 |
|
124 Q_DECLARE_METATYPE(WlanQtUtilsAp) |
|
125 |
|
126 #endif /* WLANQTUTILSWLANIAP_H */ |