contentstorage/casrv/caappscanner/inc/casrvappscanner.h
changeset 73 4bc7b118b3df
parent 66 32469d7d46ff
child 80 397d00875918
equal deleted inserted replaced
66:32469d7d46ff 73:4bc7b118b3df
   155     /**
   155     /**
   156      * Gets collectionId of download collection
   156      * Gets collectionId of download collection
   157      * @result id of download collection
   157      * @result id of download collection
   158      */
   158      */
   159     TInt GetCollectionDownloadIdL();
   159     TInt GetCollectionDownloadIdL();
   160     
   160 
   161     /**
   161     /**
   162      * Gets collectionId of all collection
   162      * Gets collectionId of all collection
   163      * @result id of all collection
   163      * @result id of all collection
   164      */
   164      */
   165     TInt GetAllCollectionIdL();
   165     TInt GetAllCollectionIdL();
   167     /**
   167     /**
   168      * Adds application entry to downloaded collection
   168      * Adds application entry to downloaded collection
   169      * @param aEntryId application entry id.
   169      * @param aEntryId application entry id.
   170      */
   170      */
   171     void AddEntryToDownloadedCollectionL( TInt aEntryId );
   171     void AddEntryToDownloadedCollectionL( TInt aEntryId );
   172     
   172 
   173     /**
   173     /**
   174      * Add application entry to predefined collection
   174      * Add application entry to predefined collection
   175      * @param aEntry application entry.
   175      * @param aEntry application entry.
   176      * @param aUpdate is entry updated by a client
   176      * @param aUpdate is entry updated by a client
   177      */
   177      */
   178     void AddEntryToPredefinedCollectionL( CCaInnerEntry* aEntry,
   178     void AddEntryToPredefinedCollectionL( CCaInnerEntry* aEntry,
   179             TBool aUpdate = EFalse );
   179             TBool aUpdate = EFalse );
   180     
   180 
   181     /**
   181     /**
   182      * Create predefined collection
   182      * Create predefined collection
   183      * @param aGroupName group name.
   183      * @param aGroupName group name.
   184      * @result id of new created collection
   184      * @result id of new created collection
   185      */
   185      */
   186     TInt CreatePredefinedCollectionL( const TDesC& aGroupName );
   186     TInt CreatePredefinedCollectionL( const TDesC& aGroupName );
   187     
   187 
   188     /**
   188     /**
   189      * Add collection to all collection.
   189      * Add collection to all collection.
   190      * @param aCollectionId collection id to add.
   190      * @param aCollectionId collection id to add.
   191      */
   191      */
   192     void AddCollectionToAllCollectionL( TInt aCollectionId );
   192     void AddCollectionToAllCollectionL( TInt aCollectionId );
   198     void RemoveEntryFromDownloadedL( TInt aEntryId );
   198     void RemoveEntryFromDownloadedL( TInt aEntryId );
   199 
   199 
   200     TBool HandleLockDeleteFlagUpdateL( CCaInnerEntry* aItem );
   200     TBool HandleLockDeleteFlagUpdateL( CCaInnerEntry* aItem );
   201 
   201 
   202     /**
   202     /**
   203      * Updates application's missing attribute.
   203      * Updates application's missing and visible flags.
   204      * Add new menu item referring to this application.
   204      * Add new menu item referring to this application.
   205      * @param aItem menu item.
   205      * @param aItem menu item.
   206      * @return ETrue if missing flag was updated
   206      * @return ETrue if flags were updated
   207      */
   207      */
   208     TBool HandleMissingFlagUpdate( CCaInnerEntry* aItem );
   208     TBool HandleMissingVisibleFlagsUpdate( CCaInnerEntry* aItem );
   209 
   209 
   210     /**
   210     /**
   211      * Updates hidden flag.
   211      * Updates visible flag.
   212      * @param aItem menu item.
   212      * @param aItem menu item.
   213      * @param aUid Application's uid.
   213      * @param aUid Application's uid.
   214      * @return ETrue if hidden flag was updated
   214      * @return ETrue if visible flag was updated
   215      */
   215      */
   216     TBool HandleHiddenFlagUpdateL( CCaInnerEntry* aItem );
   216     TBool HandleVisibleFlagUpdate( CCaInnerEntry* aItem );
   217 
   217 
   218     /**
   218     /**
   219      * Updates used flag.
   219      * Updates used flag.
   220      * @param aItem menu item.
   220      * @param aItem menu item.
   221      * @param aUid Application's uid.
   221      * @param aUid Application's uid.
   222      * @return ETrue if used flag was updated
   222      * @return ETrue if used flag was updated
   223      */
   223      */
   224     TBool HandleUsedFlagUpdateL( CCaInnerEntry* aItem );
   224     TBool HandleUsedFlagUpdate( CCaInnerEntry* aItem );
   225     /**
   225     /**
   226      * Updates mmc attribute.
   226      * Updates mmc attribute.
   227      * @param aItem menu item.
   227      * @param aItem menu item.
   228      * @param aUid Application's uid.
   228      * @param aUid Application's uid.
   229      * @param aMmcId MMC ID of currently inserted MMC, or 0.
   229      * @param aMmcId MMC ID of currently inserted MMC, or 0.
   326      * @param aAppEntry app to remove.
   326      * @param aAppEntry app to remove.
   327      */
   327      */
   328     void RemoveAppL( CCaInnerEntry* aAppEntry );
   328     void RemoveAppL( CCaInnerEntry* aAppEntry );
   329 
   329 
   330     /**
   330     /**
   331      * Adds flag objects(only one flag at time).
   331      * Set "missing" flag.
   332      * @param aEntry entry.
   332      * @param aEntry entry.
   333      * @param aFlag menu item's flag.
   333      */
   334      */
   334     void SetMissingFlagL( CCaInnerEntry* aEntry );
   335     void AddObjectFlagL( CCaInnerEntry* aEntry, const TInt& aFlag );
   335 
       
   336     /**
       
   337      * Set "visible" flag.
       
   338      * @param aEntry entry.
       
   339      */
       
   340     void ClearVisibleFlagL( CCaInnerEntry* aEntry );
   336 
   341 
   337     /**
   342     /**
   338      * Check currently inserted MMC card, update and save MMC history.
   343      * Check currently inserted MMC card, update and save MMC history.
   339      * @return Current MMC id, or 0 if no MMC is inserted.
   344      * @return Current MMC id, or 0 if no MMC is inserted.
   340      */
   345      */
   408 
   413 
   409     /**
   414     /**
   410      * Notifys storage abaut updated apps
   415      * Notifys storage abaut updated apps
   411      */
   416      */
   412     void InstallationNotifyL();
   417     void InstallationNotifyL();
   413     
   418 
   414     /**
   419     /**
   415      * Make not empty collections with not hidden apps visible.
   420      * Make not empty collections with not hidden apps visible.
   416      */
   421      */
   417     void MakeNotEmptyCollectionsVisibleL();
   422     void MakeNotEmptyCollectionsVisibleL();
   418     
   423 
   419     /**
   424     /**
   420      * Make collection visible if has visible entry.
   425      * Make collection visible if has visible entry.
   421      * @param aEntry application entry
   426      * @param aEntry application entry
   422      */
   427      */
   423     void MakeCollectionVisibleIfHasVisibleEntryL( CCaInnerEntry* aEntry );
   428     void MakeCollectionVisibleIfHasVisibleEntryL( CCaInnerEntry* aEntry );