|
1 /* |
|
2 * Copyright (c) 2007 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: Implements notifications interface from Hotspot server in order |
|
15 * to receive wlan connection closed notification. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef HSBROWSERHSSRVNOTIFS_H |
|
22 #define HSBROWSERHSSRVNOTIFS_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <ictscommon.h> |
|
27 #include "hsssrvnotifications.h" |
|
28 #include <wlanmgmtcommon.h> |
|
29 #include <wlanmgmtinterface.h> |
|
30 |
|
31 // FORWARD DECLARATION |
|
32 class CHsBrowserContainer; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 /** |
|
36 * CHsBrowserHsSrvNotifs class. |
|
37 * Class implements notifications interface for Hotspot server in order |
|
38 * to receive wlan connection closed notification. |
|
39 */ |
|
40 class CHsBrowserHsSrvNotifs : public CBase, public MWlanMgmtNotifications |
|
41 { |
|
42 |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 * |
|
48 * @param aContainer Pointer to container of browser application |
|
49 */ |
|
50 static CHsBrowserHsSrvNotifs* NewL( CHsBrowserContainer* aContainer ); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CHsBrowserHsSrvNotifs(); |
|
56 |
|
57 public: // from MWlanMgmtNotifications |
|
58 |
|
59 /** |
|
60 * Connection state has changed . |
|
61 */ |
|
62 virtual void ConnectionStateChanged( TWlanConnectionMode aNewState ); |
|
63 |
|
64 /** |
|
65 * BSSID has changed (i.e. AP handover). |
|
66 */ |
|
67 virtual void BssidChanged( TWlanBssid& /* aNewBSSID */ ) {}; |
|
68 |
|
69 /** |
|
70 * Connection has been lost. |
|
71 */ |
|
72 virtual void BssLost() {}; |
|
73 |
|
74 /** |
|
75 * Connection has been regained. |
|
76 */ |
|
77 virtual void BssRegained() {}; |
|
78 |
|
79 /** |
|
80 * New networks have been detected during scan. |
|
81 */ |
|
82 virtual void NewNetworksDetected() {}; |
|
83 |
|
84 /** |
|
85 * One or more networks have been lost since the last scan. |
|
86 */ |
|
87 virtual void OldNetworksLost() {}; |
|
88 |
|
89 /** |
|
90 * The used transmit power has been changed. |
|
91 * @param aPower The transmit power in mW. |
|
92 */ |
|
93 virtual void TransmitPowerChanged( TUint /* aPower */ ) {}; |
|
94 |
|
95 /** |
|
96 * Received signal strength level has been changed. |
|
97 * @param aRssClass specifies the current class of the received signal |
|
98 * @param aRss RSS level in absolute dBm values. |
|
99 */ |
|
100 virtual void RssChanged(TWlanRssClass /* aRssClass */, TUint /* aRss */ ) {}; |
|
101 |
|
102 |
|
103 private: |
|
104 |
|
105 /** |
|
106 * C++ default constructor. |
|
107 * |
|
108 * @param aContainer Pointer to container of browser application. |
|
109 */ |
|
110 CHsBrowserHsSrvNotifs( CHsBrowserContainer* aContainer ); |
|
111 |
|
112 /** |
|
113 * By default Symbian 2nd phase constructor is private. |
|
114 */ |
|
115 void ConstructL(); |
|
116 |
|
117 private: |
|
118 |
|
119 /** |
|
120 * Container of hotspot browser application. |
|
121 */ |
|
122 CHsBrowserContainer* iContainer; |
|
123 }; |
|
124 |
|
125 #endif // HSBROWSERHSSRVNOTIFS_H |
|
126 |
|
127 // End of File |
|
128 |