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

  1. /*
  2.     File:        Disptch.h
  3.  
  4.     Contains:    Interface to XMPAbsDispatcher class.
  5.  
  6.     Written by:    Richard Rodseth
  7.  
  8.     Copyright:    ⌐ 1992-94 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <7>      2/9/94    NP        Tiger Team cleanup.
  13.          <6>      2/7/94    NP        XMPAbsDispatcher
  14.          <5>      2/7/94    NP        Tiger Team doings.
  15.          <4>      2/1/94    RR        Added AddMonitor and RemoveMonitor
  16.          <3>     1/26/94    RR        Removed Idle methods (Mac only)
  17.          <2>     1/21/94    RR        Misc. cleanup
  18.          <1>     1/15/94    RR        first checked in
  19.         <12>    12/20/93    RR        Idle methods take a part and frame, renamed
  20.                                     RegisterIdleFrame etc. -> RegisterIdle
  21.         <11>     12/8/93    RR        One class per file. XMPMethod -> XMPVMethod
  22.         <10>     12/2/93    RR        Use new eventType definition
  23.          <9>    11/19/93    RR        Removed event contstants for menu and
  24.                                     mousedown in border (See PlfTypes.h)
  25.          <8>    11/12/93    JBS        use Facets
  26.          <6>      6/26/93    RCR        Reorganize for abstract base class 
  27.          <5>      6/18/93    RCR        Added Yield 
  28.          <4>      4/29/93    RCR        Rename RemoveIdleFrame -> UnregisterIdleFrame 
  29.          <3>      4/29/93    RCR        Rename Includes 
  30.          <2>     4/23/93    RCR        Added Initialize and Purge
  31.          <1>    12/18/92    RCR        first checked in
  32.  
  33.     To Do:
  34. */
  35.  
  36. #ifndef _DISPTCH_
  37. #define _DISPTCH_
  38.  
  39. #ifndef _XMPOBJ_
  40. #include "XMPObj.h"
  41. #endif
  42.  
  43. #ifndef _XMPTYPES_
  44. #include "XMPTypes.h"
  45. #endif
  46.  
  47. //=====================================================================================
  48. // Classes defined in this interface
  49. //=====================================================================================
  50.  
  51. class XMPDispatcher;
  52.  
  53. //=====================================================================================
  54. // Classes used by this interface
  55. //=====================================================================================
  56.  
  57. class XMPDispatchModule;
  58. class XMPFacet;
  59. class XMPFrame;
  60. class XMPPart;
  61. class XMPSession;
  62.  
  63. //=====================================================================================
  64. // XMPAbsDispatcher
  65. //=====================================================================================
  66.  
  67. class XMPAbsDispatcher : public XMPObject
  68. {
  69. public:
  70.     
  71.     XMPAbsDispatcher() {}
  72.     
  73.     XMPVMethod ~XMPAbsDispatcher() {}
  74.     
  75.     XMPVMethod    XMPSize    Purge(XMPSize size)        
  76.         = 0; 
  77.  
  78.     XMPVMethod void AddDispatchModule(XMPEventType eventType, 
  79.                                         XMPDispatchModule* dispatchModule)
  80.         = 0; 
  81.     
  82.     XMPVMethod void RemoveDispatchModule(XMPEventType eventType)
  83.         = 0; 
  84.     
  85.     XMPMethod void AddMonitor(XMPEventType eventType,XMPDispatchModule* dispatchModule)
  86.         = 0;
  87.     
  88.     XMPVMethod void RemoveMonitor(XMPEventType eventType, XMPDispatchModule* dispatchModule)
  89.         = 0; 
  90.     
  91.     XMPVMethod XMPBoolean Dispatch(XMPEventData eventData)
  92.         = 0; 
  93.     
  94.     XMPVMethod    void TerminateEventLoop()
  95.         = 0; 
  96.     
  97.     XMPVMethod XMPBoolean ShouldTerminateEventLoop()
  98.         = 0; 
  99. };
  100.  
  101. #ifdef PLATFORM_MACINTOSH
  102. #ifndef _DISPATCHM_
  103. #include "DisptchM.h"
  104. #endif
  105. #endif
  106.  
  107. #endif // _DISPTCH_
  108.