mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/src/mpxdbhandler.cpp
equal
deleted
inserted
replaced
1400 // ---------------------------------------------------------------------------- |
1400 // ---------------------------------------------------------------------------- |
1401 // |
1401 // |
1402 void CMPXDbHandler::MtpStartL() |
1402 void CMPXDbHandler::MtpStartL() |
1403 { |
1403 { |
1404 MPX_DEBUG1("-->CMPXDbHandler::MtpStartL"); |
1404 MPX_DEBUG1("-->CMPXDbHandler::MtpStartL"); |
1405 iMtpInUse = ETrue; |
1405 if(!iMtpInUse) |
1406 iOpOnDbCount = 0; |
1406 { |
1407 |
1407 iMtpInUse = ETrue; |
1408 #ifdef __RAMDISK_PERF_ENABLE |
1408 iOpOnDbCount = 0; |
1409 TRAPD(err, iDbManager->CopyDBsToRamL(iMtpInUse)); |
1409 |
1410 if ( err != KErrNone ) |
1410 #ifdef __RAMDISK_PERF_ENABLE |
1411 { |
1411 TRAPD(err, iDbManager->CopyDBsToRamL(iMtpInUse)); |
1412 MPX_DEBUG2("CMPXDbHandler::MtpStartL error=%d", err); |
1412 if ( err != KErrNone ) |
1413 } |
1413 { |
1414 #endif //__RAMDISK_PERF_ENABLE |
1414 MPX_DEBUG2("CMPXDbHandler::MtpStartL error=%d", err); |
1415 |
1415 } |
1416 iDbManager->BeginL(); |
1416 #endif //__RAMDISK_PERF_ENABLE |
|
1417 |
|
1418 iDbManager->BeginL(); |
|
1419 } |
1417 MPX_DEBUG1("<--CMPXDbHandler::MtpStartL"); |
1420 MPX_DEBUG1("<--CMPXDbHandler::MtpStartL"); |
1418 } |
1421 } |
1419 |
1422 |
1420 // ---------------------------------------------------------------------------- |
1423 // ---------------------------------------------------------------------------- |
1421 // Notification of Mtp status change |
1424 // Notification of Mtp status change |
1812 |
1815 |
1813 // make it visible if either table is updated |
1816 // make it visible if either table is updated |
1814 if (visible) |
1817 if (visible) |
1815 { |
1818 { |
1816 visibleChange = CMPXDbActiveTask::EAllVisible; |
1819 visibleChange = CMPXDbActiveTask::EAllVisible; |
|
1820 } |
|
1821 if ( aMedia.ValueTObjectL<TInt>( KMPXMediaMusicAlbumArtChanged )== 1 ) |
|
1822 { |
|
1823 ( const_cast<CMPXMedia*>( &aMedia ) |
|
1824 )->SetTObjectValueL<TInt>( KMPXMediaMusicAlbumArtChanged, 0 ); |
1817 } |
1825 } |
1818 |
1826 |
1819 return visibleChange; |
1827 return visibleChange; |
1820 } |
1828 } |
1821 |
1829 |