home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / bento / headers / focusset.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-02  |  1.8 KB  |  81 lines

  1. /*
  2.     File:        FocusSet.h
  3.  
  4.     Contains:    Interface to XMPFocusSet class
  5.  
  6.     Written by:    Richard Rodseth
  7.  
  8.     Copyright:    ⌐ 1993-94 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <6>      2/9/94    NP        Tiger Team cleanup.
  13.          <5>      2/7/94    NP        Tiger Team doings.
  14.          <4>     1/10/94    RR        Added CreateIterator
  15.          <3>    12/23/93    RR        Added InitFocusSet
  16.          <2>    12/22/93    RR        XMPMethod usage
  17.          <1>     12/8/93    RR        first checked in
  18.  
  19.     To Do:
  20. */
  21.  
  22. #ifndef _FOCUSSET_
  23. #define _FOCUSSET_
  24.  
  25. #ifndef _XMPOBJ_
  26. #include "XMPObj.h"
  27. #endif
  28.  
  29. #ifndef _XMPTYPES_
  30. #include "XMPTypes.h"
  31. #endif
  32.  
  33.  
  34. //=====================================================================================
  35. // Classes defined in this interface
  36. //=====================================================================================
  37.  
  38. class XMPFocusSet;                
  39.  
  40. //=====================================================================================
  41. // Classes used by this interface
  42. //=====================================================================================
  43.  
  44. class XMPFocusSetIterator;
  45. class LinkedList;
  46.  
  47. //=====================================================================================
  48. // XMPFocusSet
  49. //=====================================================================================
  50.  
  51. #define kXMPFocusSetID "appl:xmpfocusset$class,1.0.0"
  52.  
  53. class XMPFocusSet
  54. {
  55.   public:
  56.  
  57.     XMPFocusSet();
  58.         
  59.     virtual ~XMPFocusSet();
  60.     
  61.     XMPNVMethod void InitFocusSet();
  62.     
  63.     XMPMethod void Add(XMPTypeToken focus);
  64.     
  65.     XMPMethod void Remove(XMPTypeToken focus);
  66.  
  67.     XMPMethod XMPBoolean Contains(XMPTypeToken focus);
  68.     
  69.     XMPMethod XMPFocusSetIterator* CreateIterator();
  70.     
  71.   public: // to XMPFocusSetIterator only
  72.  
  73.     LinkedList*    GetImplementation();
  74.  
  75.   private:
  76.     
  77.     LinkedList* fImplementation;
  78. };
  79.  
  80. #endif // _FOCUSSET_
  81.