diff -r f8e15b44d440 -r 4843bb5893b6 mtpdataproviders/mtpimagedp/inc/cmtpimagedp.h --- a/mtpdataproviders/mtpimagedp/inc/cmtpimagedp.h Fri Feb 19 23:40:44 2010 +0200 +++ b/mtpdataproviders/mtpimagedp/inc/cmtpimagedp.h Fri Mar 12 15:46:41 2010 +0200 @@ -39,8 +39,10 @@ class CMTPImageDpMdeObserver; class CRepository; class CMTPImageDpRenameObject; +class CMTPImageDpNewPicturesNotifier; const TInt KMaxExtNameLength = 4; +const TInt KMaxMimeNameLength = 10; /** Implements the picture data provider plugin. @@ -59,11 +61,14 @@ CMTPImageDpThumbnailCreator& ThumbnailManager() const; CRepository& Repository() const; - TMTPFormatCode FindFormatL(const TDesC& aExtension); + TMTPFormatCode FindFormat(const TDesC& aExtension); + const TDesC& FindMimeType(const TDesC& aExtension); TBool GetCacheParentHandle(const TDesC& aParentPath, TUint32& aParentHandle); void SetCacheParentHandle(const TDesC& aParentPath, TUint32 aParentHandle); void AppendDeleteObjectsArrayL(const TDesC& aSuid); void HandleDeleteObjectsArray(); + void IncreaseNewPictures(TInt aCount); + void DecreaseNewPictures(TInt aCount); public: // From CMTPDataProviderPlugin void Cancel(); @@ -109,6 +114,7 @@ CMTPImageDpMdeObserver* iMdeObserver; CRepository* iRepository; CMTPImageDpRenameObject* iRenameObject; + CMTPImageDpNewPicturesNotifier* iNewPicNotifier; /** The active request processors table. @@ -116,13 +122,16 @@ RPointerArray iActiveProcessors; /** - * contain the image mapping of extenstion to formatcode + * contain the mapping image'extension to formatcode */ RHashMap, TMTPFormatCode> iFormatMappings; - SMTPImageDpParentCache iParentCache; + /** + * contain the mapping image's extension to mime type + */ + RHashMap, TBuf > iMimeMappings; - TUint iPrePictures; + SMTPImageDpParentCache iParentCache; TInt iActiveProcessor; TBool iActiveProcessorRemoved;