|
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 |
|
14 #ifndef CMMMOCKMESSHANDLER_H |
|
15 #define CMMMOCKMESSHANDLER_H |
|
16 |
|
17 // INCLUDES |
|
18 #include <e32base.h> |
|
19 #include <etelmm.h> |
|
20 #include <ctsy/pluginapi/cmmdatapackage.h> |
|
21 #include <ctsy/serviceapi/mmtsy_ipcdefs.h> |
|
22 #include "mmmmesshandlerbase.h" |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CMmMessageRouter; |
|
26 class CMmCustomStubExt; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Dummy functionality as Stub. |
|
32 * |
|
33 */ |
|
34 class CMmMockMessHandler : public CBase, public MMmMessHandlerBase |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 * @param aMessageRouter Pointer to message router. |
|
41 */ |
|
42 static CMmMockMessHandler* NewL( |
|
43 CMmMessageRouter* aMessageRouter ); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 virtual ~CMmMockMessHandler(); |
|
49 |
|
50 /** |
|
51 * ExtFuncL |
|
52 * |
|
53 * @param aIpc |
|
54 * @param aDataPackage |
|
55 * @return Error value |
|
56 */ |
|
57 virtual TInt ExtFuncL( TInt aIpc, |
|
58 const CMmDataPackage* aDataPackage ); |
|
59 |
|
60 /** |
|
61 * Returns Network info needed in boot |
|
62 * |
|
63 */ |
|
64 void GetHomeNetworkInfo(); |
|
65 |
|
66 protected: |
|
67 |
|
68 /** |
|
69 * C++ default constructor. |
|
70 */ |
|
71 CMmMockMessHandler(); |
|
72 |
|
73 /** |
|
74 * Initialises object attributes. |
|
75 * |
|
76 * @param aMessageManager |
|
77 */ |
|
78 void ConstructL( CMmMessageRouter* aMessageManager ); |
|
79 |
|
80 /** |
|
81 * Call back method for periodic timer |
|
82 * |
|
83 * @param aThis |
|
84 */ |
|
85 static TInt TimerCallback(TAny* aThis ); |
|
86 |
|
87 private: |
|
88 |
|
89 /** |
|
90 * GetHomeNetwork |
|
91 * |
|
92 */ |
|
93 void GetHomeNetwork(); |
|
94 |
|
95 private: // Data |
|
96 |
|
97 /* |
|
98 * Pointer to the Message Manager |
|
99 * Own. |
|
100 */ |
|
101 CMmMessageRouter* iMessageRouter; |
|
102 |
|
103 /* |
|
104 * Network info store |
|
105 */ |
|
106 RMobilePhone::TMobilePhoneNetworkInfoV1 iMyNetworkInfo; |
|
107 |
|
108 /* |
|
109 * Periodic timer asynhronous completion |
|
110 * Own. |
|
111 */ |
|
112 CPeriodic* iTimer; |
|
113 |
|
114 /* |
|
115 * Pointer to the Custom stub extension |
|
116 * Own. |
|
117 */ |
|
118 CMmCustomStubExt* iMmCustomStubExt; |
|
119 |
|
120 }; |
|
121 |
|
122 #endif // CMMMOCKMESSHANDLER_H |
|
123 |
|
124 // End of File |