|
1 // Copyright (c) 2007-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 the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalTechnology |
|
21 @released |
|
22 */ |
|
23 |
|
24 #ifndef __MSGNETTESTSTUB_H__ |
|
25 #define __MSGNETTESTSTUB_H__ |
|
26 |
|
27 #ifdef __MOBILITY_TEST_FRAMEWORK |
|
28 |
|
29 #include <e32std.h> |
|
30 #include <cs_mobility_apiext.h> |
|
31 #include "mmsgtestpropertywatcher.h" |
|
32 #include <msvstd.h> |
|
33 |
|
34 class CMsgTestPropertyWatcher; |
|
35 |
|
36 namespace MSGNETTESTSTUB |
|
37 { |
|
38 |
|
39 class CActiveCommsMobilityApiExt : public CBase, |
|
40 public MMobilityProtocolResp, |
|
41 public MMsgTestPropertyWatcher |
|
42 { |
|
43 public: |
|
44 |
|
45 //Stubbed interface: |
|
46 IMPORT_C static CActiveCommsMobilityApiExt* NewL(RCommsSubSession& aExtensionProvider,MMobilityProtocolResp& aProtocol); |
|
47 IMPORT_C ~CActiveCommsMobilityApiExt(); |
|
48 |
|
49 IMPORT_C void MigrateToPreferredCarrier(); |
|
50 IMPORT_C void IgnorePreferredCarrier(); |
|
51 IMPORT_C void NewCarrierAccepted(); |
|
52 IMPORT_C void NewCarrierRejected(); |
|
53 |
|
54 protected: |
|
55 |
|
56 //Internal methods: |
|
57 void ConstructL(); |
|
58 explicit CActiveCommsMobilityApiExt(RCommsSubSession& aExtensionProvider, MMobilityProtocolResp& aProtocol); |
|
59 |
|
60 public: |
|
61 |
|
62 // from MMobilityProtocolResp |
|
63 void PreferredCarrierAvailable(TAccessPointInfo aOldAp, TAccessPointInfo aNewAp, TBool aIsUpgrade, TBool aIsSeamless); |
|
64 void NewCarrierActive(TAccessPointInfo aNewAp, TBool aIsSeamless); |
|
65 void Error(TInt aError); |
|
66 |
|
67 // from MPropertyWatcher |
|
68 void HandleEventL(RProperty& aProperty, TUint aKey); |
|
69 |
|
70 private: |
|
71 |
|
72 RCommsSubSession& iCommsSubSession; |
|
73 MMobilityProtocolResp& iProtocol; |
|
74 |
|
75 //Pointer to the real thing |
|
76 ::CActiveCommsMobilityApiExt* iCommsMobilityApi; |
|
77 |
|
78 //CMsgTestPropertyWatcher for IPC |
|
79 CMsgTestPropertyWatcher* iPropertyWatcher; |
|
80 |
|
81 TMsvId iServiceId; |
|
82 }; |
|
83 |
|
84 } |
|
85 |
|
86 #ifndef LOCAL_INCLUDE |
|
87 #define CActiveCommsMobilityApiExt MSGNETTESTSTUB::CActiveCommsMobilityApiExt |
|
88 #endif // LOCAL_INCLUDE |
|
89 |
|
90 #endif //__MOBILITY_TEST_FRAMEWORK |
|
91 |
|
92 #endif //__MSGNETTESTSTUB_H__ |