contentstorage/srvinc/castorageproxy.h
changeset 127 7b66bc3c6dc9
parent 125 26079c1bb561
equal deleted inserted replaced
126:efda7c0771b9 127:7b66bc3c6dc9
    67      * Add localization row to the storage
    67      * Add localization row to the storage
    68      *
    68      *
    69      * @param aLocalization entry containing localization row to be added
    69      * @param aLocalization entry containing localization row to be added
    70      */
    70      */
    71     IMPORT_C void AddLocalizationL(const CCaLocalizationEntry& aLocalization);
    71     IMPORT_C void AddLocalizationL(const CCaLocalizationEntry& aLocalization);
    72     
    72 
    73     /**
    73     /**
    74      * Fetches localization data from database
    74      * Fetches localization data from database
    75      *
    75      *
    76      * @param aResultContainer Target for results.
    76      * @param aResultContainer Target for results.
    77      */
    77      */
   152      * @param aGroupId Group to sort.
   152      * @param aGroupId Group to sort.
   153      */
   153      */
   154     IMPORT_C void CustomSortL( const RArray<TInt>& aEntryIds,
   154     IMPORT_C void CustomSortL( const RArray<TInt>& aEntryIds,
   155             const TInt aGroupId );
   155             const TInt aGroupId );
   156 
   156 
   157     
   157 
   158     /**
   158     /**
   159      * Saves a copy of database to private.
   159      * Saves a copy of database to private.
   160      */
   160      */
   161 	IMPORT_C void SaveDatabaseL();
   161 	IMPORT_C void SaveDatabaseL();
   162 	
   162 
   163     /**
       
   164      * Marks db to be restored from backup by next restart
       
   165      */
       
   166 	IMPORT_C void RestoreDatabaseL();
       
   167     
       
   168     
       
   169     /**
   163     /**
   170      * Loads data base from rom.
   164      * Loads data base from rom.
   171      */
   165      */
   172     IMPORT_C void LoadDataBaseFromRomL();
   166     IMPORT_C void LoadDataBaseFromRomL();
   173 
   167 
   194 
   188 
   195     /**
   189     /**
   196      * C++ default constructor.
   190      * C++ default constructor.
   197      */
   191      */
   198     CCaStorageProxy();
   192     CCaStorageProxy();
   199     
   193 
   200     CCaLocalizationEntry* LocalizeTextL( CCaInnerEntry* aEntry );
   194     CCaLocalizationEntry* LocalizeTextL( CCaInnerEntry* aEntry );
   201     
   195 
   202     CCaLocalizationEntry* LocalizeDescriptionL( CCaInnerEntry* aEntry );
   196     CCaLocalizationEntry* LocalizeDescriptionL( CCaInnerEntry* aEntry );
   203     
   197 
   204     void AddTitleNameL( CCaInnerEntry* aEntry );
   198     void AddTitleNameL( CCaInnerEntry* aEntry );
   205     
   199     
   206     TBool InitializeTranslatorL( const TDesC& aQmFilename );
   200     TBool InitializeTranslatorL( const TDesC& aQmFilename );
       
   201     
       
   202     /**
       
   203      * Executes touch specific actions on storage.
       
   204      * Should be called when e.g. entry is clicked.
       
   205      * @param aEntry entry to be touched
       
   206      */
       
   207     void PrivateTouchL( CCaInnerEntry* aEntry );
   207 
   208 
   208 private:
   209 private:
   209     //Data
   210     //Data
   210 
   211 
   211     /**
   212     /**
   222      * Translated user collection name. Own.
   223      * Translated user collection name. Own.
   223      */
   224      */
   224     RBuf iTitleUserColName;
   225     RBuf iTitleUserColName;
   225     
   226     
   226     CA_STORAGE_TEST_FRIEND_CLASS( TestCaClient )
   227     CA_STORAGE_TEST_FRIEND_CLASS( TestCaClient )
   227     
   228 
   228     };
   229     };
   229 
   230 
   230 #endif //CASTORAGEPROXY_H
   231 #endif //CASTORAGEPROXY_H