home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / OTL-MC7.DMS / in.adf / classes.lha / Classes / Utility / hooks.h next >
Encoding:
C/C++ Source or Header  |  1995-01-31  |  518 b   |  27 lines

  1. #ifndef CPP_UTILITY_HOOKS_H
  2. #define CPP_UTILITY_HOOKS_H
  3.  
  4. // Callback Hook Klasse
  5. //
  6. // Autor: Jochen Becher
  7. //
  8. // Historie:
  9. // Version 1.0 am 25. Juni 94
  10.  
  11. #ifndef UTILITY_HOOKS_H
  12. #include <utility/hooks.h>
  13. #endif
  14.  
  15. class HookC : public Hook {
  16. public:
  17.     HookC(APTR data = NULL);
  18.     HookC &operator = (const HookC &);
  19.     virtual ULONG hook(APTR object, APTR paramPkt);
  20.     ULONG call(APTR object, APTR paramPkt);
  21. private:
  22.     ULONG hookEntry(register __a0 struct Hook *h,
  23.         register __a2 APTR o, register __a1 APTR msg);
  24. };
  25.  
  26. #endif
  27.