0
|
1 |
/*
|
|
2 |
* Copyright (c) 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 the License "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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef _CMMPHONEBOOK_OPERATION_INIT_H
|
|
19 |
#define _CMMPHONEBOOK_OPERATION_INIT_H
|
|
20 |
|
|
21 |
// INCLUDES
|
|
22 |
#include <ctsy/pluginapi/cmmdatapackage.h>
|
|
23 |
#include <e32base.h>
|
|
24 |
#include "cmmphonebookstoreoperationbase.h"
|
|
25 |
#include "muiccoperationbase.h"
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
// CONSTANTS
|
|
30 |
// Nonea
|
|
31 |
|
|
32 |
// MACROS
|
|
33 |
// None
|
|
34 |
|
|
35 |
// DATA TYPES
|
|
36 |
// None
|
|
37 |
|
|
38 |
// EXTERNAL DATA STRUCTURES
|
|
39 |
// None
|
|
40 |
|
|
41 |
// FUNCTION PROTOTYPES
|
|
42 |
// None
|
|
43 |
|
|
44 |
// FORWARD DECLARATION
|
|
45 |
#ifdef INTERNAL_RD_USIM_PHONEBOOK_GAS_AND_AAS
|
|
46 |
class CAlphaString;
|
|
47 |
#endif // INTERNAL_RD_USIM_PHONEBOOK_GAS_AND_AAS
|
|
48 |
class CMmPhoneBookOperationInit3G_adn;
|
|
49 |
|
|
50 |
|
|
51 |
// CLASS DECLARATION
|
|
52 |
/**
|
|
53 |
* CMmPhoneBookOperationInit is used to create and send GSM-specific
|
|
54 |
* PBStore ISI messages to PhoNet via PhoNetSender relating to init.
|
|
55 |
*/
|
|
56 |
|
|
57 |
class CMmPhoneBookOperationInit : public CMmPhoneBookStoreOperationBase
|
|
58 |
{
|
|
59 |
public: // Constructors and destructor
|
|
60 |
|
|
61 |
|
|
62 |
/**
|
|
63 |
* Two-phased constructor.
|
|
64 |
* @param CMmPhoneBookStoreMessHandler* aMmPhoneBookStoreMessHandler:
|
|
65 |
* pointer to CMmPhoneBookStoreMessHandler class
|
|
66 |
* @param const CMmDataPackage* aDataPackage: data
|
|
67 |
* @return CMmPhoneBookOperationInit*: created object
|
|
68 |
*/
|
|
69 |
static CMmPhoneBookOperationInit* NewL(
|
|
70 |
CMmPhoneBookStoreMessHandler* aMmPhoneBookStoreMessHandler,
|
|
71 |
CMmUiccMessHandler* aUiccMessHandler,
|
|
72 |
const CMmDataPackage* aDataPackage);
|
|
73 |
|
|
74 |
/**
|
|
75 |
* Destructor.
|
|
76 |
*/
|
|
77 |
~CMmPhoneBookOperationInit();
|
|
78 |
|
|
79 |
|
|
80 |
/**
|
|
81 |
* Get next Available phonebook in SST table to initalize
|
|
82 |
* @param Tint aPbook
|
|
83 |
* @return TInt: Phonebook value.
|
|
84 |
*/
|
|
85 |
TUint8 GetNextAvailablePbIcc(TUint8 aPbook);
|
|
86 |
|
|
87 |
/**
|
|
88 |
* Get next Available phonebook in UST table to initalize
|
|
89 |
* @param Tint aPbook
|
|
90 |
* @return TInt: Phonebook value.
|
|
91 |
*/
|
|
92 |
TUint8 GetNextAvailablePbUicc(TUint8 aPbook);
|
|
93 |
|
|
94 |
/**
|
|
95 |
* Creates phonebook initialize request for UICC card Type
|
|
96 |
* @return TInt: KErrNone or error value.
|
|
97 |
*/
|
|
98 |
TInt UICCInitializeReq();
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Get the next phonebook init Phase
|
|
102 |
* @param current init phase
|
|
103 |
* @return None
|
|
104 |
*/
|
|
105 |
void GetNextPhoneBookInitPhase(TUint8 & aInitPhase);
|
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
|
111 |
protected:
|
|
112 |
|
|
113 |
/**
|
|
114 |
* By default Symbian OS constructor is private.
|
|
115 |
*/
|
|
116 |
CMmPhoneBookOperationInit();
|
|
117 |
|
|
118 |
/**
|
|
119 |
* Handle init response for phase 3
|
|
120 |
* @param const TDes8& aFileData: UICC Message
|
|
121 |
* @return TInt: KErrNone or error value.
|
|
122 |
*/
|
|
123 |
TInt HandlePBRespL(
|
|
124 |
const TDesC8& aFileData, TInt aStatus);
|
|
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
private:
|
|
130 |
|
|
131 |
|
|
132 |
/**
|
|
133 |
* Class attributes are created in ConstructL.
|
|
134 |
*/
|
|
135 |
void ConstructL( );
|
|
136 |
|
|
137 |
TInt UICCCreateReq( TInt aIpc, const CMmDataPackage* aDataPackage );
|
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
/**
|
|
142 |
* Creates phonebook initialize request
|
|
143 |
* @return TInt: KErrNone or error value.
|
|
144 |
*/
|
|
145 |
TInt CreateDataToFetchFile(TUiccReadLinearFixed &aParams,const TUint8 aServiceType, TUint8 aRecordNo);
|
|
146 |
|
|
147 |
|
|
148 |
|
|
149 |
// RECEIVE
|
|
150 |
|
|
151 |
|
|
152 |
/**
|
|
153 |
* Handles aFileData
|
|
154 |
* @param TInt aTraId
|
|
155 |
* @param TInt aStatus
|
|
156 |
* @param TDesC8& aFileData
|
|
157 |
* @return TInt: KErrNone or error value.
|
|
158 |
*/
|
|
159 |
TInt HandleUICCPbRespL(
|
|
160 |
TBool &aComplete,
|
|
161 |
TInt aStatus,
|
|
162 |
const TDesC8 &aFileData,
|
|
163 |
TInt aTransId);
|
|
164 |
|
|
165 |
|
|
166 |
|
|
167 |
/**
|
|
168 |
* Handle FileData of FDN File Response
|
|
169 |
* @param const TDes8& aFileData: UICC Message
|
|
170 |
* @return TInt: KErrNone or error value.
|
|
171 |
*/
|
|
172 |
TInt HandleFileResp(const TDesC8 &aFileData, TInt aStatus);
|
|
173 |
|
|
174 |
/**
|
|
175 |
* Handle FileData of FDN File Response
|
|
176 |
* @param const TDes8& aFileData: UICC Message
|
|
177 |
* @return TInt: KErrNone or error value.
|
|
178 |
*/
|
|
179 |
TInt HandleEXTFileResp(const TDesC8 &aFileData, TInt aStatus);
|
|
180 |
|
|
181 |
|
|
182 |
|
|
183 |
|
|
184 |
|
|
185 |
|
|
186 |
public: // Data
|
|
187 |
// None
|
|
188 |
|
|
189 |
|
|
190 |
|
|
191 |
protected: // Data
|
|
192 |
// Attribute to hold the information about storage
|
|
193 |
CStorageInfoData *iPBStoreInfoData;
|
|
194 |
|
|
195 |
// Keep track on current ini -phase
|
|
196 |
|
|
197 |
TUint8 iIniPhase;
|
|
198 |
// Keep track about Service type
|
|
199 |
TUint8 iServiceType;
|
|
200 |
// Storage info
|
|
201 |
TInt iNumOfPBRRecords;
|
|
202 |
// Indicates is internal init ongoing or not.
|
|
203 |
TBool iInternalInit;
|
|
204 |
// keep track for whihc file has extension file no
|
|
205 |
TBool iExtensionPresent;
|
|
206 |
|
|
207 |
// Check for ADN is Initilized or not
|
|
208 |
|
|
209 |
TBool iADNPbInitilized;
|
|
210 |
|
|
211 |
private: // Data
|
|
212 |
|
|
213 |
|
|
214 |
|
|
215 |
// Indicate the Card type
|
|
216 |
TUint8 iCardType;
|
|
217 |
|
|
218 |
};
|
|
219 |
|
|
220 |
#endif // _CMMPHONEBOOK_OPERATION_INIT_H
|
|
221 |
|
|
222 |
// End of File
|
|
223 |
|