equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 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: Network info observer |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef M_NETWORKOBSERVER_H |
|
19 #define M_NETWORKOBSERVER_H |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <NWHandlingEngine.h> |
|
23 |
|
24 /** |
|
25 * @ingroup group_xmluicontroller |
|
26 * |
|
27 * Network info observer. |
|
28 * |
|
29 * Client gets network state changes through this interface. |
|
30 * |
|
31 * @since S60 5.0 |
|
32 */ |
|
33 class MAiNetworkObserver |
|
34 { |
|
35 |
|
36 public: |
|
37 enum TNetworkState |
|
38 { |
|
39 ENone = 0, |
|
40 EHomeNetwork, |
|
41 ERoaming |
|
42 }; |
|
43 |
|
44 protected: |
|
45 |
|
46 /** |
|
47 * Virtual destructor. |
|
48 * Cannot be used to destruct the object. |
|
49 */ |
|
50 virtual ~MAiNetworkObserver() {}; |
|
51 |
|
52 public: |
|
53 |
|
54 /** |
|
55 * Called when network info changes. |
|
56 * |
|
57 * @since S60 5.0 |
|
58 * @param aNewState new network state |
|
59 */ |
|
60 virtual void HandleNetworkStateChange( TNetworkState aNewState ) = 0; |
|
61 |
|
62 }; |
|
63 |
|
64 #endif // M_AINETWORKINFOOBSERVER_H |
|