contentstorage/castorage/inc/castorage.h
changeset 86 e492551a0d54
parent 85 7feec50967db
child 94 dbb8300717f7
equal deleted inserted replaced
85:7feec50967db 86:e492551a0d54
    51      *
    51      *
    52      * @param aQuery The query information to select specific entries.
    52      * @param aQuery The query information to select specific entries.
    53      * @param aResultContainer The result list of entries .
    53      * @param aResultContainer The result list of entries .
    54      * for a specific select.
    54      * for a specific select.
    55      */
    55      */
    56     virtual void GetEntriesL( const CCaInnerQuery* aQuery, 
    56     virtual void GetEntriesL( const CCaInnerQuery* aQuery,
    57             RPointerArray<CCaInnerEntry>& aResultContainer ) = 0;
    57             RPointerArray<CCaInnerEntry>& aResultContainer ) = 0;
    58 
    58 
    59     /**
    59     /**
    60      * Fetches data from database by ids.
    60      * Fetches data from database by ids.
    61      *
    61      *
    62      * @param aQuery The query information to select specific entries.
    62      * @param aQuery The query information to select specific entries.
    63      * @param aResultIdArray The result list of entries' ids. 
    63      * @param aResultIdArray The result list of entries' ids.
    64      * for a specific select.
    64      * for a specific select.
    65      */
    65      */
    66     virtual void GetEntriesIdsL( const CCaInnerQuery* aQuery,
    66     virtual void GetEntriesIdsL( const CCaInnerQuery* aQuery,
    67             RArray<TInt>& aResultIdArray ) = 0;
    67             RArray<TInt>& aResultIdArray ) = 0;
    68 
    68 
    71      *
    71      *
    72      * @param aEntryIdArray list of enties ids.
    72      * @param aEntryIdArray list of enties ids.
    73      * @param aParentIdArray The result list of parents' ids
    73      * @param aParentIdArray The result list of parents' ids
    74      * for a specific select.
    74      * for a specific select.
    75      */
    75      */
    76     virtual void GetParentsIdsL( const RArray<TInt>& aEntryIdArray, 
    76     virtual void GetParentsIdsL( const RArray<TInt>& aEntryIdArray,
    77             RArray<TInt>& aParentIdArray ) = 0;
    77             RArray<TInt>& aParentIdArray ) = 0;
    78 
    78 
    79     /**
    79     /**
    80      * Adds or Updates data & action to the storage.
    80      * Adds or Updates data & action to the storage.
    81      *
    81      *
   103      * Stores touch data information in storage.
   103      * Stores touch data information in storage.
   104      *
   104      *
   105      * @param aEntryId The entry id for which touch data should be stored.
   105      * @param aEntryId The entry id for which touch data should be stored.
   106      */
   106      */
   107     virtual void TouchL( const TInt aEntryId ) = 0;
   107     virtual void TouchL( const TInt aEntryId ) = 0;
   108     
   108 
   109     /**
   109     /**
   110      * Get database property from db.
   110      * Get database property from db.
   111      *
   111      *
   112      * @param aProperty The property to get.
   112      * @param aProperty The property to get.
   113      * @param aPropertyValue The value of property.
   113      * @param aPropertyValue The value of property.
   114      */
   114      */
   115     virtual void DbPropertyL( const TDesC& aProperty, TDes& aPropertyValue ) = 0;
   115     virtual void DbPropertyL( const TDesC& aProperty, TDes& aPropertyValue ) = 0;
   116    
   116 
   117     /**
   117     /**
   118      * Set property .
   118      * Set property .
   119      *
   119      *
   120      * @param aProperty The property to set.
   120      * @param aProperty The property to set.
   121      * @param aPropertyValue The value of property.
   121      * @param aPropertyValue The value of property.
   122      */
   122      */
   123     virtual void SetDBPropertyL( const TDesC& aProperty, const TDesC& aPropertyValue ) = 0;
   123     virtual void SetDBPropertyL( const TDesC& aProperty, const TDesC& aPropertyValue ) = 0;
   124     
   124 
   125     /**
   125     /**
   126      * Remove from localization table .
   126      * Remove from localization table .
   127      *
   127      *
   128      * @param aEntryId Entry Id to remove.
   128      * @param aEntryId Entry Id to remove.
   129      */
   129      */
   130     virtual void RemoveFromLocalizationL( const TInt aEntryId ) = 0;
   130     virtual void RemoveFromLocalizationL( const TInt aEntryId ) = 0;
   131     
   131 
   132     /**
   132     /**
   133      * Organizes data within a group in custom order.
   133      * Organizes data within a group in custom order.
   134      *
   134      *
   135      * @param aEntryIds Ids of entries in custom order.
   135      * @param aEntryIds Ids of entries in custom order.
   136      * @param aGroupId Group to sort.
   136      * @param aGroupId Group to sort.
   137      */
   137      */
   138     virtual void CustomSortL( const RArray<TInt>& aEntryIds,
   138     virtual void CustomSortL( const RArray<TInt>& aEntryIds,
   139             const TInt aGroupId ) = 0;    
   139             const TInt aGroupId ) = 0;
       
   140 
       
   141     /**
       
   142      * Loads data base from rom.
       
   143      */
       
   144     virtual void LoadDataBaseFromRomL() = 0;
   140 
   145 
   141     };
   146     };
   142 
   147 
   143 #endif //C_CASTORAGE_H
   148 #endif //C_CASTORAGE_H