equal
deleted
inserted
replaced
225 ( CCDRecordBase::RecordFactoryL( KCDTIdDefaultWCDMARecord ) ); |
225 ( CCDRecordBase::RecordFactoryL( KCDTIdDefaultWCDMARecord ) ); |
226 |
226 |
227 CleanupStack::PushL( defaultGPRS ); |
227 CleanupStack::PushL( defaultGPRS ); |
228 |
228 |
229 defaultGPRS->iRecordName.SetL( KDefaultGPRSRecordName ); |
229 defaultGPRS->iRecordName.SetL( KDefaultGPRSRecordName ); |
230 |
230 |
231 defaultGPRS->FindL( *db ); |
231 if ( !defaultGPRS->FindL( *db ) ) |
|
232 { |
|
233 CLOG_WRITE( "! Error : CProcessorGlobal::ProcessTagL: Default AP not found" ); |
|
234 User::Leave( KErrNotFound ); |
|
235 } |
232 |
236 |
233 defaultGPRS->iAPN.SetL( *ptrTag ); |
237 defaultGPRS->iAPN.SetL( *ptrTag ); |
234 |
238 |
235 defaultGPRS->ModifyL( *db ); |
239 defaultGPRS->ModifyL( *db ); |
236 |
240 |
237 CleanupStack::PopAndDestroy( defaultGPRS ); |
241 CleanupStack::PopAndDestroy( defaultGPRS ); |
238 |
242 |
239 db->Close(); |
243 db->Close(); |
240 CleanupStack::PopAndDestroy( db ); |
244 CleanupStack::PopAndDestroy( db ); |
318 { |
322 { |
319 // Open the record "Gprs Modem" |
323 // Open the record "Gprs Modem" |
320 bearerRecord->iRecordName.SetL( KModemBearerPacketData ); |
324 bearerRecord->iRecordName.SetL( KModemBearerPacketData ); |
321 } |
325 } |
322 |
326 |
323 bearerRecord->FindL( *iSession ); // CHECK: Leaves if record not found |
327 if( !bearerRecord->FindL( *iSession ) ) |
|
328 { |
|
329 CLOG_WRITE( "! Error : CProcessorGlobal::ProcessTagL: Modem bearer record not found" ); |
|
330 User::Leave( KErrNotFound ); |
|
331 } |
324 |
332 |
325 // Convert input parameter |
333 // Convert input parameter |
326 TLex lex( *ptrTag ); |
334 TLex lex( *ptrTag ); |
327 |
335 |
328 TInt timeout( 0 ); |
336 TInt timeout( 0 ); |
369 CleanupStack::PushL( bearerRecord ); |
377 CleanupStack::PushL( bearerRecord ); |
370 |
378 |
371 // Open the record "WlanBearer" |
379 // Open the record "WlanBearer" |
372 bearerRecord->iRecordName.SetL( KLANBearerWlan ); |
380 bearerRecord->iRecordName.SetL( KLANBearerWlan ); |
373 |
381 |
374 User::LeaveIfError( bearerRecord->FindL( *iSession ) ); |
382 if( !bearerRecord->FindL( *iSession ) ) |
|
383 { |
|
384 CLOG_WRITE( "! Error : CProcessorGlobal::ProcessTagL: LAN bearer record not found" ); |
|
385 User::Leave( KErrNotFound ); |
|
386 } |
375 |
387 |
376 // Convert the input paramater to UINT |
388 // Convert the input paramater to UINT |
377 TLex lex( *ptrTag ); |
389 TLex lex( *ptrTag ); |
378 |
390 |
379 TInt timeout( 0 ); |
391 TInt timeout( 0 ); |
494 |
506 |
495 CleanupStack::PushL( globalSettings ); |
507 CleanupStack::PushL( globalSettings ); |
496 |
508 |
497 globalSettings->iRecordName.SetL( KGlobalSettingsRecordName ); |
509 globalSettings->iRecordName.SetL( KGlobalSettingsRecordName ); |
498 |
510 |
499 if( globalSettings->FindL( *db ) ) |
511 if( !globalSettings->FindL( *db ) ) |
500 { |
512 { |
501 //Gprs attach mode |
513 CLOG_WRITE( "! Error : CProcessorGlobal::ProcessAPL: Global settings not found" ); |
502 if ( iAttachWhenNeeded ) |
514 User::Leave( KErrNotFound ); |
503 { |
515 } |
504 CLOG_WRITE( "GPRS attach mode : attach when needed\n" ) |
516 |
505 globalSettings->iGPRSAttachMode = RPacketService::EAttachWhenNeeded; |
517 //Gprs attach mode |
506 } |
518 if ( iAttachWhenNeeded ) |
507 else |
519 { |
508 { |
520 CLOG_WRITE( "GPRS attach mode : attach when needed\n" ) |
509 CLOG_WRITE( "GPRS attach mode : attach when available\n" ) |
521 globalSettings->iGPRSAttachMode = RPacketService::EAttachWhenNeeded; |
510 globalSettings->iGPRSAttachMode = RPacketService::EAttachWhenPossible; |
522 } |
511 } |
523 else |
|
524 { |
|
525 CLOG_WRITE( "GPRS attach mode : attach when available\n" ) |
|
526 globalSettings->iGPRSAttachMode = RPacketService::EAttachWhenPossible; |
512 } |
527 } |
513 |
528 |
514 globalSettings->ModifyL( *db ); |
529 globalSettings->ModifyL( *db ); |
515 |
530 |
516 CleanupStack::PopAndDestroy( globalSettings ); |
531 CleanupStack::PopAndDestroy( globalSettings ); |
675 |
690 |
676 CMDBField<TUint32>* settingsTypeField = (CMDBField<TUint32>*)deviceSettingsTable->GetFieldByIdL(KCDTIdWlanDeviceSettingsType); |
691 CMDBField<TUint32>* settingsTypeField = (CMDBField<TUint32>*)deviceSettingsTable->GetFieldByIdL(KCDTIdWlanDeviceSettingsType); |
677 |
692 |
678 settingsTypeField->SetL( aTableType ); |
693 settingsTypeField->SetL( aTableType ); |
679 |
694 |
680 deviceSettingsTable->FindL( *iSession ); |
695 if( !deviceSettingsTable->FindL( *iSession ) ) |
|
696 { |
|
697 CLOG_WRITE( "! Error : CProcessorGlobal::SaveGlobalWlanParameterL: Table not found" ); |
|
698 User::Leave( KErrNotFound ); |
|
699 } |
681 |
700 |
682 // Convert the input parameter to integer |
701 // Convert the input parameter to integer |
683 TLex lex( *aValue ); |
702 TLex lex( *aValue ); |
684 |
703 |
685 TInt value( 0 ); |
704 TInt value( 0 ); |