equal
deleted
inserted
replaced
49 |
49 |
50 /** |
50 /** |
51 * Two-phased constructor |
51 * Two-phased constructor |
52 * @param aDrive drive of the database |
52 * @param aDrive drive of the database |
53 * @param aFs file session |
53 * @param aFs file session |
|
54 * @param aEMMC whether the system has an internal drive |
54 * @return new instance of CMPXHarvesterDB |
55 * @return new instance of CMPXHarvesterDB |
55 */ |
56 */ |
56 static CMPXHarvesterDB* NewL( TDriveNumber aDrive, RFs& aFs ); |
57 static CMPXHarvesterDB* NewL( TDriveNumber aDrive, RFs& aFs, TBool aEMMC = EFalse ); |
57 |
58 |
58 /** |
59 /** |
59 * Virtual destructor |
60 * Virtual destructor |
60 */ |
61 */ |
61 virtual ~CMPXHarvesterDB(); |
62 virtual ~CMPXHarvesterDB(); |
207 private: |
208 private: |
208 |
209 |
209 /** |
210 /** |
210 * Default constructor |
211 * Default constructor |
211 */ |
212 */ |
212 CMPXHarvesterDB( TDriveNumber aDrive, RFs& aFs ); |
213 CMPXHarvesterDB( TDriveNumber aDrive, RFs& aFs, TBool aEMMC ); |
213 |
214 |
214 /** |
215 /** |
215 * 2nd phase constructor |
216 * 2nd phase constructor |
216 */ |
217 */ |
217 void ConstructL(); |
218 void ConstructL(); |
218 |
219 |
219 private: // data |
220 private: // data |
220 TDriveNumber iDrive; |
221 TDriveNumber iDrive; |
221 RFs& iFs; |
222 RFs& iFs; |
|
223 TBool iEMMC; //Has system an internal drive |
222 // Internal database |
224 // Internal database |
223 CFileStore* iStore; |
225 CFileStore* iStore; |
224 RDbStoreDatabase* iDatabase; // Local single client db |
226 RDbStoreDatabase* iDatabase; // Local single client db |
225 TBool iDBOpen; // Is the db open and ready |
227 TBool iDBOpen; // Is the db open and ready |
226 #ifdef __RAMDISK_PERF_ENABLE |
228 #ifdef __RAMDISK_PERF_ENABLE |