|
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 a source file for WlanQtUtilsWlanIap class. |
|
16 */ |
|
17 |
|
18 #include <QString> |
|
19 #include "wlanqtutilscommon.h" |
|
20 #include "wlanqtutilsiap.h" |
|
21 #include "wlanqtutilswlaniap.h" |
|
22 |
|
23 WlanQtUtilsWlanIap::WlanQtUtilsWlanIap() : WlanQtUtilsIap(), ssid_(""), signalStrength_(WlanQtUtilsWlanSignalUnavailable), securityMode_(WlanQtUtilsWlanSecModeOpen) |
|
24 { |
|
25 } |
|
26 |
|
27 WlanQtUtilsWlanIap::WlanQtUtilsWlanIap(int id, int netId, QString name, WlanQtUtilsBearerType bearerType, QString ssid, WlanQtUtilsWlanSecMode secMode) : |
|
28 WlanQtUtilsIap(id, netId, name, bearerType), ssid_(ssid), signalStrength_(WlanQtUtilsWlanSignalUnavailable), securityMode_(secMode) |
|
29 { |
|
30 } |
|
31 |
|
32 WlanQtUtilsWlanIap::~WlanQtUtilsWlanIap() |
|
33 { |
|
34 } |
|
35 |
|
36 /** Returns IAP's SSID */ |
|
37 QString WlanQtUtilsWlanIap::ssid() const |
|
38 { |
|
39 return ssid_; |
|
40 } |
|
41 |
|
42 /** Returns IAP's signal strength */ |
|
43 int WlanQtUtilsWlanIap::signalStrength() const |
|
44 { |
|
45 return signalStrength_; |
|
46 } |
|
47 |
|
48 /** Returns IAP's security mode */ |
|
49 WlanQtUtilsWlanSecMode WlanQtUtilsWlanIap::securityMode() const |
|
50 { |
|
51 return securityMode_; |
|
52 } |
|
53 |
|
54 /** Sets IAP's SSID */ |
|
55 void WlanQtUtilsWlanIap::setSsid(QString ssid) |
|
56 { |
|
57 ssid_ = ssid; |
|
58 } |
|
59 |
|
60 /** Sets IAP's signal strength */ |
|
61 void WlanQtUtilsWlanIap::setSignalStrength(int signalStrength) |
|
62 { |
|
63 signalStrength_ = signalStrength; |
|
64 } |
|
65 |
|
66 /** Sets IAP's security mode */ |
|
67 void WlanQtUtilsWlanIap::setSecurityMode(WlanQtUtilsWlanSecMode securityMode) |
|
68 { |
|
69 securityMode_ = securityMode; |
|
70 } |