44
|
1 |
// Copyright (c) 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 |
// Description:
|
|
14 |
// CLtsySimHandler
|
|
15 |
|
|
16 |
#ifndef __CLTSYDISPATCHSIMHANDLER_H_
|
|
17 |
#define __CLTSYDISPATCHSIMHANDLER_H_
|
|
18 |
|
|
19 |
// INCLUDES
|
|
20 |
#include <e32std.h>
|
|
21 |
#include <e32base.h>
|
|
22 |
|
|
23 |
#include <ctsy/ltsy/mltsydispatchinterface.h>
|
|
24 |
#include <ctsy/ltsy/mltsydispatchsiminterface.h>
|
|
25 |
#include "misdispatchinterfacesupported.h"
|
|
26 |
#include "ltsymacros.h"
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
// FORWARD DECLARATIONS
|
|
31 |
class CCtsyDispatcherCallback;
|
|
32 |
|
|
33 |
// Can be removed in real LTSY implementation
|
|
34 |
MTEST_FORWARD_DECLARE_MOCKLTSYENGINE
|
|
35 |
|
|
36 |
// CLASS DECLARATION
|
|
37 |
|
|
38 |
/**
|
|
39 |
* Implements interfaces from the CTSY Dispatcher. The CTSY Dispatcher uses these
|
|
40 |
* interfaces to make requests to the Licensee LTSY.
|
|
41 |
*/
|
|
42 |
class CLtsySimHandler : public CBase,
|
|
43 |
public MIsDispatchInterfaceSupported,
|
|
44 |
public MLtsyDispatchSimGetApnControlListServiceStatus,
|
|
45 |
public MLtsyDispatchSimDeleteApnName,
|
|
46 |
public MLtsyDispatchSimEnumerateApnEntries,
|
|
47 |
public MLtsyDispatchSimChangeSecurityCode,
|
|
48 |
public MLtsyDispatchSimSetFdnSetting,
|
|
49 |
public MLtsyDispatchSimGetCustomerServiceProfile,
|
|
50 |
public MLtsyDispatchSimGetSubscriberId,
|
|
51 |
public MLtsyDispatchSimAppendApnName,
|
|
52 |
public MLtsyDispatchSimGetActiveIccApplicationType,
|
|
53 |
public MLtsyDispatchSimSetIccMessageWaitingIndicators,
|
|
54 |
public MLtsyDispatchSimSetApnControlListServiceStatus,
|
|
55 |
public MLtsyDispatchSimGetApnName,
|
|
56 |
public MLtsyDispatchSimSimRefreshDone,
|
|
57 |
public MLtsyDispatchSimGetServiceTable,
|
|
58 |
public MLtsyDispatchSimGetIccMessageWaitingIndicators,
|
|
59 |
public MLtsyDispatchSimSimLockActivate,
|
|
60 |
public MLtsyDispatchSimSimLockDeActivate,
|
|
61 |
public MLtsyDispatchSimGetAnswerToReset,
|
|
62 |
public MLtsyDispatchSimGetSimCardReaderStatus,
|
|
63 |
public MLtsyDispatchSimGetSimAuthenticationEapSimData,
|
|
64 |
public MLtsyDispatchSimGetSimAuthenticationEapAkaData,
|
|
65 |
public MLtsyDispatchSimPowerSimOff,
|
|
66 |
public MLtsyDispatchSimPowerSimOn,
|
|
67 |
public MLtsyDispatchSimReadSimFile,
|
|
68 |
public MLtsyDispatchSimSendApduRequest,
|
|
69 |
public MLtsyDispatchSimSendApduRequestV2,
|
|
70 |
public MLtsyDispatchSimSimWarmReset,
|
|
71 |
public MLtsyDispatchSimSetSimMessageStatusRead
|
|
72 |
|
|
73 |
{
|
|
74 |
public:
|
|
75 |
|
|
76 |
virtual ~CLtsySimHandler();
|
|
77 |
static CLtsySimHandler* NewL(CCtsyDispatcherCallback& aCtsyDispatcherCallback);
|
|
78 |
static CLtsySimHandler* NewLC(CCtsyDispatcherCallback& aCtsyDispatcherCallback);
|
|
79 |
|
|
80 |
// From MIsDispatchInterfaceSupported
|
|
81 |
virtual TBool IsInterfaceSupported(TLtsyDispatchInterfaceApiId aDispatchApiId);
|
|
82 |
void IsCallbackIndicatorSupported(TLtsyDispatchIndIdGroup aIdGroup, TUint32& aIndIdBitMask);
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
// From MLtsyDispatchSimGetApnControlListServiceStatus
|
|
87 |
virtual TInt HandleGetApnControlListServiceStatusReqL();
|
|
88 |
|
|
89 |
// From MLtsyDispatchSimDeleteApnName
|
|
90 |
virtual TInt HandleDeleteApnNameReqL(TUint32 aIndex);
|
|
91 |
|
|
92 |
// From MLtsyDispatchSimEnumerateApnEntries
|
|
93 |
virtual TInt HandleEnumerateApnEntriesReqL();
|
|
94 |
|
|
95 |
// From MLtsyDispatchSimChangeSecurityCode
|
|
96 |
virtual TInt HandleChangeSecurityCodeReqL(RMobilePhone::TMobilePhoneSecurityCode aSecCode,
|
|
97 |
const RMobilePhone::TMobilePhonePasswordChangeV1& aPasswds);
|
|
98 |
|
|
99 |
// From MLtsyDispatchSimSetFdnSetting
|
|
100 |
virtual TInt HandleSetFdnSettingReqL(RMobilePhone::TMobilePhoneFdnSetting aFdnSetting);
|
|
101 |
|
|
102 |
// From MLtsyDispatchSimGetCustomerServiceProfile
|
|
103 |
virtual TInt HandleGetCustomerServiceProfileReqL();
|
|
104 |
|
|
105 |
// From MLtsyDispatchSimGetSubscriberId
|
|
106 |
virtual TInt HandleGetSubscriberIdReqL();
|
|
107 |
|
|
108 |
// From MLtsyDispatchSimAppendApnName
|
|
109 |
virtual TInt HandleAppendApnNameReqL(const RMobilePhone::TAPNEntryV3& aEntry);
|
|
110 |
|
|
111 |
// From MLtsyDispatchSimGetActiveIccApplicationType
|
|
112 |
virtual TInt HandleGetActiveIccApplicationTypeReqL();
|
|
113 |
|
|
114 |
// From MLtsyDispatchSimSetIccMessageWaitingIndicators
|
|
115 |
virtual TInt HandleSetIccMessageWaitingIndicatorsReqL(const RMobilePhone::TMobilePhoneMessageWaitingV1& aIndicators);
|
|
116 |
|
|
117 |
// From MLtsyDispatchSimSetApnControlListServiceStatus
|
|
118 |
virtual TInt HandleSetApnControlListServiceStatusReqL(RMobilePhone::TAPNControlListServiceStatus aStatus);
|
|
119 |
|
|
120 |
// From MLtsyDispatchSimGetApnName
|
|
121 |
virtual TInt HandleGetApnNameReqL(TUint32 aIndex);
|
|
122 |
|
|
123 |
// From MLtsyDispatchSimSimRefreshDone
|
|
124 |
virtual TInt HandleSimRefreshDoneReqL(TInt aError);
|
|
125 |
|
|
126 |
// From MLtsyDispatchPhoneGetServiceTable
|
|
127 |
virtual TInt HandleGetServiceTableReqL(RMobilePhone::TMobilePhoneServiceTable aServiceTable);
|
|
128 |
|
|
129 |
// From MLtsyDispatchSimGetIccMessageWaitingIndicators
|
|
130 |
virtual TInt HandleGetIccMessageWaitingIndicatorsReqL();
|
|
131 |
|
|
132 |
// From MLtsyDispatchSimSimLockActivate
|
|
133 |
virtual TInt HandleSimLockActivateReqL(const TDesC& aPassword, RMmCustomAPI::TLockNumber aLockNumber);
|
|
134 |
|
|
135 |
// From MLtsyDispatchSimSimLockDeActivate
|
|
136 |
virtual TInt HandleSimLockDeActivateReqL(const TDesC& aPassword, RMmCustomAPI::TLockNumber aLockNumber);
|
|
137 |
|
|
138 |
// From MLtsyDispatchSimGetAnswerToReset
|
|
139 |
virtual TInt HandleGetAnswerToResetReqL(const TDesC8& aAnswerToReset);
|
|
140 |
|
|
141 |
// From MLtsyDispatchSimGetSimCardReaderStatus
|
|
142 |
virtual TInt HandleGetSimCardReaderStatusReqL();
|
|
143 |
|
|
144 |
// From MLtsyDispatchSimGetSimAuthenticationEapSimData
|
|
145 |
virtual TInt HandleGetSimAuthenticationEapSimDataReqL(const TDesC8& aRandomParameters, TInt aRFStateInfo);
|
|
146 |
|
|
147 |
// From MLtsyDispatchSimGetSimAuthenticationEapAkaData
|
|
148 |
virtual TInt HandleGetSimAuthenticationEapAkaDataReqL(const TDesC8& aRandomParameters, const TDesC8& aAUTN, TInt aRFStateInfo);
|
|
149 |
|
|
150 |
// From MLtsyDispatchSimPowerSimOff
|
|
151 |
virtual TInt HandlePowerSimOffReqL();
|
|
152 |
|
|
153 |
// From MLtsyDispatchSimPowerSimOn
|
|
154 |
virtual TInt HandlePowerSimOnReqL();
|
|
155 |
|
|
156 |
// From MLtsyDispatchSimReadSimFile
|
|
157 |
virtual TInt HandleReadSimFileReqL(const TDesC8& aPath, TUint16 aOffset, TUint16 aSize);
|
|
158 |
|
|
159 |
// From MLtsyDispatchSimSendApduRequest
|
|
160 |
virtual TInt HandleSimSendApduRequestReqL(TUint8 aServiceType, TUint8 aCardReaderNumber, TUint8 aApplicationType, const TDesC8& aCommandData);
|
|
161 |
|
|
162 |
// From MLtsyDispatchSimSendApduRequestV2
|
|
163 |
virtual TInt HandleSimSendApduRequestV2ReqL(TUint8 aCardReaderId, const TDesC8& aCommandData);
|
|
164 |
|
|
165 |
// From MLtsyDispatchSimSimWarmReset
|
|
166 |
virtual TInt HandleSimWarmResetReqL();
|
|
167 |
|
|
168 |
// From MLtsyDispatchSimSetSimMessageStatusRead
|
|
169 |
virtual TInt HandleSetSimMessageStatusReadReqL(const TTime& aTimestamp, TInt aTimezoneDiff);
|
|
170 |
|
|
171 |
|
|
172 |
private:
|
|
173 |
|
|
174 |
CLtsySimHandler(CCtsyDispatcherCallback& aCtsyDispatcherCallback);
|
|
175 |
void ConstructL();
|
|
176 |
|
|
177 |
private:
|
|
178 |
|
|
179 |
// Not owned
|
|
180 |
|
|
181 |
/**
|
|
182 |
* Callback object in the CTSY Dispatcher.
|
|
183 |
*
|
|
184 |
* Used to complete a request back to the CTSY Dispatcher.
|
|
185 |
*/
|
|
186 |
CCtsyDispatcherCallback& iCtsyDispatcherCallback;
|
|
187 |
|
|
188 |
public:
|
|
189 |
|
|
190 |
|
|
191 |
}; // class CLtsySimHandler
|
|
192 |
|
|
193 |
#endif // __CLTSYDISPATCHSIMHANDLER_H_
|
|
194 |
|