mpxplugins/serviceplugins/collectionplugins/mpxsqlitepodcastdbplugin/src/mpxpodcastdbmanager.cpp
branchRCL_3
changeset 40 cb96c29156b2
parent 0 ff3acec5bc43
equal deleted inserted replaced
31:a12246c97fcc 40:cb96c29156b2
    78 // ----------------------------------------------------------------------------
    78 // ----------------------------------------------------------------------------
    79 //
    79 //
    80 void CMPXPodcastDbManager::ConstructL()
    80 void CMPXPodcastDbManager::ConstructL()
    81     {
    81     {
    82     MPX_FUNC("CMPXPodcastDbManager::ConstructL");
    82     MPX_FUNC("CMPXPodcastDbManager::ConstructL");
    83     CMPXDbManager::ConstructL(TFileName(KMCDbFile));
    83     //Find out if the system has an internal drive (eMMC)
       
    84     TBool eMMC( EFalse );
       
    85     TDriveInfo driveInfo;
       
    86     if( Fs().Drive( driveInfo, EDriveE ) == KErrNone )
       
    87     	{
       
    88         if ( driveInfo.iDriveAtt & KDriveAttInternal )
       
    89             eMMC = ETrue;
       
    90         }
       
    91 
       
    92     //Use different name for Dbs if the system has an internal drive vs. MMC-only.
       
    93     //Since hard-coded drive letters in the Thumbnail URIs
       
    94     //So Dbs are not interchangeable between an internal drive system and MMC-only system.
       
    95     if( eMMC )	
       
    96         {
       
    97         CMPXDbManager::ConstructL(TFileName( KMCDbFileEMMC ));
       
    98         }
       
    99     else
       
   100         {
       
   101         CMPXDbManager::ConstructL(TFileName( KMCDbFile ));
       
   102         }
    84     }
   103     }
    85 
   104 
    86 // End of File
   105 // End of File