home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / OTL-MC7.DMS / in.adf / classes.lha / Classes / DOS / Notify.h < prev   
Encoding:
C/C++ Source or Header  |  1995-01-31  |  813 b   |  43 lines

  1. #ifndef CPP_DOS_NOTIFY_H
  2. #define CPP_DOS_NOTIFY_H
  3.  
  4. // Datei- und Verzeichnisnotifikation
  5. //
  6. // Autor: Jochen Becher
  7. //
  8. // Historie:
  9. // Version 1.0 am 18. Februar 94
  10.  
  11. #ifndef DOS_NOTIFY_H
  12. #include <dos/notify.h>
  13. #endif
  14.  
  15. #ifndef EXEC_TASKS_H
  16. #include <exec/tasks.h>
  17. #endif
  18.  
  19. #ifndef CPP_EXEC_PORTS_H
  20. #include <classes/exec/ports.h>
  21. #endif
  22.  
  23. class NotifyC {
  24. public:
  25.     NotifyC();
  26.     NotifyC(const NotifyC &);
  27.     ~NotifyC();
  28.     NotifyC &operator= (const NotifyC &);
  29.     BOOL isMonitoring() const { return outstanding; };
  30.     BOOL start(STRPTR name, PortC &, APTR userData = NULL,
  31.         BOOL wait = TRUE, BOOL initial = TRUE);
  32.     BOOL start(STRPTR name, struct Task *, UBYTE signal,
  33.         APTR userData = NULL, BOOL initial = TRUE);
  34.     BOOL restart();
  35.     VOID end();
  36. private:
  37.     struct NotifyRequest nreq;
  38.     BOOL inited;
  39.     BOOL outstanding;
  40. };
  41.  
  42. #endif
  43.