home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / visbuild / calculat / cppwv13 / ikeypad.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-16  |  2.7 KB  |  75 lines

  1. #ifndef _IKEYPAD_
  2. #define _IKEYPAD_
  3. /******************************************************************************
  4. * .FILE:        ikeypad.hpp                                                   *
  5. *                                                                             *
  6. * .DESCRIPTION: Header file for the class, IKeypad                            *
  7. *                                                                             *
  8. * .CLASSES:     IKeypad                                                       *
  9. *                                                                             *
  10. * .COPYRIGHT:                                                                 *
  11. *    Licensed Material - Program-Property of IBM                              *
  12. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  13. *                                                                             *
  14. * .DISCLAIMER:                                                                *
  15. *   The following [enclosed] code is sample code created by IBM               *
  16. *   Corporation.  This sample code is not part of any standard IBM product    *
  17. *   and is provided to you solely for the purpose of assisting you in the     *
  18. *   development of your applications.  The code is provided 'AS IS',          *
  19. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  20. *   arising out of your use of the sample code, even if they have been        *
  21. *   advised of the possibility of such damages.                               *
  22. *                                                                             *
  23. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  24. *                                                                             *
  25. ******************************************************************************/
  26.  
  27. #include <istring.hpp>
  28. #include <istdntfy.hpp>
  29. #include "ivbsamps.h"
  30.  
  31. //**************************************************************************
  32. // Class:   IKeypad
  33. //
  34. // Purpose: Describes IKeypad Class.
  35. //   This is a numeric keypad for applications such as the Calculator.
  36. //**************************************************************************
  37.  
  38. class IVBSAMP_IMPORT IKeypad : public IStandardNotifier
  39. {
  40. public:
  41.            IKeypad            ();
  42.   virtual  ~IKeypad ();
  43.  
  44. //
  45. // List of Part Events
  46. //
  47.  
  48. static INotificationId digitId;
  49.  
  50. //
  51. // List of Part Attributes - (query and set members)
  52. //
  53.  
  54. virtual IString
  55.   digit () const;
  56.  
  57. virtual IKeypad&
  58.   setDigit (IString iDigit);
  59.  
  60. //
  61. // List of Part Actions
  62. //
  63.  
  64.  
  65. protected:
  66. //
  67. // List of data members
  68. //
  69.  
  70.   IString dDigit;
  71.  
  72. };
  73.  
  74. #endif
  75.