mtpdataproviders/mtpimagedp/inc/cmtpimagedp.h
branchRCL_3
changeset 6 ef55b168cedb
parent 5 3673b591050c
child 18 453dfc402455
equal deleted inserted replaced
5:3673b591050c 6:ef55b168cedb
    61     CMTPImageDpThumbnailCreator&  ThumbnailManager() const;
    61     CMTPImageDpThumbnailCreator&  ThumbnailManager() const;
    62     CRepository& Repository() const;
    62     CRepository& Repository() const;
    63     
    63     
    64     TMTPFormatCode FindFormat(const TDesC& aExtension);
    64     TMTPFormatCode FindFormat(const TDesC& aExtension);
    65     const TDesC& FindMimeType(const TDesC& aExtension);
    65     const TDesC& FindMimeType(const TDesC& aExtension);
    66     TBool GetCacheParentHandle(const TDesC& aParentPath, TUint32& aParentHandle);
       
    67     void  SetCacheParentHandle(const TDesC& aParentPath, TUint32 aParentHandle);
       
    68     void AppendDeleteObjectsArrayL(const TDesC& aSuid);
    66     void AppendDeleteObjectsArrayL(const TDesC& aSuid);
    69     void HandleDeleteObjectsArray();
    67     void HandleDeleteObjectsArray();
    70     void IncreaseNewPictures(TInt aCount);
    68     void IncreaseNewPictures(TInt aCount);
    71     void DecreaseNewPictures(TInt aCount);
    69     void DecreaseNewPictures(TInt aCount);
    72     void HandleMdeSessionCompleteL(TInt aError);
    70     void HandleMdeSessionCompleteL(TInt aError);
    93     TInt LocateRequestProcessorL(const TMTPTypeEvent& aEvent, MMTPConnection& aConnection);    
    91     TInt LocateRequestProcessorL(const TMTPTypeEvent& aEvent, MMTPConnection& aConnection);    
    94     void SessionClosedL(const TMTPNotificationParamsSessionChange& aSession);
    92     void SessionClosedL(const TMTPNotificationParamsSessionChange& aSession);
    95     void SessionOpenedL(const TMTPNotificationParamsSessionChange& aSession);
    93     void SessionOpenedL(const TMTPNotificationParamsSessionChange& aSession);
    96     void RenameObjectL(const TMTPNotificationParamsHandle& aParam);
    94     void RenameObjectL(const TMTPNotificationParamsHandle& aParam);
    97     
    95     
    98     TUint QueryImageObjectCountL();
    96     TUint QueryImageObjectCountL();    
    99     
       
   100 private:
       
   101     struct SMTPImageDpParentCache
       
   102         {        
       
   103         TPath   iPath;
       
   104         TUint32 iHandle;
       
   105         };
       
   106     
    97     
   107 private:
    98 private:
   108 	/**
    99 	/**
   109     FLOGGER debug trace member variable.
   100     FLOGGER debug trace member variable.
   110     */
   101     */
   128     RHashMap<TBuf<KMaxExtNameLength>, TMTPFormatCode> iFormatMappings;
   119     RHashMap<TBuf<KMaxExtNameLength>, TMTPFormatCode> iFormatMappings;
   129     
   120     
   130     /**
   121     /**
   131      * contain the mapping image's extension to mime type
   122      * contain the mapping image's extension to mime type
   132      */
   123      */
   133     RHashMap<TBuf<KMaxExtNameLength>, TBuf<KMaxMimeNameLength> > iMimeMappings;    
   124     RHashMap<TBuf<KMaxExtNameLength>, TBuf<KMaxMimeNameLength> > iMimeMappings;
   134     
       
   135     SMTPImageDpParentCache  iParentCache;
       
   136     
   125     
   137     TInt                    iActiveProcessor;
   126     TInt                    iActiveProcessor;
   138     TBool                   iActiveProcessorRemoved;    
   127     TBool                   iActiveProcessorRemoved;    
   139     TBool                   iEnumerated;
   128     TBool                   iEnumerated;
   140     TBool                   iEnumerationNotified;
   129     TBool                   iEnumerationNotified;