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