home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Sessions / Completions / Completions Source / Files / FileCloser.h < prev    next >
Encoding:
Text File  |  1998-06-15  |  394 b   |  27 lines  |  [TEXT/CWIE]

  1. // FileCloser.h
  2.  
  3. #ifndef FileCloser_h
  4. #define FileCloser_h
  5.  
  6. #ifndef ParamBlockTask_h
  7. #include "ParamBlockTask.h"
  8. #endif
  9.  
  10. class FileReadingPath;
  11.  
  12. class FileCloser: private ParamBlockTask
  13.   {
  14.     private:
  15.         FileReadingPath *path;
  16.         
  17.         virtual void Launch();
  18.         virtual void Kill();
  19.         
  20.     public:
  21.         Task *operator()( FileReadingPath& );
  22.  
  23.         OSErr Error() const        { return ioParam.ioResult; }
  24.   };
  25.  
  26. #endif
  27.