20 #ifndef CWLANINDICATORPLUGINIMPLEMENTATION_H |
20 #ifndef CWLANINDICATORPLUGINIMPLEMENTATION_H |
21 #define CWLANINDICATORPLUGINIMPLEMENTATION_H |
21 #define CWLANINDICATORPLUGINIMPLEMENTATION_H |
22 |
22 |
23 // INCLUDES |
23 // INCLUDES |
24 #include <AknIndicatorPlugin.h> // CAknIndicatorPlugin |
24 #include <AknIndicatorPlugin.h> // CAknIndicatorPlugin |
25 #include <wlanmgmtcommon.h> |
|
26 #include <wlanmgmtclient.h> |
|
27 #include <rconnmon.h> |
25 #include <rconnmon.h> |
28 |
|
29 // CONSTANTS |
|
30 const TInt KWlanMaxAccessPointNameLength = 50; |
|
31 |
26 |
32 // FORWARD DECLARATIONS |
27 // FORWARD DECLARATIONS |
33 class CCoeEnv; |
28 class CCoeEnv; |
34 |
|
35 // CLASS DECLARATIONS |
|
36 struct TWliWlanInfo |
|
37 { |
|
38 // Network name (unknown: SSID, known: IAP name), TBuf8 |
|
39 TWlanSsid iSsid; |
|
40 |
|
41 //Internet Access Point Id. 0 if the IAP has not been defined. |
|
42 TUint32 iIapId; |
|
43 |
|
44 // The name of the WLAN IAP, TBuf16 |
|
45 TBuf<KWlanMaxAccessPointNameLength> iNetworkName; |
|
46 }; |
|
47 |
|
48 |
29 |
49 /** |
30 /** |
50 * WLAN Indicator Plug-in implementation |
31 * WLAN Indicator Plug-in implementation |
51 * |
32 * |
52 * @since 5.0 |
33 * @since 5.0 |
95 |
76 |
96 |
77 |
97 private: // new functions |
78 private: // new functions |
98 |
79 |
99 /** |
80 /** |
100 * Creates text for the cases |
81 * Creates text for the case "wlan networks available" |
101 * - "WLAN network found" |
82 * @return Descriptor for the "wlan available" case |
102 * - "WLAN networks found" |
|
103 * - "'myNetwork' found" |
|
104 * @return Descriptor for the current "wlan available" case |
|
105 */ |
83 */ |
106 HBufC* CreateWlanNetworksFoundTextL(); |
84 HBufC* CreateWlanNetworksFoundTextL(); |
107 |
85 |
108 /** |
86 /** |
109 * Creates text for the "connected" case (open or secure). |
87 * Creates text for the "connected" case (open or secure). |
110 * @return Descriptor containing the "'myNetwork' connected" text |
88 * @return Descriptor containing the "'myNetwork' connected" text |
111 */ |
89 */ |
112 HBufC* CreateWlanConnectedTextL(); |
90 HBufC* CreateWlanConnectedTextL(); |
113 |
91 |
114 /** |
|
115 * Finds the required info for the "networks available" case: |
|
116 * - name of the known network (null if all unknown) |
|
117 * - number of available networks |
|
118 * @param aAvailableCount Number of available networks |
|
119 */ |
|
120 HBufC* AvailableNetworksInfoL( TInt& aAvailableCount ); |
|
121 |
|
122 /** |
|
123 * Finds the network name based on the IAP id |
|
124 * @param Struct for storing the IAP information |
|
125 */ |
|
126 void GetWlanInfoFromIapL( TWliWlanInfo& aWlanInfo ); |
|
127 |
|
128 /** |
92 /** |
129 * Finds the WLAN connection name. |
93 * Finds the WLAN connection name. |
130 * @return Descriptor containing the name of the connected WLAN nw. |
94 * @return Descriptor containing the name of the connected WLAN nw. |
131 */ |
95 */ |
132 HBufC* ConnectionNameL(); |
96 HBufC* ConnectionNameL(); |