1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * WLAN IAP (Internet Access Point, known network) class. |
16 */ |
16 */ |
17 |
17 |
18 #include <QString> |
18 // System includes |
|
19 |
|
20 // User includes |
|
21 |
19 #include "wlanqtutilsiap.h" |
22 #include "wlanqtutilsiap.h" |
20 |
23 |
21 WlanQtUtilsIap::WlanQtUtilsIap() : |
24 /*! |
22 id_(0), |
25 \class WlanQtUtilsIapPrivate |
23 netId_(0), |
26 \brief Private implementation of WlanQtUtilsIap. |
24 name_(""), |
27 |
25 bearerType_(WlanQtUtilsBearerTypeNone), |
28 This class is reserved for WlanQtUtilsIap private implementation. |
26 connectionStatus_(WlanQtUtilsConnectionStatusNone) |
29 |
|
30 NOTE: Even though there is currently no implementation, this is |
|
31 required for possible later additions to avoid binary compatibility |
|
32 break. |
|
33 */ |
|
34 |
|
35 class WlanQtUtilsIapPrivate |
27 { |
36 { |
|
37 friend class WlanQtUtilsIap; |
|
38 }; |
28 |
39 |
|
40 /*! |
|
41 \class WlanQtUtilsIap |
|
42 \brief WLAN Internet Access Point class. |
|
43 |
|
44 Contains the information related to known WLAN access points. |
|
45 */ |
|
46 |
|
47 // External function prototypes |
|
48 |
|
49 // Local constants |
|
50 |
|
51 // ======== LOCAL FUNCTIONS ======== |
|
52 |
|
53 // ======== MEMBER FUNCTIONS ======== |
|
54 |
|
55 /*! |
|
56 Constructor. |
|
57 */ |
|
58 |
|
59 WlanQtUtilsIap::WlanQtUtilsIap() : |
|
60 WlanQtUtilsAp(), |
|
61 d_ptr(new WlanQtUtilsIapPrivate()) |
|
62 { |
29 } |
63 } |
30 |
64 |
31 WlanQtUtilsIap::WlanQtUtilsIap( |
65 /*! |
32 int id, |
66 Destructor. |
33 int netId, |
67 */ |
34 QString name, |
|
35 WlanQtUtilsBearerType bearerType) : |
|
36 id_(id), netId_(netId), name_(name), bearerType_(bearerType), connectionStatus_(WlanQtUtilsConnectionStatusNone) |
|
37 { |
|
38 } |
|
39 |
68 |
40 WlanQtUtilsIap::~WlanQtUtilsIap() |
69 WlanQtUtilsIap::~WlanQtUtilsIap() |
41 { |
70 { |
42 } |
71 } |
43 |
|
44 int WlanQtUtilsIap::id() const |
|
45 { |
|
46 return id_; |
|
47 } |
|
48 |
|
49 int WlanQtUtilsIap::networkId() const |
|
50 { |
|
51 return netId_; |
|
52 } |
|
53 |
|
54 QString WlanQtUtilsIap::name() const |
|
55 { |
|
56 return name_; |
|
57 } |
|
58 |
|
59 WlanQtUtilsBearerType WlanQtUtilsIap::bearerType() const |
|
60 { |
|
61 return bearerType_; |
|
62 } |
|
63 |
|
64 WlanQtUtilsConnectionStatus WlanQtUtilsIap::connectionStatus() const |
|
65 { |
|
66 return connectionStatus_; |
|
67 } |
|
68 |
|
69 void WlanQtUtilsIap::setId(int id) |
|
70 { |
|
71 id_ = id; |
|
72 } |
|
73 |
|
74 void WlanQtUtilsIap::setNetworkId(int netId) |
|
75 { |
|
76 netId_ = netId; |
|
77 } |
|
78 |
|
79 void WlanQtUtilsIap::setName(QString name) |
|
80 { |
|
81 name_ = name; |
|
82 } |
|
83 |
|
84 void WlanQtUtilsIap::setBearerType(WlanQtUtilsBearerType bearerType) |
|
85 { |
|
86 bearerType_ = bearerType; |
|
87 } |
|
88 |
|
89 void WlanQtUtilsIap::setConnectionStatus(WlanQtUtilsConnectionStatus connectionStatus) |
|
90 { |
|
91 connectionStatus_ = connectionStatus; |
|
92 } |
|