home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / ibmcli / ikeyhdr.hp_ / IKEYHDR.HPP
Encoding:
C/C++ Source or Header  |  1992-10-26  |  3.2 KB  |  64 lines

  1. #ifndef _IKEYHDR_
  2. #define _IKEYHDR_
  3. /*******************************************************************************
  4. * FILE NAME: ikeyhdr.hpp                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class(es):                                              *
  8. *     IKeyboardHandler - the keyboard event handler class                      *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   Licensed Materials - Property of IBM                                       *
  12. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  13. *   All Rights Reserved                                                        *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *$Log:   R:/IBMCLASS/IBASEAPP/VCS/IKEYHDR.HPV  $                                                                         *
  18. // 
  19. //    Rev 1.22   25 Oct 1992 18:00:24   nunn
  20. // Brad Broyles changes for external beta
  21.  
  22.       Rev 1.1   08 Aug 1992 12:00:00   KKL
  23.    Design/code
  24.       Rev 1.2   22 Oct 1992 12:00:00   WBB
  25.    Amend to match skeleton.hpp
  26. *******************************************************************************/
  27.  
  28. // Forward declarations for other classes:
  29. class IKeyboardHandler;
  30. #if !defined( _IHANDLER_ ) && !defined( I_NO_RELATED_HPP )
  31.  #include <ihandler.hpp>
  32. #endif
  33. #if !defined( _IKEYEVT_ ) && !defined( I_NO_RELATED_HPP )
  34.  #include <ikeyevt.hpp>
  35. #endif
  36.  
  37. class IKeyboardHandler : public IHandler {
  38. /*******************************************************************************
  39. * The IKeyboardHandler class handles keyboard events                           *
  40. *******************************************************************************/
  41. typedef IHandler Inherited;
  42. public:
  43. /*------------------------ CONSTRUCTORS/DESTRUCTORS ----------------------------
  44. | There is one way to construct instances of this class:                       |
  45. |   1. default                                                                 |
  46. ------------------------------------------------------------------------------*/
  47.   IKeyboardHandler() {;}
  48.  
  49. /*-------------------------------- FUNCTIONS -----------------------------------
  50. | dispatchHandlerEvent - dispatch command functions for this handler           |
  51. ------------------------------------------------------------------------------*/
  52. Boolean
  53.   dispatchHandlerEvent(IEvent& evt);
  54.  
  55. protected:
  56. /*----------------------------- IMPLEMENTATION ---------------------------------
  57. | keyPress - subclasses implement this function to handle key presses          |
  58. ------------------------------------------------------------------------------*/
  59. virtual Boolean
  60.   keyPress(IKeyboardEvent& keyevt) = 0;
  61. }; // IKeyboardHandler
  62.  
  63. #endif /* _IKEYHDR_ */
  64.