1 /* |
|
2 * Copyright (c) 2006-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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MIRNETWORKCONTROLLEROBSERVER_H |
|
20 #define MIRNETWORKCONTROLLEROBSERVER_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 * Observers should derive from this class and pass a pointer of this |
|
53 * type when creating an instance of CIRNetworkController if they require |
|
54 * an observer |
|
55 */ |
|
56 class MIRNetworkController |
|
57 { |
|
58 public: |
|
59 |
|
60 /** |
|
61 * IRNetworkEventL(TIRNetworkEvent aEvent) * @param aEvent Indicates the type of network event that occurred |
|
62 */ |
|
63 virtual void IRNetworkEventL(TIRNetworkEvent aEvent) = 0; |
|
64 |
|
65 }; |
|
66 |
|
67 #endif // MIRNETWORKCONTROLLEROBSERVER_H |
|
68 |
|
69 |
|