|
1 /* |
|
2 * Copyright (c) 2002-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: Message handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CNWGSMMESSAGEHANDLER_H |
|
21 #define CNWGSMMESSAGEHANDLER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "NWHandlingEngine.h" |
|
25 #include "CNWMessageHandler.h" |
|
26 #include "CNWGsmSessionImplementation.h" |
|
27 #include "CNWGsmNetworkCellReselectionHandler.h" |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class MNWMessageObserver; |
|
32 class CNWGsmSessionImplementation; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * Handles GSM protocol specific network related messages. |
|
38 * |
|
39 * @lib networkhandling.dll |
|
40 * @since Series 60_2.8 |
|
41 */ |
|
42 class CNWGsmMessageHandler : public CNWMessageHandler |
|
43 { |
|
44 public: |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 */ |
|
49 static CNWGsmMessageHandler* NewL( |
|
50 CNWGsmSessionImplementation& aNetworkData, |
|
51 MNWMessageObserver& aMessageObserver, |
|
52 TNWInfo& aNWInfo ); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 IMPORT_C virtual ~CNWGsmMessageHandler(); |
|
58 |
|
59 public: // New functions |
|
60 |
|
61 /** |
|
62 * Reroutes messages to the client |
|
63 * @param aMessage is the message id |
|
64 */ |
|
65 void SendMessage( MNWMessageObserver::TNWMessages aMessage ); |
|
66 |
|
67 /** |
|
68 * C++ default constructor. |
|
69 */ |
|
70 CNWGsmMessageHandler( CNWGsmSessionImplementation& aNetworkData, |
|
71 MNWMessageObserver& aMessageObserver, |
|
72 TNWInfo& aNWInfo ); |
|
73 |
|
74 /** |
|
75 * Handle Subscribe ID change |
|
76 */ |
|
77 void HandleSubscriberIdChange(); |
|
78 |
|
79 /** |
|
80 * Update Operator name reading status |
|
81 */ |
|
82 void HandleUpdateReadingStatus( const TNWRead& aElementFile, |
|
83 TBool aReadStatus ); |
|
84 |
|
85 private: |
|
86 |
|
87 /** |
|
88 * By default Symbian 2nd phase constructor is private. |
|
89 */ |
|
90 void ConstructL(); |
|
91 |
|
92 |
|
93 |
|
94 private: // Data |
|
95 //Handles cell reselection message |
|
96 CNWGsmNetworkCellReselectionHandler* iCellReselectionHandler; |
|
97 }; |
|
98 |
|
99 #endif // CNWGsmMessageHandler_H |
|
100 |
|
101 // End of File |