1 /* |
1 // |
2 * Copyright (c) 2008, 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 //============================================================================== |
3 * All rights reserved. |
3 // Name : WidgetUiNetworkListener.h |
4 * This component and the accompanying materials are made available |
4 // Part of : WidgetUI |
5 * under the terms of "Eclipse Public License v1.0" |
5 // Interface : |
6 * which accompanies this distribution, and is available |
6 // Description : |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // Version : %version: 9 % |
8 * |
8 // |
9 * Initial Contributors: |
9 // Copyright 2008, 2009 Nokia Corporation. |
10 * Nokia Corporation - initial contribution. |
10 // This material, including documentation and any related |
11 * |
11 // computer programs, is protected by copyright controlled by |
12 * Contributors: |
12 // Nokia Corporation. All rights are reserved. Copying, |
13 * |
13 // including reproducing, storing, adapting or translating, any |
14 * Description: |
14 // or all of this material requires the prior written consent of |
15 * |
15 // Nokia Corporation. This material also contains confidential |
16 */ |
16 // information which may not be disclosed to others without the |
17 |
17 // prior written consent of Nokia Corporation. |
|
18 //============================================================================== |
|
19 // |
18 |
20 |
19 #ifndef WIDGETUINETWORKLISTENER_H_ |
21 #ifndef WIDGETUINETWORKLISTENER_H_ |
20 #define WIDGETUINETWORKLISTENER_H_ |
22 #define WIDGETUINETWORKLISTENER_H_ |
21 |
23 |
22 // INCLUDES |
24 // INCLUDES |
82 |
84 |
83 /** |
85 /** |
84 * Closes connection |
86 * Closes connection |
85 */ |
87 */ |
86 void Close(); |
88 void Close(); |
87 |
89 |
88 /** |
90 /** |
89 * Check for existing active connections |
91 * Check for existing active connections |
90 * @return: ETrue if there is an active network connection, else EFalse |
92 * @return: ETrue if there is an active network connection, else EFalse |
91 */ |
93 */ |
92 TBool CheckActiveNetworkConnection(); |
94 TBool CheckActiveNetworkConnection(); |
93 |
95 |
94 private: // Data |
96 private: // Data |
95 |
97 |
96 // reference to WidgetUiWindowManager object |
98 // reference to WidgetUiWindowManager object |
97 CWidgetUiWindowManager& iWindowManager; |
99 CWidgetUiWindowManager& iWindowManager; |
98 |
100 |
99 // buffer to receive interface notification |
101 // buffer to receive interface notification |
100 TInterfaceNotificationBuf iNote; |
102 TInterfaceNotificationBuf iNote; |