|
1 /* |
|
2 * Copyright (c) 2006 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: Declaration of WLAN data holder for WLAN plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef WLAN_DATA_H |
|
19 #define WLAN_DATA_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 |
|
24 |
|
25 /** |
|
26 * Possible values of SignalStrength of a network |
|
27 */ |
|
28 enum TSignalStrength |
|
29 { |
|
30 ESignalStrengthMax = 60, |
|
31 ESignalStrengthGood = 74, |
|
32 ESignalStrengthLow = 87, |
|
33 ESignalStrengthMin = 100 |
|
34 }; |
|
35 |
|
36 // FORWARD DECLARATION |
|
37 /* |
|
38 class CCDWlanServiceRecord; |
|
39 class CWEPSecuritySettings; |
|
40 class CWEPSecuritySettingsUi; |
|
41 class CWPASecuritySettings; |
|
42 class CWPASecuritySettingsUi; |
|
43 class RConeResourceLoader; |
|
44 class CConnectionUiUtilities; |
|
45 */ |
|
46 |
|
47 |
|
48 /** |
|
49 * WLAN Plugin data holder class |
|
50 * |
|
51 * ?more_complete_description |
|
52 * |
|
53 * @since S60 3.2 |
|
54 */ |
|
55 NONSHARABLE_CLASS( CCmPluginWlanData ) : public CBase |
|
56 { |
|
57 |
|
58 public: // Constructors and destructor |
|
59 |
|
60 /** |
|
61 * Two-phased constructor. Leaves on failure, places instance |
|
62 * on cleanup stack. |
|
63 * |
|
64 * @since S60 3.2 |
|
65 * @return The constructed CCmPluginWlanData. |
|
66 */ |
|
67 static CCmPluginWlanData* NewLC(); |
|
68 |
|
69 /** |
|
70 * Destructor |
|
71 * |
|
72 * @since S60 3.2 |
|
73 */ |
|
74 virtual ~CCmPluginWlanData(); |
|
75 |
|
76 protected: |
|
77 /** |
|
78 * Constructor |
|
79 * |
|
80 * @since S60 3.2 |
|
81 */ |
|
82 CCmPluginWlanData(); |
|
83 |
|
84 |
|
85 /** |
|
86 * Second-phase constructor. |
|
87 * |
|
88 * @since S60 3.2 |
|
89 */ |
|
90 void ConstructL(); |
|
91 |
|
92 |
|
93 |
|
94 public: // New functions |
|
95 |
|
96 /** |
|
97 * Gives back the name of network (SSID) |
|
98 * |
|
99 * @since S60 3.2 |
|
100 * @return the name of network |
|
101 */ |
|
102 // HBufC* GetNameLC() const; |
|
103 |
|
104 /** |
|
105 * Gives back current SignalStrength |
|
106 * |
|
107 * @since S60 3.2 |
|
108 * @return iSignalStrength |
|
109 */ |
|
110 // TSignalStrength GetSignalStrength() const; |
|
111 |
|
112 |
|
113 public: // Data |
|
114 |
|
115 /** |
|
116 * The name of network (from SSID) |
|
117 */ |
|
118 HBufC* iNetworkName; |
|
119 |
|
120 /** |
|
121 * Signale strength of network |
|
122 */ |
|
123 TSignalStrength iSignalStrength; |
|
124 |
|
125 }; |
|
126 |
|
127 #endif // WLAN_DATA_H |