mtpfws/mtpfw/src/cmtpframeworkconfig.cpp
branchRCL_3
changeset 20 4a793f564d72
parent 19 0aa8cc770c8a
equal deleted inserted replaced
19:0aa8cc770c8a 20:4a793f564d72
   172     iRepository = CRepository::NewL(KUidMTPRepository);
   172     iRepository = CRepository::NewL(KUidMTPRepository);
   173     
   173     
   174     const TInt KStartupInitValue = 1;
   174     const TInt KStartupInitValue = 1;
   175     iAbnormalDownValue = 0;
   175     iAbnormalDownValue = 0;
   176     TInt err(iRepository->Get(EAbnormalDown, iAbnormalDownValue));
   176     TInt err(iRepository->Get(EAbnormalDown, iAbnormalDownValue));
   177     if ((KErrNone != err ) && (KErrNotFound != err))
   177     if ( KErrNone != err )
   178 		{
   178 		{
   179 		User::Leave(err);
   179 		iAbnormalDownValue = 0;
   180 		}
   180 		}
   181     
   181     
   182     //Save the AbnormalDown state to ETrue
   182     //Save the AbnormalDown state to ETrue
   183     //if connect the phone to PC while backup, this will leave.
   183     //if connect the phone to PC while backup, this will leave.
   184     TRAP_IGNORE(iRepository->Set(EAbnormalDown, KStartupInitValue ));
   184     TRAP_IGNORE(iRepository->Set(EAbnormalDown, KStartupInitValue ));