equal
deleted
inserted
replaced
78 // ---------------------------------------------------------------------------- |
78 // ---------------------------------------------------------------------------- |
79 // |
79 // |
80 void CMPXCollectionDbManager::ConstructL() |
80 void CMPXCollectionDbManager::ConstructL() |
81 { |
81 { |
82 MPX_FUNC("CMPXCollectionDbManager::ConstructL"); |
82 MPX_FUNC("CMPXCollectionDbManager::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 |