harvester/monitorplugins/mdsfileserverplugin/inc/mdsfileserverplugin.h
changeset 28 c461c7fa72c2
parent 23 33ae025ac1e8
equal deleted inserted replaced
25:8e4539ab1889 28:c461c7fa72c2
   109         /**
   109         /**
   110          * Check if path/file hass hidden or system attribute.
   110          * Check if path/file hass hidden or system attribute.
   111          * 
   111          * 
   112          * @param aFilename  Filename to check.
   112          * @param aFilename  Filename to check.
   113          * @param aIsDirectory ETrue if filename points to directory.
   113          * @param aIsDirectory ETrue if filename points to directory.
       
   114          * @param aFsPlugin Reference to Fileserver Plugin.
       
   115          * @param aDelete Indicates if file deletion is in question.
   114          * 
   116          * 
   115          * @return EFalse, if path or file has a hidden or system attribute set.
   117          * @return EFalse, if path or file has a hidden or system attribute set.
   116          */
   118          */
   117         TBool CheckAttribs( const TDesC& aFilename, TBool& aIsDirectory ) const;
   119         TBool CheckAttribs( const TDesC& aFilename, 
       
   120                                         TBool& aIsDirectory, 
       
   121                                         RFsPlugin& aFsPlugin,
       
   122                                         TBool aDelete) const;
   118 
   123 
   119         /**
   124         /**
   120          * Check if directory is named correctly and ends with backslash.
   125          * Check if directory is named correctly and ends with backslash.
   121          * 
   126          * 
   122          * @param aDirName  Directory name to check.
   127          * @param aDirName  Directory name to check.
   125 		
   130 		
   126         /**
   131         /**
   127          * Check if harvester (main observer) is alive
   132          * Check if harvester (main observer) is alive
   128          */
   133          */
   129         TBool CheckHarvesterStatus();
   134         TBool CheckHarvesterStatus();
       
   135 
       
   136         /**
       
   137          * Checks file entry path and attributes for validity
       
   138          * 
       
   139          * @param aFilename  Filename to check.
       
   140          * @param aIsDirectory ETrue if filename points to directory.
       
   141          * @param aRequest Reference to request from file server.
       
   142          * @param aDelete Indicates if file deletion is in question.
       
   143          * 
       
   144          * @return EFalse if file is not to be handled
       
   145          */
       
   146         TBool CheckIfValidFile( const TDesC& aFilename, 
       
   147                 TBool& aIsDirectory, TFsPluginRequest& aRequest, TBool aDelete );
   130         
   148         
   131 #ifdef _DEBUG_EVENTS
   149 #ifdef _DEBUG_EVENTS
   132         void RegisterDebugEventsL();
   150         void RegisterDebugEventsL();
   133         void UnregisterDebugEventsL();
   151         void UnregisterDebugEventsL();
   134         void PrintDebugEvents( TInt aFunction );
   152         void PrintDebugEvents( TInt aFunction );
   149          * A queue of file server events.
   167          * A queue of file server events.
   150          */
   168          */
   151         RPointerArray<CMdsFSPQueueItem> iQueue;
   169         RPointerArray<CMdsFSPQueueItem> iQueue;
   152 
   170 
   153         RPointerArray<TDesC> iIgnorePaths;
   171         RPointerArray<TDesC> iIgnorePaths;
   154 
   172         
   155         /**
       
   156          * File system client session.
       
   157          */
       
   158         RFs iFsSession;
       
   159 
       
   160         RPointerArray<TDesC> iCreatedFiles;
   173         RPointerArray<TDesC> iCreatedFiles;
   161         RPointerArray<TDesC> iModifiedFiles;
   174         RPointerArray<TDesC> iModifiedFiles;
   162         
   175         
   163         TUint32 iFormatOldMediaId;
   176         TUint32 iFormatOldMediaId;
   164         TInt iFormatDriveNumber;
   177         TInt iFormatDriveNumber;