|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_IRNETWORKCONTROLLEROBSERVER_H |
|
20 #define M_IRNETWORKCONTROLLEROBSERVER_H |
|
21 |
|
22 #include <e32def.h> |
|
23 |
|
24 /** |
|
25 * Identifies the type of connection |
|
26 */ |
|
27 enum TIRConnectionType |
|
28 { |
|
29 EGprs, |
|
30 EWcdma, |
|
31 ECdma2000, |
|
32 EWiFi, |
|
33 EEdge |
|
34 }; |
|
35 |
|
36 /** |
|
37 * Indicates the various Network events |
|
38 */ |
|
39 enum TIRNetworkEvent |
|
40 { |
|
41 ENetworkConnectionConnecting, |
|
42 ENetworkConnectionEstablished, |
|
43 ENetworkConnectionDisconnected, |
|
44 EDisplayNetworkMessageNoConnectivity, |
|
45 EDisplayOfflineMode, |
|
46 EDisplayNoAccessPointsDefined, |
|
47 EAccessPointSelectionCancelled, |
|
48 EConnectingCancelled |
|
49 }; |
|
50 |
|
51 |
|
52 /** |
|
53 * Observers should derive from this class and pass a pointer of this |
|
54 * type when creating an instance of CIRNetworkController if they require |
|
55 * an observer |
|
56 */ |
|
57 class MIRNetworkController |
|
58 { |
|
59 public: |
|
60 |
|
61 /** |
|
62 * IRNetworkEventL( TIRNetworkEvent aEvent ) * @param aEvent Indicates the type of network event that occurred |
|
63 */ |
|
64 virtual void IRNetworkEventL( TIRNetworkEvent aEvent ) = 0; |
|
65 }; |
|
66 |
|
67 #endif // M_IRNETWORKCONTROLLEROBSERVER_H |