home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dokpr1.zip / interest.h < prev    next >
C/C++ Source or Header  |  1995-07-15  |  2KB  |  51 lines

  1. /**************************************************************************
  2.  *                                                                        *
  3.  *                                                                        *
  4.  *          This code is copyright (c) 1994                               *
  5.  *                     Athena Design, Inc.                                *
  6.  *                                                                        *
  7.  *                                                                        *
  8.  *                ALL RIGHTS RESERVED                                     *
  9.  *                                                                        *
  10.  *                                                                        *
  11.  *                                                                        *
  12.  *                                                                        *
  13.  *                                                                        *
  14.  **************************************************************************/
  15.  
  16. /*
  17.     This is an abstract class that allows an object to register
  18.     "interest" in another object.
  19.     4-7-94 dpp
  20. */
  21.  
  22.  
  23. #ifndef _MH_interest
  24.  
  25. #define _MH_interest
  26.  
  27. class MChange;
  28.  
  29. #include "object.h"
  30.  
  31. class MInterest : public MObject
  32. {
  33.     public:
  34.     MInterest();
  35.     virtual ~MInterest();
  36.  
  37.     // this method is thread-safe
  38.     virtual void redisplay(MChange *) {}; // = 0;
  39.     virtual void changedSize(MChange *) {}; // = 0;
  40.     virtual void formatsChanged(MChange *) {}; // = 0;
  41.     virtual void contentsChanged(MChange *) {}; // = 0;
  42.     virtual void resetView(MChange *) {}; // = 0;
  43.  
  44.     private:
  45.     int n;
  46. };
  47.  
  48.  
  49. // ifndef _MH_interest
  50. #endif
  51.