home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / kwclass.zip / KSTDHDR.HPP < prev    next >
C/C++ Source or Header  |  1994-04-19  |  2KB  |  60 lines

  1. #ifndef _KSTDHDR_
  2. #define _KSTDHDR_
  3.  
  4. #ifndef _IHDR_
  5.    #include <ihandler.hpp>
  6. #endif
  7.  
  8. #ifndef _IEVENT_
  9.    #include <ievent.hpp>
  10. #endif
  11.  
  12. #ifndef KWCONSTANTS
  13.    #include <kwconst.hpp>
  14. #endif
  15.  
  16. /*-------------------------------------------------
  17.  * Align classes on four byte boundary.
  18.  *-----------------------------------------------*/
  19. #pragma pack(4)
  20.  
  21.  
  22. class _Export KStandardEvent : public IEvent
  23. {
  24.    public:
  25.       KStandardEvent(IEvent const &event) : IEvent(event) {}
  26.       short controlId() { return parameter1().lowNumber(); }
  27. };
  28.  
  29. /*-------------------------------------------------------------
  30.  * Class: KStandardHandler
  31.  *
  32.  * Implementation File: kstdhdr.cpp
  33.  *   
  34.  * Description: 
  35.  *   Event handler for all KASEWORKS standard events, which are
  36.  *   used primarily for communicating between KASE:VIP objects.
  37.  *
  38. ------------------------------------------------------------*/ 
  39. class _Export KStandardHandler : public IHandler
  40. {
  41.    protected:
  42.       virtual Boolean dispatchHandlerEvent(IEvent &evt);
  43.       virtual Boolean setControls(IEvent &evt)      { return false; } 
  44.       virtual Boolean setDefaults(IEvent &evt)      { return false; }
  45.       virtual Boolean getData(IEvent &evt)          { return false; }
  46.       virtual Boolean setData(IEvent &evt)          { return false; }
  47.       virtual Boolean queryControls(IEvent &evt)    { return false; }
  48.       virtual Boolean requiredControls(IEvent &evt) { return false; }
  49.       virtual Boolean validateControls(IEvent &evt) { return false; }
  50.       virtual Boolean actionComplete(IEvent &evt)   { return false; }
  51.       virtual Boolean addDynamic(IEvent& event)     { return false; }
  52. };
  53.  
  54. /*--------------------------------------------------
  55.  * Resume compiler default packing.
  56.  *--------------------------------------------------*/
  57. #pragma pack()
  58.  
  59. #endif
  60.