home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Libraries / Aidan's Class Libraries / Source / Headers / CLActionHandler.h next >
Encoding:
Text File  |  1997-05-31  |  499 b   |  23 lines  |  [TEXT/CWIE]

  1. //Copyright (c) 1997 Aidan Cully
  2. //All Rights reserved
  3.  
  4. #ifndef __ACTIONHANDLER_H
  5. #define __ACTIONHANDLER_H
  6.  
  7. #include <Types.h>
  8.  
  9. class MActionHandler {
  10. protected:
  11.     Boolean mActive;
  12.     MActionHandler *mSuperHandler;
  13.     virtual SInt8 MakeInactive();
  14.     static void OpenDeskAcc( UInt32 action );
  15. public:
  16.     static MActionHandler *sCurHandler;
  17.     MActionHandler( MActionHandler* );
  18.     virtual Boolean SetSuperHandler( MActionHandler* );
  19.     virtual SInt8 HandleAction( UInt32 );
  20.     virtual SInt8 MakeActive();
  21. };
  22.  
  23. #endif