37 class CMTPImageDpThumbnailCreator; |
37 class CMTPImageDpThumbnailCreator; |
38 class CMTPImageDpObjectPropertyMgr; |
38 class CMTPImageDpObjectPropertyMgr; |
39 class CMTPImageDpMdeObserver; |
39 class CMTPImageDpMdeObserver; |
40 class CRepository; |
40 class CRepository; |
41 class CMTPImageDpRenameObject; |
41 class CMTPImageDpRenameObject; |
|
42 class CMTPImageDpNewPicturesNotifier; |
42 |
43 |
43 const TInt KMaxExtNameLength = 4; |
44 const TInt KMaxExtNameLength = 4; |
|
45 const TInt KMaxMimeNameLength = 10; |
44 |
46 |
45 /** |
47 /** |
46 Implements the picture data provider plugin. |
48 Implements the picture data provider plugin. |
47 @internalComponent |
49 @internalComponent |
48 */ |
50 */ |
57 public: |
59 public: |
58 CMTPImageDpObjectPropertyMgr& PropertyMgr()const; |
60 CMTPImageDpObjectPropertyMgr& PropertyMgr()const; |
59 CMTPImageDpThumbnailCreator& ThumbnailManager() const; |
61 CMTPImageDpThumbnailCreator& ThumbnailManager() const; |
60 CRepository& Repository() const; |
62 CRepository& Repository() const; |
61 |
63 |
62 TMTPFormatCode FindFormatL(const TDesC& aExtension); |
64 TMTPFormatCode FindFormat(const TDesC& aExtension); |
|
65 const TDesC& FindMimeType(const TDesC& aExtension); |
63 TBool GetCacheParentHandle(const TDesC& aParentPath, TUint32& aParentHandle); |
66 TBool GetCacheParentHandle(const TDesC& aParentPath, TUint32& aParentHandle); |
64 void SetCacheParentHandle(const TDesC& aParentPath, TUint32 aParentHandle); |
67 void SetCacheParentHandle(const TDesC& aParentPath, TUint32 aParentHandle); |
65 void AppendDeleteObjectsArrayL(const TDesC& aSuid); |
68 void AppendDeleteObjectsArrayL(const TDesC& aSuid); |
66 void HandleDeleteObjectsArray(); |
69 void HandleDeleteObjectsArray(); |
|
70 void IncreaseNewPictures(TInt aCount); |
|
71 void DecreaseNewPictures(TInt aCount); |
67 |
72 |
68 public: // From CMTPDataProviderPlugin |
73 public: // From CMTPDataProviderPlugin |
69 void Cancel(); |
74 void Cancel(); |
70 void ProcessEventL(const TMTPTypeEvent& aEvent, MMTPConnection& aConnection); |
75 void ProcessEventL(const TMTPTypeEvent& aEvent, MMTPConnection& aConnection); |
71 void ProcessNotificationL(TMTPNotification aNotification, const TAny* aParams); |
76 void ProcessNotificationL(TMTPNotification aNotification, const TAny* aParams); |
107 CMTPImageDpObjectPropertyMgr* iPropertyMgr; |
112 CMTPImageDpObjectPropertyMgr* iPropertyMgr; |
108 CMTPImageDpThumbnailCreator* iThumbnailManager; |
113 CMTPImageDpThumbnailCreator* iThumbnailManager; |
109 CMTPImageDpMdeObserver* iMdeObserver; |
114 CMTPImageDpMdeObserver* iMdeObserver; |
110 CRepository* iRepository; |
115 CRepository* iRepository; |
111 CMTPImageDpRenameObject* iRenameObject; |
116 CMTPImageDpRenameObject* iRenameObject; |
|
117 CMTPImageDpNewPicturesNotifier* iNewPicNotifier; |
112 |
118 |
113 /** |
119 /** |
114 The active request processors table. |
120 The active request processors table. |
115 */ |
121 */ |
116 RPointerArray<MMTPRequestProcessor> iActiveProcessors; |
122 RPointerArray<MMTPRequestProcessor> iActiveProcessors; |
117 |
123 |
118 /** |
124 /** |
119 * contain the image mapping of extenstion to formatcode |
125 * contain the mapping image'extension to formatcode |
120 */ |
126 */ |
121 RHashMap<TBuf<KMaxExtNameLength>, TMTPFormatCode> iFormatMappings; |
127 RHashMap<TBuf<KMaxExtNameLength>, TMTPFormatCode> iFormatMappings; |
122 |
128 |
|
129 /** |
|
130 * contain the mapping image's extension to mime type |
|
131 */ |
|
132 RHashMap<TBuf<KMaxExtNameLength>, TBuf<KMaxMimeNameLength> > iMimeMappings; |
|
133 |
123 SMTPImageDpParentCache iParentCache; |
134 SMTPImageDpParentCache iParentCache; |
124 |
|
125 TUint iPrePictures; |
|
126 |
135 |
127 TInt iActiveProcessor; |
136 TInt iActiveProcessor; |
128 TBool iActiveProcessorRemoved; |
137 TBool iActiveProcessorRemoved; |
129 TBool iEnumerated; |
138 TBool iEnumerated; |
130 |
139 |