diff -r 7feec50967db -r e492551a0d54 contentstorage/castorage/inc/casqlitestorage.h --- a/contentstorage/castorage/inc/casqlitestorage.h Tue Mar 23 23:17:02 2010 +0200 +++ b/contentstorage/castorage/inc/casqlitestorage.h Tue Mar 23 23:28:12 2010 +0200 @@ -18,6 +18,7 @@ #ifndef C_CASTORAGE_ENGINE_H #define C_CASTORAGE_ENGINE_H +#include #include #include #include "castorage.h" @@ -61,6 +62,10 @@ ~CCaSqLiteStorage(); //from CCpStorage + /** + * Loads data base from rom. + */ + void LoadDataBaseFromRomL(); /** * Localizes one entry attribute. @@ -74,7 +79,8 @@ * * @param aMap Filtering and sorting criteria */ - void GetLocalizationsL( RPointerArray& aResultContainer ); + void GetLocalizationsL( + RPointerArray& aResultContainer ); /** * Fetches data from database. @@ -82,7 +88,7 @@ * @param aQuery . * @param aResultContainer Target for results. */ - void GetEntriesL( const CCaInnerQuery* aQuery, + void GetEntriesL( const CCaInnerQuery* aQuery, RPointerArray& aResultContainer ); /** @@ -131,7 +137,7 @@ * @param aEntryId. */ void TouchL( const TInt aEntryId ); - + /** * Get database property from db. * @@ -139,14 +145,15 @@ * @param aPropertyValue The value of property. */ void DbPropertyL( const TDesC& aProperty, TDes& aPropertyValue ); - + /** * Set property . * * @param aProperty The property to set. * @param aPropertyValue The value of property. */ - void SetDBPropertyL( const TDesC& aProperty, const TDesC& aPropertyValue ); + void SetDBPropertyL( const TDesC& aProperty, + const TDesC& aPropertyValue ); /** * Remove from localization table . @@ -154,7 +161,7 @@ * @param aEntryId Entry Id to remove. */ void RemoveFromLocalizationL( const TInt aEntryId ); - + /** * Organizes data within a group in custom order. * @@ -166,7 +173,7 @@ private: /** - * Perform the second phase construction of a CCpStorageEngine + * Perform the second phase construction of a CCpStorageEngine * object. */ void ConstructL(); @@ -177,31 +184,33 @@ CCaSqLiteStorage(); TInt CreatePrivateDirPath( TFileName& aPrivatePath, - const TDesC& aDrive, const TDesC& aDbName, RFs& aFsSession ); - + const TDesC& aDrive, const TDesC& aDbName ); + void ExecuteStatementL( const TDesC& aStatement ); - + void ExecuteAddL( CCaInnerEntry* aEntry, RPointerArray& sqlQuery ); - + void ExecuteRemoveL( const RArray& aEntryIds ); - + void ExecuteRemoveFromLocalizationL( const TInt aEntryId ); - + void ExecuteOrganizeL( const RArray& aEntryIds, TCaOperationParams aParams ); - + void ExecuteTouchL( const TInt aEntryId ); - + void ExecuteDbPropertyL( const TDesC& aProperty, TDes& aPropertyValue ); - - void ExecuteSetDbPropertyL( const TDesC& aProperty, const TDesC& aPropertyValue ); - - void ExecuteCustomSortL( const RArray& aEntryIds, const TInt aGroupId, + + void ExecuteSetDbPropertyL( const TDesC& aProperty, + const TDesC& aPropertyValue ); + + void ExecuteCustomSortL( const RArray& aEntryIds, + const TInt aGroupId, RPointerArray& aSqlQuery ); - + void RemoveOldEntriesFromLaunchTableL( TInt aDays ); - + void VerifyOrganizeParamsL( const RArray& aEntryIds, TCaOperationParams aParams ); @@ -221,6 +230,26 @@ */ RSqlDatabase iSqlDb; + /** + * Path to data base in private path on C-drive. + */ + TFileName iPrivatePathCDriveDb; + + /** + * Path to data base in private path on Z-drive. + */ + TFileName iPrivatePathZDriveDb; + + /** + * Private path on C-drive. + */ + TFileName iPrivatePathCDrive; + + /** + * RFs session. + */ + RFs iRfs; + }; #endif //C_CASTORAGE_ENGINE_H