mmappcomponents/mmmtpdataprovider/inc/cmmmtpdpmetadataaccesswrapper.h
branchGCC_SURGE
changeset 47 f3d2589f22d6
parent 35 2ee890d2f7e7
equal deleted inserted replaced
36:3b7506f63335 47:f3d2589f22d6
    49     * @param aStoreRoot, specify in which drive abstract medias are stored
    49     * @param aStoreRoot, specify in which drive abstract medias are stored
    50     * @param aAbstractMedias, return result array
    50     * @param aAbstractMedias, return result array
    51     * @param aCategory, indicate the category of abstract medias
    51     * @param aCategory, indicate the category of abstract medias
    52     */
    52     */
    53     IMPORT_C void GetAllAbstractMediaL( const TDesC& aStoreRoot,
    53     IMPORT_C void GetAllAbstractMediaL( const TDesC& aStoreRoot,
    54         CMPXMediaArray** aAbstractMedias,
    54         CDesCArray& aAbstractMedias,
    55         TMPXGeneralCategory aCategory );
    55         TMPXGeneralCategory aCategory );
    56 
    56 
    57     /**
    57     /**
    58     * Get all references of specified abstract medias
    58     * Get all references of specified abstract medias
    59     * @param aAbstractMedia, specify of which reference should be get
    59     * @param aAbstractMedia, specify of which reference should be get
    60     * @param aReferences, return result array which stored handles of all references
    60     * @param aReferences, return result array which stored handles of all references
    61     */
    61     */
    62     IMPORT_C void GetAllReferenceL( CMPXMedia* aAbstractMedia,
    62     IMPORT_C void GetAllReferenceL( const CMTPObjectMetaData& aRefOwner,
    63         CDesCArray& aReferences );
    63         CDesCArray& aReferences );
    64 
    64 
    65     /**
       
    66     * Get an abstract media name from CMPXMedia object
       
    67     * @param aAbstractMedia, specify the source
       
    68     * @param aCategory, specify the category
       
    69     * @return, name of the source, ownership transferred
       
    70     */
       
    71     IMPORT_C HBufC* GetAbstractMediaNameL( CMPXMedia* aAbstractMedia,
       
    72         TMPXGeneralCategory aCategory );
       
    73     /**
    65     /**
    74     * Add object (music, video, playlist and abstract album) info to DB
    66     * Add object (music, video, playlist and abstract album) info to DB
    75     * @param aFullFileName, full file name of file
    67     * @param aFullFileName, full file name of file
    76     * @return void
    68     * @return void
    77     */
    69     */
   163         TInt& arrayCount,
   155         TInt& arrayCount,
   164         CDesCArray& aRefFileArray );
   156         CDesCArray& aRefFileArray );
   165 
   157 
   166     /**
   158     /**
   167     * Updated Music DB
   159     * Updated Music DB
   168     * @return void
   160     * @param aStorageRoot, the root path of storage
   169     */
   161     * @return void
   170     IMPORT_C void UpdateMusicCollectionL();
   162     */
       
   163     IMPORT_C void UpdateMusicCollectionL( const TDesC& aStorageRoot );
   171 
   164 
   172     /*
   165     /*
   173     * Called when the MTP session is initialised
   166     * Called when the MTP session is initialised
   174     */
   167     */
   175     void OpenSessionL();
   168     void OpenSessionL();
   227     CMmMtpDpMetadataVideoAccess* iMmMtpDpMetadataVideoAccess;
   220     CMmMtpDpMetadataVideoAccess* iMmMtpDpMetadataVideoAccess;
   228 
   221 
   229     MMTPDataProviderFramework& iFramework;
   222     MMTPDataProviderFramework& iFramework;
   230     RFs& iFs;    // should not remove this member data!!!
   223     RFs& iFs;    // should not remove this member data!!!
   231 
   224 
   232     TInt iOpenCount;	// introduce to fix CollectionHelper Flush problem
   225     TInt iOpenCount;    // introduce to fix CollectionHelper Flush problem
   233 
   226 
   234     CDesCArray* iAbstractMediaArray;
   227     CDesCArray* iAbstractMediaArray;
   235 
   228 
   236     };
   229     };
   237 
   230