|
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 // INCLUDE FILES |
|
22 #include <apgtask.h> |
|
23 #include <eikenv.h> |
|
24 |
|
25 #include "hsbrowserhssrvnotifs.h" |
|
26 #include "hsbrowsercontainer.h" |
|
27 #include "am_debug.h" |
|
28 |
|
29 // ================= MEMBER FUNCTIONS ======================= |
|
30 |
|
31 // --------------------------------------------------------- |
|
32 // CHsBrowserHsSrvNotifs::NewL |
|
33 // --------------------------------------------------------- |
|
34 // |
|
35 CHsBrowserHsSrvNotifs* CHsBrowserHsSrvNotifs::NewL( |
|
36 CHsBrowserContainer* aContainer ) |
|
37 { |
|
38 DEBUG( "CHsBrowserHsSrvNotifs::CHsBrowserHsSrvNotifs::NewL()()" ); |
|
39 CHsBrowserHsSrvNotifs* self = new(ELeave) CHsBrowserHsSrvNotifs( aContainer ); |
|
40 CleanupStack::PushL(self); |
|
41 self->ConstructL(); |
|
42 CleanupStack::Pop( self ); |
|
43 return self; |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // CHsBrowserHsSrvNotifs::CHsBrowserHsSrvNotifs |
|
48 // --------------------------------------------------------- |
|
49 // |
|
50 CHsBrowserHsSrvNotifs::~CHsBrowserHsSrvNotifs() |
|
51 { |
|
52 DEBUG( "CHsBrowserHsSrvNotifs::~CHsBrowserHsSrvNotifs()" ); |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // CHsBrowserHsSrvNotifs::ConnectionStateChanged |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 |
|
60 void CHsBrowserHsSrvNotifs::ConnectionStateChanged( TWlanConnectionMode aNewState ) |
|
61 { |
|
62 DEBUG1( "CHsBrowserHsSrvNotifs::ConnectionStateChanged() aNewState=%d", aNewState ); |
|
63 if ( aNewState == EWlanConnectionModeNotConnected ) |
|
64 { |
|
65 iContainer->ProcessWlanConnModeNotConnected(); |
|
66 } |
|
67 } |
|
68 |
|
69 // --------------------------------------------------------- |
|
70 // CHsBrowserHsSrvNotifs::CHsBrowserHsSrvNotifs |
|
71 // --------------------------------------------------------- |
|
72 // |
|
73 CHsBrowserHsSrvNotifs::CHsBrowserHsSrvNotifs( |
|
74 CHsBrowserContainer* aContainer ) : iContainer( aContainer ) |
|
75 { |
|
76 DEBUG( "CHsBrowserHsSrvNotifs::CHsBrowserHsSrvNotifs()" ); |
|
77 } |
|
78 |
|
79 // --------------------------------------------------------- |
|
80 // CHsBrowserHsSrvNotifs::ConstructL |
|
81 // --------------------------------------------------------- |
|
82 // |
|
83 void CHsBrowserHsSrvNotifs::ConstructL() |
|
84 { |
|
85 DEBUG( "CHsBrowserHsSrvNotifs::ConstructL()" ); |
|
86 } |
|
87 |
|
88 // End of File |