mmappcomponents/mmmtpdataprovider/inc/cmmmtpdpmetadataaccesswrapper.h
changeset 27 cbb1bfb7ebfb
parent 25 d881023c13eb
child 32 edd273b3192a
equal deleted inserted replaced
25:d881023c13eb 27:cbb1bfb7ebfb
    73     /**
    73     /**
    74     * Add object (music, video, playlist and abstract album) info to DB
    74     * Add object (music, video, playlist and abstract album) info to DB
    75     * @param aFullFileName, full file name of file
    75     * @param aFullFileName, full file name of file
    76     * @return void
    76     * @return void
    77     */
    77     */
    78     void AddObjectL( const CMTPObjectMetaData& aObject );
    78     IMPORT_C void AddObjectL( const CMTPObjectMetaData& aObject );
    79 
    79 
    80     /**
    80     /**
    81     * Set abstract media to DB
    81     * Set abstract media to DB
    82     * @param aObject,
    82     * @param aObject,
    83     * @param aRefFileArray, a array to store the full file name of media files
    83     * @param aRefFileArray, a array to store the full file name of media files
   122 
   122 
   123     /**
   123     /**
   124     * Deletes metadata information associated with the object
   124     * Deletes metadata information associated with the object
   125     * @param aObject, the object need to be deleted
   125     * @param aObject, the object need to be deleted
   126     */
   126     */
   127     void DeleteObjectL( const CMTPObjectMetaData& aObject );
   127     IMPORT_C void DeleteObjectL( const CMTPObjectMetaData& aObject );
   128 
   128 
   129     /**
   129     /**
   130     * Set current  drive info
   130     * Set current  drive info
   131     * @param aStorageRoot, current drive info
   131     * @param aStorageRoot, current drive info
   132     */
   132     */
   213 
   213 
   214     CMmMtpDpMetadataAccessWrapper( MMTPDataProviderFramework& aFramework );
   214     CMmMtpDpMetadataAccessWrapper( MMTPDataProviderFramework& aFramework );
   215 
   215 
   216     void ConstructL();
   216     void ConstructL();
   217 
   217 
   218     TMPXGeneralCategory ContainerCategory( const TDesC& aFullFileName );
   218     TMPXGeneralCategory ContainerCategoryL( const TDesC& aFullFileName );
   219 
   219 
   220     /**
   220     /**
   221     * Remove all dummy file of which format is "pla", and leave the "m3u"
   221     * Remove all dummy file of which format is "pla", and leave the "m3u"
   222     */
   222     */
   223     void RemoveDummyFiles();
   223     void RemoveDummyFiles();
   224 
   224 
   225 private:
   225 private:
   226     CMmMtpDpMetadataMpxAccess* iMmMtpDpMetadataMpxAccess;
   226     CMmMtpDpMetadataMpxAccess* iMmMtpDpMetadataMpxAccess;
   227     CMmMtpDpMetadataVideoAccess* iMmMtpDpMetadataVideoAccess;
   227     CMmMtpDpMetadataVideoAccess* iMmMtpDpMetadataVideoAccess;
   228     TBool iOpenSession;
       
   229 
   228 
   230     MMTPDataProviderFramework& iFramework;
   229     MMTPDataProviderFramework& iFramework;
   231     RFs& iFs;	// should not remove this member data!!!
   230     RFs& iFs;    // should not remove this member data!!!
       
   231 
       
   232     TInt iOpenCount;	// introduce to fix CollectionHelper Flush problem
   232 
   233 
   233     CDesCArray* iAbstractMediaArray;
   234     CDesCArray* iAbstractMediaArray;
   234 
   235 
   235     };
   236     };
   236 
   237