87 // --------------------------------------------------------------------------- |
87 // --------------------------------------------------------------------------- |
88 // |
88 // |
89 TPrimitiveInitInfo::TPrimitiveInitInfo() |
89 TPrimitiveInitInfo::TPrimitiveInitInfo() |
90 { |
90 { |
91 TFLOGSTRING("TSY: TPrimitiveInitInfo::TPrimitiveInitInfo"); |
91 TFLOGSTRING("TSY: TPrimitiveInitInfo::TPrimitiveInitInfo"); |
92 OstTrace0( TRACE_NORMAL, TPRIMITIVEINITINFO_TPRIMITIVEINITINFO, "TPrimitiveInitInfo::TPrimitiveInitInfo" ); |
92 OstTrace0( TRACE_NORMAL, TPRIMITIVEINITINFO_TPRIMITIVEINITINFO_TD, "TPrimitiveInitInfo::TPrimitiveInitInfo" ); |
93 |
93 |
94 |
94 |
95 iNoOfRecords = 0; // 2 byte long |
95 iNoOfRecords = 0; // 2 byte long |
96 iAlphaStringlength = 0; // 2 byte long |
96 iAlphaStringlength = 0; // 2 byte long |
97 iNumlength = 0; // 2 byte long |
97 iNumlength = 0; // 2 byte long |
121 if ( endOfAlphaString > 0 && endOfAlphaString < iAlphaStringlength ) |
121 if ( endOfAlphaString > 0 && endOfAlphaString < iAlphaStringlength ) |
122 { |
122 { |
123 nameLength = endOfAlphaString; |
123 nameLength = endOfAlphaString; |
124 } |
124 } |
125 TFLOGSTRING("TSY: TPrimitiveInitInfo::GetPBEntryFromUICCData. Saving name."); |
125 TFLOGSTRING("TSY: TPrimitiveInitInfo::GetPBEntryFromUICCData. Saving name."); |
126 OstTrace0( TRACE_NORMAL, TPRIMITIVEINITINFO_GETPBENTRYFROMUICCDATA, "TPrimitiveInitInfo::GetPBEntryFromUICCData. Saving Name" ); |
126 OstTrace0( TRACE_NORMAL, TPRIMITIVEINITINFO_GETPBENTRYFROMUICCDATA_TD, "TPrimitiveInitInfo::GetPBEntryFromUICCData. Saving Name" ); |
127 aName.Copy( aFileData.Mid( 0, nameLength ) ); |
127 aName.Copy( aFileData.Mid( 0, nameLength ) ); |
128 } |
128 } |
129 // No else. Alpha string length is 0 and it is not copied |
129 // No else. Alpha string length is 0 and it is not copied |
130 |
130 |
131 numLength = aFileData[iAlphaStringlength]; |
131 numLength = aFileData[iAlphaStringlength]; |
138 // no else |
138 // no else |
139 // Save number |
139 // Save number |
140 if ( KMinLength < numLength ) |
140 if ( KMinLength < numLength ) |
141 { |
141 { |
142 TFLOGSTRING("TSY: TPrimitiveInitInfo::GetPBEntryFromUICCData. Saving number."); |
142 TFLOGSTRING("TSY: TPrimitiveInitInfo::GetPBEntryFromUICCData. Saving number."); |
143 OstTrace0( TRACE_NORMAL, DUP1_TPRIMITIVEINITINFO_GETPBENTRYFROMUICCDATA, "TPrimitiveInitInfo::GetPBEntryFromUICCData. Save Number" ); |
143 OstTrace0( TRACE_NORMAL, DUP1_TPRIMITIVEINITINFO_GETPBENTRYFROMUICCDATA_TD, "TPrimitiveInitInfo::GetPBEntryFromUICCData. Save Number" ); |
144 |
144 |
145 // Store number in buffer4 |
145 // Store number in buffer4 |
146 // Start for number |
146 // Start for number |
147 TInt offset = iAlphaStringlength + 1; |
147 TInt offset = iAlphaStringlength + 1; |
148 aNumber.Append(aFileData.Mid(offset,numLength)); |
148 aNumber.Append(aFileData.Mid(offset,numLength)); |
157 // --------------------------------------------------------------------------- |
157 // --------------------------------------------------------------------------- |
158 // |
158 // |
159 CMmPhoneBookStoreMessHandler::CMmPhoneBookStoreMessHandler() |
159 CMmPhoneBookStoreMessHandler::CMmPhoneBookStoreMessHandler() |
160 { |
160 { |
161 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::CMmPhoneBookStoreMessHandler."); |
161 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::CMmPhoneBookStoreMessHandler."); |
162 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_CMMPHONEBOOKSTOREMESSHANDLER, "CMmPhoneBookStoreMessHandler::CMmPhoneBookStoreMessHandler" ); |
162 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_CMMPHONEBOOKSTOREMESSHANDLER_TD, "CMmPhoneBookStoreMessHandler::CMmPhoneBookStoreMessHandler" ); |
163 } |
163 } |
164 |
164 |
165 // --------------------------------------------------------------------------- |
165 // --------------------------------------------------------------------------- |
166 // CMmPhoneBookStoreMessHandler::~CMmPhoneBookStoreMessHandler |
166 // CMmPhoneBookStoreMessHandler::~CMmPhoneBookStoreMessHandler |
167 // C++ destructor. |
167 // C++ destructor. |
168 // --------------------------------------------------------------------------- |
168 // --------------------------------------------------------------------------- |
169 // |
169 // |
170 CMmPhoneBookStoreMessHandler::~CMmPhoneBookStoreMessHandler() |
170 CMmPhoneBookStoreMessHandler::~CMmPhoneBookStoreMessHandler() |
171 { |
171 { |
172 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::~CMmPhoneBookStoreMessHandler."); |
172 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::~CMmPhoneBookStoreMessHandler."); |
173 OstTrace0( TRACE_NORMAL, DUP1_CMMPHONEBOOKSTOREMESSHANDLER_CMMPHONEBOOKSTOREMESSHANDLER, "CMmPhoneBookStoreMessHandler::~CMmPhoneBookStoreMessHandler" ); |
173 OstTrace0( TRACE_NORMAL, DUP1_CMMPHONEBOOKSTOREMESSHANDLER_CMMPHONEBOOKSTOREMESSHANDLER_TD, "CMmPhoneBookStoreMessHandler::~CMmPhoneBookStoreMessHandler" ); |
174 |
174 |
175 // Delete all the entries |
175 // Delete all the entries |
176 for( TInt pbCount = 0; pbCount < iPBEntryList.Count(); pbCount++ ) |
176 for( TInt pbCount = 0; pbCount < iPBEntryList.Count(); pbCount++ ) |
177 { |
177 { |
178 for( TInt count = 0; count < iPBEntryList[pbCount].iEntryList.Count(); count++) |
178 for( TInt count = 0; count < iPBEntryList[pbCount].iEntryList.Count(); count++) |
194 CMmPhoneBookStoreMessHandler* CMmPhoneBookStoreMessHandler::NewL( |
194 CMmPhoneBookStoreMessHandler* CMmPhoneBookStoreMessHandler::NewL( |
195 CMmMessageRouter* aMessageRouter, // Pointer to message router |
195 CMmMessageRouter* aMessageRouter, // Pointer to message router |
196 CMmUiccMessHandler* aUiccMessHandler) //Pointer to the Uicc Message handler |
196 CMmUiccMessHandler* aUiccMessHandler) //Pointer to the Uicc Message handler |
197 { |
197 { |
198 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::NewL."); |
198 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::NewL."); |
199 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_NEWL, "CMmPhoneBookStoreMessHandler::NewL" ); |
199 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_NEWL_TD, "CMmPhoneBookStoreMessHandler::NewL" ); |
200 |
200 |
201 // Create PhoneBookStore messagehandler |
201 // Create PhoneBookStore messagehandler |
202 CMmPhoneBookStoreMessHandler* mmPhoneBookStoreMessHandler = |
202 CMmPhoneBookStoreMessHandler* mmPhoneBookStoreMessHandler = |
203 new( ELeave ) CMmPhoneBookStoreMessHandler(); |
203 new( ELeave ) CMmPhoneBookStoreMessHandler(); |
204 |
204 |
225 void CMmPhoneBookStoreMessHandler::ConstructL( |
225 void CMmPhoneBookStoreMessHandler::ConstructL( |
226 CMmPhoneBookStoreMessHandler* /*mmPhoneBookStoreMessHandler*/, |
226 CMmPhoneBookStoreMessHandler* /*mmPhoneBookStoreMessHandler*/, |
227 CMmUiccMessHandler* aUiccMessHandler) |
227 CMmUiccMessHandler* aUiccMessHandler) |
228 { |
228 { |
229 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ConstructL"); |
229 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ConstructL"); |
230 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_CONSTRUCTL, "CMmPhoneBookStoreMessHandler::ConstructL" ); |
230 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_CONSTRUCTL_TD, "CMmPhoneBookStoreMessHandler::ConstructL" ); |
231 |
231 |
232 iOperationlist = CMmPhoneBookStoreOperationList::NewL( this , aUiccMessHandler ); |
232 iOperationlist = CMmPhoneBookStoreOperationList::NewL( this , aUiccMessHandler ); |
233 iNumberOfFdnInfoResps = 0; |
233 iNumberOfFdnInfoResps = 0; |
234 } |
234 } |
235 |
235 |
241 TInt CMmPhoneBookStoreMessHandler::ExtFuncL( |
241 TInt CMmPhoneBookStoreMessHandler::ExtFuncL( |
242 TInt aIpc, |
242 TInt aIpc, |
243 const CMmDataPackage* aDataPackage ) |
243 const CMmDataPackage* aDataPackage ) |
244 { |
244 { |
245 TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - arrived. IPC: %d", aIpc); |
245 TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - arrived. IPC: %d", aIpc); |
246 OstTrace1( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL;aIpc=%d", aIpc ); |
246 OstTrace1( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL_TD, "CMmPhoneBookStoreMessHandler::ExtFuncL;aIpc=%d", aIpc ); |
247 |
247 |
248 TInt ret( KErrNone ); |
248 TInt ret( KErrNone ); |
249 CMmPhoneBookStoreOperationBase* operation( NULL ); |
249 CMmPhoneBookStoreOperationBase* operation( NULL ); |
250 |
250 |
251 |
251 |
281 ret = operation->UICCCreateReq(aIpc,aDataPackage, transId ); |
281 ret = operation->UICCCreateReq(aIpc,aDataPackage, transId ); |
282 |
282 |
283 if ( KErrNone != ret) |
283 if ( KErrNone != ret) |
284 { |
284 { |
285 TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL;CreateReq returns %d", ret); |
285 TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL;CreateReq returns %d", ret); |
286 OstTrace1( TRACE_NORMAL, DUP11_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL;CreateReq returns %d", ret ); |
286 OstTrace1( TRACE_NORMAL, DUP11_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL_TD, "CMmPhoneBookStoreMessHandler::ExtFuncL;CreateReq returns %d", ret ); |
287 |
287 |
288 iOperationlist->RemoveOperationFromList( transId ); |
288 iOperationlist->RemoveOperationFromList( transId ); |
289 } |
289 } |
290 } |
290 } |
291 else |
291 else |
292 { |
292 { |
293 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - Server Busy "); |
293 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - Server Busy "); |
294 OstTrace0( TRACE_NORMAL, DUP3_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL, "CMmPhoneBookStoreMessHandler::ExtFuncL - Server Busy " ); |
294 OstTrace0( TRACE_NORMAL, DUP3_CMMPHONEBOOKSTOREMESSHANDLER_EXTFUNCL_TD, "CMmPhoneBookStoreMessHandler::ExtFuncL - Server Busy " ); |
295 |
295 |
296 ret = KErrServerBusy; |
296 ret = KErrServerBusy; |
297 } |
297 } |
298 } |
298 } |
299 |
299 |
314 const TDesC8 &aFileData ) // received data in UICC Server Message |
314 const TDesC8 &aFileData ) // received data in UICC Server Message |
315 { |
315 { |
316 TInt ret(KErrNone); |
316 TInt ret(KErrNone); |
317 |
317 |
318 TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ProcessUiccMsg. transactId:%d", aTraId); |
318 TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ProcessUiccMsg. transactId:%d", aTraId); |
319 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_PROCESSUICCMSG, "CMmPhoneBookStoreMessHandler::ProcessUiccMsg" ); |
319 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_PROCESSUICCMSG_TD, "CMmPhoneBookStoreMessHandler::ProcessUiccMsg" ); |
320 |
320 |
321 if ( ETrIdReadMailboxIdentifier != aTraId ) |
321 if ( ETrIdReadMailboxIdentifier != aTraId ) |
322 { |
322 { |
323 // Check for operation with transaction id |
323 // Check for operation with transaction id |
324 CMmPhoneBookStoreOperationBase* operation; |
324 CMmPhoneBookStoreOperationBase* operation; |
326 if( operation ) |
326 if( operation ) |
327 { |
327 { |
328 if( operation->HandleUICCPbRespL( aStatus, aDetails, aFileData, aTraId )) |
328 if( operation->HandleUICCPbRespL( aStatus, aDetails, aFileData, aTraId )) |
329 { |
329 { |
330 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ProcessUiccMsg. Remove Operation from the list "); |
330 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ProcessUiccMsg. Remove Operation from the list "); |
331 OstTrace0( TRACE_NORMAL, DUP2_CMMPHONEBOOKSTOREMESSHANDLER_PROCESSUICCMSG, "CMmPhoneBookStoreMessHandler::ProcessUiccMsg. Remove operation from the list " ); |
331 OstTrace0( TRACE_NORMAL, DUP2_CMMPHONEBOOKSTOREMESSHANDLER_PROCESSUICCMSG_TD, "CMmPhoneBookStoreMessHandler::ProcessUiccMsg. Remove operation from the list " ); |
332 |
332 |
333 // remove operation From the list |
333 // remove operation From the list |
334 iOperationlist->RemoveOperationFromList( aTraId ); |
334 iOperationlist->RemoveOperationFromList( aTraId ); |
335 } // End of operation remove from thelist |
335 } // End of operation remove from thelist |
336 } |
336 } |
337 else |
337 else |
338 { |
338 { |
339 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ProcessUiccMsg. Operation not Found "); |
339 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ProcessUiccMsg. Operation not Found "); |
340 OstTrace0( TRACE_NORMAL, DUP1_CMMPHONEBOOKSTOREMESSHANDLER_PROCESSUICCMSG, "CMmPhoneBookStoreMessHandler::ProcessUiccMsg. Operation not found " ); |
340 OstTrace0( TRACE_NORMAL, DUP1_CMMPHONEBOOKSTOREMESSHANDLER_PROCESSUICCMSG_TD, "CMmPhoneBookStoreMessHandler::ProcessUiccMsg. Operation not found " ); |
341 } |
341 } |
342 } |
342 } |
343 else // Mailbox identifiers is special case |
343 else // Mailbox identifiers is special case |
344 { |
344 { |
345 HandleGetMailboxIdentifiers( aStatus, aFileData ); |
345 HandleGetMailboxIdentifiers( aStatus, aFileData ); |
358 const CMmDataPackage* aDataPackage, |
358 const CMmDataPackage* aDataPackage, |
359 TInt aIpc |
359 TInt aIpc |
360 ) |
360 ) |
361 { |
361 { |
362 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationList::CreateNewOperation"); |
362 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationList::CreateNewOperation"); |
363 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREOPERATIONLIST_CREATENEWOPERATION, "CMmPhoneBookStoreOperationList::CreateNewOperation" ); |
363 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREOPERATIONLIST_CREATENEWOPERATION_TD, "CMmPhoneBookStoreOperationList::CreateNewOperation" ); |
364 |
364 |
365 CMmPhoneBookStoreOperationBase* pointer( NULL ); |
365 CMmPhoneBookStoreOperationBase* pointer( NULL ); |
366 |
366 |
367 switch( aIpc ) |
367 switch( aIpc ) |
368 { |
368 { |
512 } |
512 } |
513 default: |
513 default: |
514 { |
514 { |
515 // Nothing to do here |
515 // Nothing to do here |
516 TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - Unknown IPC: %d", aIpc); |
516 TFLOGSTRING2("TSY: CMmPhoneBookStoreMessHandler::ExtFuncL - Unknown IPC: %d", aIpc); |
517 OstTrace1( TRACE_NORMAL, DUP2_CMMPHONEBOOKSTOREOPERATIONLIST_BUILDL, "CMmPhoneBookStoreOperationList::BuildL;Unknown aIpc=%d", aIpc ); |
517 OstTrace1( TRACE_NORMAL, DUP2_CMMPHONEBOOKSTOREOPERATIONLIST_BUILDL_TD, "CMmPhoneBookStoreOperationList::BuildL;Unknown aIpc=%d", aIpc ); |
518 break; |
518 break; |
519 } |
519 } |
520 } |
520 } |
521 |
521 |
522 //return pointer to right operation |
522 //return pointer to right operation |
540 const TInt aIndexToRead ) |
540 const TInt aIndexToRead ) |
541 { |
541 { |
542 // Save Name |
542 // Save Name |
543 |
543 |
544 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationBase::SeparatePhoneBookEntryFromIsiMsgL. Saving name in commonTSY Array."); |
544 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationBase::SeparatePhoneBookEntryFromIsiMsgL. Saving name in commonTSY Array."); |
545 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREOPERATIONBASE_STOREPHONEBOOKENTRY, "CMmPhoneBookStoreOperationBase::StorePhonebookEntry. Save name to commonTSY Array" ); |
545 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREOPERATIONBASE_STOREPHONEBOOKENTRY_TD, "CMmPhoneBookStoreOperationBase::StorePhonebookEntry. Save name to commonTSY Array" ); |
546 |
546 |
547 |
547 |
548 aEntry.iText = HBufC::NewL( aName.Length() ); |
548 aEntry.iText = HBufC::NewL( aName.Length() ); |
549 TPtr ptrToName = aEntry.iText->Des(); |
549 TPtr ptrToName = aEntry.iText->Des(); |
550 |
550 |
560 } |
560 } |
561 |
561 |
562 // Store Number |
562 // Store Number |
563 |
563 |
564 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationBase::SeparatePhoneBookEntryFromIsiMsgL. Saving number in commonTSY Array."); |
564 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationBase::SeparatePhoneBookEntryFromIsiMsgL. Saving number in commonTSY Array."); |
565 OstTrace0( TRACE_NORMAL, DUP1_CMMPHONEBOOKSTOREOPERATIONBASE_STOREPHONEBOOKENTRY, "CMmPhoneBookStoreOperationBase::StorePhonebookEntry. Save number to commonTSY Array" ); |
565 OstTrace0( TRACE_NORMAL, DUP1_CMMPHONEBOOKSTOREOPERATIONBASE_STOREPHONEBOOKENTRY_TD, "CMmPhoneBookStoreOperationBase::StorePhonebookEntry. Save number to commonTSY Array" ); |
566 |
566 |
567 TInt numLength = aNumber.Length(); |
567 TInt numLength = aNumber.Length(); |
568 if(KMinLength < numLength) |
568 if(KMinLength < numLength) |
569 { |
569 { |
570 // Check for last lower nibble if " F " then terminate it |
570 // Check for last lower nibble if " F " then terminate it |
604 TDes8& aAnr, |
604 TDes8& aAnr, |
605 CPhoneBookStoreEntry& aEntry, |
605 CPhoneBookStoreEntry& aEntry, |
606 const TUint16 aFileId ) |
606 const TUint16 aFileId ) |
607 { |
607 { |
608 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationBase::StoreAnrToPhonebookEntryL."); |
608 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationBase::StoreAnrToPhonebookEntryL."); |
609 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_STOREANRTOPHONEBOOKENTRYL, "CMmPhoneBookStoreMessHandler::StoreAnrToPhonebookEntryL" ); |
609 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_STOREANRTOPHONEBOOKENTRYL_TD, "CMmPhoneBookStoreMessHandler::StoreAnrToPhonebookEntryL" ); |
610 |
610 |
611 TInt anrLength( aAnr.Length() ); |
611 TInt anrLength( aAnr.Length() ); |
612 if ( KMaxAnrLength < anrLength ) |
612 if ( KMaxAnrLength < anrLength ) |
613 { |
613 { |
614 aAnr.SetLength( KMaxAnrLength ); |
614 aAnr.SetLength( KMaxAnrLength ); |
633 TDes8& aString, |
633 TDes8& aString, |
634 CPhoneBookStoreEntry& aEntry, |
634 CPhoneBookStoreEntry& aEntry, |
635 TUint8 aFileTypeTag ) |
635 TUint8 aFileTypeTag ) |
636 { |
636 { |
637 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationBase::StoreSneToPbEntry."); |
637 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationBase::StoreSneToPbEntry."); |
638 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_STORESNETOPBENTRY, "CMmPhoneBookStoreMessHandler::StoreSneToPbEntry" ); |
638 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_STORESNETOPBENTRY_TD, "CMmPhoneBookStoreMessHandler::StoreSneToPbEntry" ); |
639 |
639 |
640 if ( aString.Length() ) |
640 if ( aString.Length() ) |
641 { |
641 { |
642 TBuf16<KMaxSneLength> targetString; // Final SNE/EMAIL for cache |
642 TBuf16<KMaxSneLength> targetString; // Final SNE/EMAIL for cache |
643 TBuf8<KMaxSneLength> outputString; // Temporary for converting |
643 TBuf8<KMaxSneLength> outputString; // Temporary for converting |
675 TDes16 &aTarget, |
675 TDes16 &aTarget, |
676 const TUint16 aFileId |
676 const TUint16 aFileId |
677 ) |
677 ) |
678 { |
678 { |
679 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationBase::ConvertToUcs2FromBCD"); |
679 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationBase::ConvertToUcs2FromBCD"); |
680 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_CONVERTTOUCS2FROMBCD, "CMmPhoneBookStoreMessHandler::ConvertToUcs2FromBCD" ); |
680 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_CONVERTTOUCS2FROMBCD_TD, "CMmPhoneBookStoreMessHandler::ConvertToUcs2FromBCD" ); |
681 |
681 |
682 TInt maxLength(0); |
682 TInt maxLength(0); |
683 TUint8 data; |
683 TUint8 data; |
684 TBool plus_in_middle = EFalse; |
684 TBool plus_in_middle = EFalse; |
685 TBool first_occurance = ETrue; |
685 TBool first_occurance = ETrue; |
842 TDesC16 &aSource, |
842 TDesC16 &aSource, |
843 TDes8 &aTarget, |
843 TDes8 &aTarget, |
844 TUint16 aFileId ) |
844 TUint16 aFileId ) |
845 { |
845 { |
846 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationBase::ConvertToBCDFromUCS2"); |
846 TFLOGSTRING("TSY: CMmPhoneBookStoreOperationBase::ConvertToBCDFromUCS2"); |
847 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_CONVERTTOBCDFROMUCS2, "CMmPhoneBookStoreMessHandler::ConvertToBCDFromUCS2" ); |
847 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_CONVERTTOBCDFROMUCS2_TD, "CMmPhoneBookStoreMessHandler::ConvertToBCDFromUCS2" ); |
848 |
848 |
849 TInt ret ( KErrNone ); |
849 TInt ret ( KErrNone ); |
850 TInt count( 0 ); |
850 TInt count( 0 ); |
851 TUint8 plusCount( 0 ); |
851 TUint8 plusCount( 0 ); |
852 TBool internationalNumber ( EFalse ); |
852 TBool internationalNumber ( EFalse ); |
912 TInt CMmPhoneBookStoreMessHandler::GetBCDCodeforUCS( |
912 TInt CMmPhoneBookStoreMessHandler::GetBCDCodeforUCS( |
913 TUint16 aUCSCharacter, |
913 TUint16 aUCSCharacter, |
914 TUint16 aFileId ) |
914 TUint16 aFileId ) |
915 { |
915 { |
916 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::GetBCDCodeforUCS"); |
916 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::GetBCDCodeforUCS"); |
917 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GETBCDCODEFORUCS, "CMmPhoneBookStoreMessHandler::GetBCDCodeforUCS" ); |
917 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GETBCDCODEFORUCS_TD, "CMmPhoneBookStoreMessHandler::GetBCDCodeforUCS" ); |
918 TInt bcdNumber( -1 ); |
918 TInt bcdNumber( -1 ); |
919 |
919 |
920 if ( aUCSCharacter >= '0' && aUCSCharacter <='9') |
920 if ( aUCSCharacter >= '0' && aUCSCharacter <='9') |
921 bcdNumber = aUCSCharacter - '0'; |
921 bcdNumber = aUCSCharacter - '0'; |
922 else if (aUCSCharacter == 'w' && aFileId == PB_ADN_FID) |
922 else if (aUCSCharacter == 'w' && aFileId == PB_ADN_FID) |
935 // |
935 // |
936 |
936 |
937 void CMmPhoneBookStoreMessHandler::StoreEntryToPhoneBookList( TPBEntry* aStoreEntry, TUint8 aPBIndex ) |
937 void CMmPhoneBookStoreMessHandler::StoreEntryToPhoneBookList( TPBEntry* aStoreEntry, TUint8 aPBIndex ) |
938 { |
938 { |
939 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::StoreEntryToPhoenBookList"); |
939 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::StoreEntryToPhoenBookList"); |
940 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_STOREENTRYTOPHOENBOOKLIST, "CMmPhoneBookStoreMessHandler::StoreEntryToPhoenBookList" ); |
940 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_STOREENTRYTOPHOENBOOKLIST_TD, "CMmPhoneBookStoreMessHandler::StoreEntryToPhoenBookList" ); |
941 |
941 |
942 iPBEntryList[aPBIndex].iEntryList.Append( aStoreEntry ); |
942 iPBEntryList[aPBIndex].iEntryList.Append( aStoreEntry ); |
943 } |
943 } |
944 |
944 |
945 // --------------------------------------------------------------------------- |
945 // --------------------------------------------------------------------------- |
950 void CMmPhoneBookStoreMessHandler::ResetEntryInPhoneBookList( |
950 void CMmPhoneBookStoreMessHandler::ResetEntryInPhoneBookList( |
951 TUint8 aPbIndex, |
951 TUint8 aPbIndex, |
952 TInt aEntryIndex ) |
952 TInt aEntryIndex ) |
953 { |
953 { |
954 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ResetEntryInPhoneBookList"); |
954 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::ResetEntryInPhoneBookList"); |
955 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_RESETENTRYINPHONEBOOKLIST, "CMmPhoneBookStoreMessHandler::ResetEntryInPhoneBookList" ); |
955 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_RESETENTRYINPHONEBOOKLIST_TD, "CMmPhoneBookStoreMessHandler::ResetEntryInPhoneBookList" ); |
956 TInt numOfEntries( iPBEntryList[aPbIndex].iEntryList.Count() ); |
956 TInt numOfEntries( iPBEntryList[aPbIndex].iEntryList.Count() ); |
957 for( TInt i( 0 ); i < numOfEntries; i++) |
957 for( TInt i( 0 ); i < numOfEntries; i++) |
958 { |
958 { |
959 if ( aEntryIndex == iPBEntryList[aPbIndex].iEntryList[i]->iEntryIndex ) |
959 if ( aEntryIndex == iPBEntryList[aPbIndex].iEntryList[i]->iEntryIndex ) |
960 { |
960 { |
977 TUint8 aIndex, |
977 TUint8 aIndex, |
978 TUint8 aPBIndex, |
978 TUint8 aPBIndex, |
979 TPBEntry& aEntry ) |
979 TPBEntry& aEntry ) |
980 { |
980 { |
981 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::IndexCheckInPBList"); |
981 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::IndexCheckInPBList"); |
982 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_INDEXCHECKINPBLIST, "CMmPhoneBookStoreMessHandler::IndexCheckInPBList" ); |
982 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_INDEXCHECKINPBLIST_TD, "CMmPhoneBookStoreMessHandler::IndexCheckInPBList" ); |
983 |
983 |
984 TBool entryFound( EFalse ); |
984 TBool entryFound( EFalse ); |
985 |
985 |
986 for( TInt count = 0; count < iPBEntryList[aPBIndex].iEntryList.Count(); count++) |
986 for( TInt count = 0; count < iPBEntryList[aPBIndex].iEntryList.Count(); count++) |
987 { |
987 { |
1003 TInt CMmPhoneBookStoreMessHandler::GetIndexForPresentEntry( |
1003 TInt CMmPhoneBookStoreMessHandler::GetIndexForPresentEntry( |
1004 TUint8 aIndex, |
1004 TUint8 aIndex, |
1005 TUint8 aPBIndex ) |
1005 TUint8 aPBIndex ) |
1006 { |
1006 { |
1007 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::GetIndexForPresentEntry"); |
1007 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::GetIndexForPresentEntry"); |
1008 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GETINDEXFORPRESENTENTRY, "CMmPhoneBookStoreMessHandler::GetIndexForPresentEntry" ); |
1008 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GETINDEXFORPRESENTENTRY_TD, "CMmPhoneBookStoreMessHandler::GetIndexForPresentEntry" ); |
1009 |
1009 |
1010 TInt count( -1 ); |
1010 TInt count( -1 ); |
1011 for( ;( count+1 ) < iPBEntryList[aPBIndex].iEntryList.Count(); count++) |
1011 for( ;( count+1 ) < iPBEntryList[aPBIndex].iEntryList.Count(); count++) |
1012 { |
1012 { |
1013 if( aIndex == iPBEntryList[aPBIndex].iEntryList[count+1]->iEntryIndex ) |
1013 if( aIndex == iPBEntryList[aPBIndex].iEntryList[count+1]->iEntryIndex ) |
1025 // |
1025 // |
1026 |
1026 |
1027 TInt CMmPhoneBookStoreMessHandler::EmptyEntryCheckInPBList( TUint8 aPBIndex ) |
1027 TInt CMmPhoneBookStoreMessHandler::EmptyEntryCheckInPBList( TUint8 aPBIndex ) |
1028 { |
1028 { |
1029 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::EmptyEntryCheckInPBList"); |
1029 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::EmptyEntryCheckInPBList"); |
1030 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_EMPTYENTRYCHECKINPBLIST, "CMmPhoneBookStoreMessHandler::EmptyEntryCheckInPBList" ); |
1030 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_EMPTYENTRYCHECKINPBLIST_TD, "CMmPhoneBookStoreMessHandler::EmptyEntryCheckInPBList" ); |
1031 |
1031 |
1032 TInt entryNumber( 0 ); |
1032 TInt entryNumber( 0 ); |
1033 |
1033 |
1034 for( TInt count = 0; count < iPBEntryList[aPBIndex].iEntryList.Count(); count++) |
1034 for( TInt count = 0; count < iPBEntryList[aPBIndex].iEntryList.Count(); count++) |
1035 { |
1035 { |
1070 void CMmPhoneBookStoreMessHandler::RemoveExtEntryFromList( |
1070 void CMmPhoneBookStoreMessHandler::RemoveExtEntryFromList( |
1071 TUint8 aIndex , |
1071 TUint8 aIndex , |
1072 TUint8 aPBIndex) |
1072 TUint8 aPBIndex) |
1073 { |
1073 { |
1074 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::RemoveExtEntryFromList"); |
1074 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::RemoveExtEntryFromList"); |
1075 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_REMOVEEXTENTRYFROMLIST, "CMmPhoneBookStoreMessHandler::RemoveExtEntryFromList" ); |
1075 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_REMOVEEXTENTRYFROMLIST_TD, "CMmPhoneBookStoreMessHandler::RemoveExtEntryFromList" ); |
1076 |
1076 |
1077 TInt count = iPBEntryList[aPBIndex].iEntryList[aIndex]->PBEntryExtRecord.Count(); |
1077 TInt count = iPBEntryList[aPBIndex].iEntryList[aIndex]->PBEntryExtRecord.Count(); |
1078 if( 0 < count ) |
1078 if( 0 < count ) |
1079 { |
1079 { |
1080 iPBEntryList[aPBIndex].iEntryList[aIndex]->PBEntryExtRecord.Remove( count-1 ); |
1080 iPBEntryList[aPBIndex].iEntryList[aIndex]->PBEntryExtRecord.Remove( count-1 ); |
1089 // --------------------------------------------------------------------------- |
1089 // --------------------------------------------------------------------------- |
1090 // |
1090 // |
1091 CMmMessageRouter* CMmPhoneBookStoreMessHandler::MessageRouter() |
1091 CMmMessageRouter* CMmPhoneBookStoreMessHandler::MessageRouter() |
1092 { |
1092 { |
1093 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::MessageRouter"); |
1093 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::MessageRouter"); |
1094 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_MESSAGEROUTER, "CMmPhoneBookStoreMessHandler::MessageRouter" ); |
1094 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_MESSAGEROUTER_TD, "CMmPhoneBookStoreMessHandler::MessageRouter" ); |
1095 |
1095 |
1096 return iMessageRouter; |
1096 return iMessageRouter; |
1097 } |
1097 } |
1098 |
1098 |
1099 |
1099 |
1104 // --------------------------------------------------------------------------- |
1104 // --------------------------------------------------------------------------- |
1105 // |
1105 // |
1106 CMmUiccMessHandler* CMmPhoneBookStoreMessHandler::UiccMessHandler() |
1106 CMmUiccMessHandler* CMmPhoneBookStoreMessHandler::UiccMessHandler() |
1107 { |
1107 { |
1108 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::UiccMessHandler"); |
1108 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::UiccMessHandler"); |
1109 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_UICCMESSHANDLER, "CMmPhoneBookStoreMessHandler::UiccMessHandler" ); |
1109 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_UICCMESSHANDLER_TD, "CMmPhoneBookStoreMessHandler::UiccMessHandler" ); |
1110 |
1110 |
1111 return iMmUiccMessHandler; |
1111 return iMmUiccMessHandler; |
1112 } |
1112 } |
1113 |
1113 |
1114 |
1114 |
1118 // --------------------------------------------------------------------------- |
1118 // --------------------------------------------------------------------------- |
1119 // |
1119 // |
1120 CMmPhoNetSender* CMmPhoneBookStoreMessHandler::PhoNetSender() |
1120 CMmPhoNetSender* CMmPhoneBookStoreMessHandler::PhoNetSender() |
1121 { |
1121 { |
1122 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::PhoNetSender"); |
1122 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::PhoNetSender"); |
1123 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_PHONETSENDER, "CMmPhoneBookStoreMessHandler::PhoNetSender" ); |
1123 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_PHONETSENDER_TD, "CMmPhoneBookStoreMessHandler::PhoNetSender" ); |
1124 |
1124 |
1125 return iPhoNetSender; |
1125 return iPhoNetSender; |
1126 } |
1126 } |
1127 |
1127 |
1128 // --------------------------------------------------------------------------- |
1128 // --------------------------------------------------------------------------- |
1133 TPBEntry* CMmPhoneBookStoreMessHandler::FindEntryFromPbList( |
1133 TPBEntry* CMmPhoneBookStoreMessHandler::FindEntryFromPbList( |
1134 TUint8 aIndex, |
1134 TUint8 aIndex, |
1135 TUint8 aRecordNo ) |
1135 TUint8 aRecordNo ) |
1136 { |
1136 { |
1137 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::FindEntryFromPbList"); |
1137 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::FindEntryFromPbList"); |
1138 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_FINDENTRYFROMPBLIST, "CMmPhoneBookStoreMessHandler::FindEntryFromPbList" ); |
1138 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_FINDENTRYFROMPBLIST_TD, "CMmPhoneBookStoreMessHandler::FindEntryFromPbList" ); |
1139 |
1139 |
1140 TPBEntry* ret( NULL ); |
1140 TPBEntry* ret( NULL ); |
1141 |
1141 |
1142 for( int i = 0; i < iPBEntryList[aIndex].iEntryList.Count(); i++ ) |
1142 for( int i = 0; i < iPBEntryList[aIndex].iEntryList.Count(); i++ ) |
1143 { |
1143 { |
1160 const TInt aCurrentType2EfIndex, |
1160 const TInt aCurrentType2EfIndex, |
1161 const TInt aCurrentRecordNum, |
1161 const TInt aCurrentRecordNum, |
1162 RArray<TInt>& aArray ) |
1162 RArray<TInt>& aArray ) |
1163 { |
1163 { |
1164 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::GetEntryForType2FileId"); |
1164 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::GetEntryForType2FileId"); |
1165 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GETENTRYFORTYPE2FILEID, "CMmPhoneBookStoreMessHandler::GetEntryForType2FileId" ); |
1165 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GETENTRYFORTYPE2FILEID_TD, "CMmPhoneBookStoreMessHandler::GetEntryForType2FileId" ); |
1166 TInt numOfEntries( iPBEntryList[EPhonebookTypeAdn].iEntryList.Count() ); |
1166 TInt numOfEntries( iPBEntryList[EPhonebookTypeAdn].iEntryList.Count() ); |
1167 |
1167 |
1168 // Loop all entries that have been created |
1168 // Loop all entries that have been created |
1169 for ( TInt i( 0 ); i < numOfEntries; i++ ) |
1169 for ( TInt i( 0 ); i < numOfEntries; i++ ) |
1170 { |
1170 { |
1193 // --------------------------------------------------------------------------- |
1193 // --------------------------------------------------------------------------- |
1194 // |
1194 // |
1195 TInt CMmPhoneBookStoreMessHandler::GetMailboxIdentifiers() |
1195 TInt CMmPhoneBookStoreMessHandler::GetMailboxIdentifiers() |
1196 { |
1196 { |
1197 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::GetMailboxIdentifiers"); |
1197 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::GetMailboxIdentifiers"); |
1198 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GETMAILBOXNUMBERS, "CMmPhoneBookStoreMessHandler::GetMailboxIdentifiers" ); |
1198 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GETMAILBOXNUMBERS_TD, "CMmPhoneBookStoreMessHandler::GetMailboxIdentifiers" ); |
1199 // Set parameters for UICC_APPL_CMD_REQ message |
1199 // Set parameters for UICC_APPL_CMD_REQ message |
1200 TUiccReadLinearFixed params; |
1200 TUiccReadLinearFixed params; |
1201 params.messHandlerPtr = static_cast<MUiccOperationBase*>( this ); |
1201 params.messHandlerPtr = static_cast<MUiccOperationBase*>( this ); |
1202 params.trId = ETrIdReadMailboxIdentifier; |
1202 params.trId = ETrIdReadMailboxIdentifier; |
1203 params.dataOffset = 0; |
1203 params.dataOffset = 0; |
1225 void CMmPhoneBookStoreMessHandler::HandleGetMailboxIdentifiers( |
1225 void CMmPhoneBookStoreMessHandler::HandleGetMailboxIdentifiers( |
1226 TInt aStatus, |
1226 TInt aStatus, |
1227 const TDesC8 &aFileData ) |
1227 const TDesC8 &aFileData ) |
1228 { |
1228 { |
1229 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::HandleGetMailboxIdentifiers"); |
1229 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::HandleGetMailboxIdentifiers"); |
1230 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_HANDLEGETMAILBOXIDENTIFIERS, "CMmPhoneBookStoreMessHandler::HandleGetMailboxIdentifiers" ); |
1230 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_HANDLEGETMAILBOXIDENTIFIERS_TD, "CMmPhoneBookStoreMessHandler::HandleGetMailboxIdentifiers" ); |
1231 |
1231 |
1232 RMobilePhone::TMobilePhoneVoicemailIdsV3* voicemailIds( |
1232 RMobilePhone::TMobilePhoneVoicemailIdsV3* voicemailIds( |
1233 new ( ELeave ) RMobilePhone::TMobilePhoneVoicemailIdsV3() ); |
1233 new ( ELeave ) RMobilePhone::TMobilePhoneVoicemailIdsV3() ); |
1234 |
1234 |
1235 TPtrC8 data; |
1235 TPtrC8 data; |
1269 TInt CMmPhoneBookStoreMessHandler::GetPBRRecordNum( |
1269 TInt CMmPhoneBookStoreMessHandler::GetPBRRecordNum( |
1270 TInt aIndexToRead, |
1270 TInt aIndexToRead, |
1271 TUint8 &aPBRRecNum ) |
1271 TUint8 &aPBRRecNum ) |
1272 { |
1272 { |
1273 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::GetPBRRecordNum"); |
1273 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::GetPBRRecordNum"); |
1274 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GETPBRRECORDNUM, "CMmPhoneBookStoreMessHandler::GetPBRRecordNum" ); |
1274 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GETPBRRECORDNUM_TD, "CMmPhoneBookStoreMessHandler::GetPBRRecordNum" ); |
1275 |
1275 |
1276 TInt ret( KErrNone ); |
1276 TInt ret( KErrNone ); |
1277 |
1277 |
1278 // Calculate The PBR Record Number needs to be read |
1278 // Calculate The PBR Record Number needs to be read |
1279 // get the Max no of Entries in one PBR record |
1279 // get the Max no of Entries in one PBR record |
1313 TUint8 aPBRRecNum, |
1313 TUint8 aPBRRecNum, |
1314 TUint8 &aCurrentRecNum, |
1314 TUint8 &aCurrentRecNum, |
1315 TInt aIndexToRead ) |
1315 TInt aIndexToRead ) |
1316 { |
1316 { |
1317 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::GetCurrentEfRecNum"); |
1317 TFLOGSTRING("TSY: CMmPhoneBookStoreMessHandler::GetCurrentEfRecNum"); |
1318 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GETCURRENTEFRECNUM, "CMmPhoneBookStoreMessHandler::GetCurrentEfRecNum" ); |
1318 OstTrace0( TRACE_NORMAL, CMMPHONEBOOKSTOREMESSHANDLER_GETCURRENTEFRECNUM_TD, "CMmPhoneBookStoreMessHandler::GetCurrentEfRecNum" ); |
1319 |
1319 |
1320 TInt ret( KErrNone ); |
1320 TInt ret( KErrNone ); |
1321 // get ADN anf PBR Max no of records |
1321 // get ADN anf PBR Max no of records |
1322 TInt maxNoOfEntry( iPBStoreConf[EPhonebookTypeAdn].iNoOfRecords ); |
1322 TInt maxNoOfEntry( iPBStoreConf[EPhonebookTypeAdn].iNoOfRecords ); |
1323 |
1323 |