home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pc3270sa.zip / ecllistn.hpp < prev    next >
C/C++ Source or Header  |  2002-02-28  |  2KB  |  51 lines

  1. //-------------------------------------------------------------------------------
  2. // Module:  ecllistn.hpp
  3. //-------------------------------------------------------------------------------
  4. //
  5. // Description:  ECL listener classes header file.  
  6. //
  7. //-------------------------------------------------------------------------------
  8. // Copyright Notice: IBM Personal Communication/3270 Version 4.3
  9. //                   (C) COPYRIGHT IBM CORP. 1989,1998 - PROGRAM PROPERTY
  10. //                   OF IBM ALL RIGHTS RESERVED
  11. //-------------------------------------------------------------------------------
  12.  
  13. #include "eclall.hpp"
  14. #ifndef _ECLLISTENER_HPP_
  15. #define _ECLLISTENER_HPP_
  16.  
  17.  
  18. //-------------------------------------------------------------------------------
  19. // Base class for all ECL listener classes.
  20. //-------------------------------------------------------------------------------
  21. class DllExport ECLListener: public ECLBase
  22. {
  23.  
  24.   public:
  25.     ECLListener();
  26.     ~ECLListener();
  27.  
  28. };
  29.  
  30. //-------------------------------------------------------------------------------
  31. // PS Update listener class (implemented by user application).  User application
  32. // must implement all functions.  Register an object of this class with the
  33. // ECLPS object to be notified of PS updates.
  34. //-------------------------------------------------------------------------------
  35. class DllExport ECLPSListener: public ECLListener
  36. {
  37.   public:
  38.     ECLPSListener();
  39.     ~ECLPSListener();
  40.  
  41.     // Pure virtual functions all derived classes must implement
  42.     virtual void PSNotifyEvent(ECLPSEvent *Event) = 0;
  43.     virtual void PSNotifyError(ECLPS *Ps, ECLErr ErrObject) = 0;
  44.     virtual void PSNotifyStop(ECLPS *Ps, int Reason) = 0;
  45.  
  46. };
  47.  
  48.  
  49. #endif // _ELCLISTENER_HPP_
  50.  
  51.