imagehandlingutilities/thumbnailmanager/thumbnailserver/inc/thumbnailstore.h
changeset 36 c5df59b4ae2d
parent 30 b67379558a75
equal deleted inserted replaced
30:b67379558a75 36:c5df59b4ae2d
   206      *
   206      *
   207      * @since S60 v5.0
   207      * @since S60 v5.0
   208      * @param aFs File server.
   208      * @param aFs File server.
   209      * @param aDrive Drive the store used for
   209      * @param aDrive Drive the store used for
   210      * @param aCenter Pointer to cenrep data handler
   210      * @param aCenter Pointer to cenrep data handler
       
   211 	 * @param aReadOnly flag is store write protected
   211      * @return New CThumbnailStore instance.
   212      * @return New CThumbnailStore instance.
   212      */
   213      */
   213     static CThumbnailStore* NewL( RFs& aFs, TInt aDrive, TDesC& aImei, CThumbnailServer* aServer );
   214     static CThumbnailStore* NewL( RFs& aFs, TInt aDrive, TDesC& aImei, CThumbnailServer* aServer, const TBool aReadOnly );
   214 
   215 
   215     /**
   216     /**
   216      * Destructor
   217      * Destructor
   217      *
   218      *
   218      * @since S60 v5.0
   219      * @since S60 v5.0
   356      * @param aPath Path from which thumbnail created
   357      * @param aPath Path from which thumbnail created
   357      * @param aModified current timestampt
   358      * @param aModified current timestampt
   358      * @contains indication whether file modified
   359      * @contains indication whether file modified
   359      */
   360      */
   360     TBool CheckModifiedByPathL( const TDesC& aPath, const TInt64 aModified, TBool& modifiedChanged);
   361     TBool CheckModifiedByPathL( const TDesC& aPath, const TInt64 aModified, TBool& modifiedChanged);
       
   362     
       
   363     /**
       
   364      *  @return TBool is store write protected
       
   365      */
       
   366     TBool IsReadOnly();
   361 
   367 
   362 private:
   368 private:
   363     /**
   369     /**
   364      * C++ default constructor
   370      * C++ default constructor
   365      *
   371      *
   366      * @since S60 v5.0
   372      * @since S60 v5.0
   367      * @param aFs File server.
   373      * @param aFs File server.
   368      * @param aDrive Drive the store used for
   374      * @param aDrive Drive the store used for
       
   375 	 * @param aReadOnly set flag if store is write protected
   369      * @return New CThumbnailStore instance.
   376      * @return New CThumbnailStore instance.
   370      */
   377      */
   371     CThumbnailStore( RFs& aFs, TInt aDrive, TDesC& aImei, CThumbnailServer* aServer);
   378     CThumbnailStore( RFs& aFs, TInt aDrive, TDesC& aImei, CThumbnailServer* aServer, const TBool aReadOnly);
   372 
   379 
   373     /**
   380     /**
   374      * Symbian 2nd phase constructor can leave.
   381      * Symbian 2nd phase constructor can leave.
   375      *
   382      *
   376      * @since S60 v5.0
   383      * @since S60 v5.0
   646     TTime iStartFlush, iStopFlush;
   653     TTime iStartFlush, iStopFlush;
   647 	/**
   654 	/**
   648      * How long previous flush took ms
   655      * How long previous flush took ms
   649      */
   656      */
   650     TInt iPreviousFlushDelay;
   657     TInt iPreviousFlushDelay;
       
   658     
       
   659     /**
       
   660      * is store write protected
       
   661      */
       
   662     TBool iReadOnly;
   651 
   663 
   652 };
   664 };
   653 // End of File
   665 // End of File
   654 
   666 
   655 
   667