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

  1. /*
  2.     File:        DispMod.h
  3.  
  4.     Contains:    Abstract class XMPDispatchModule
  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.         <11>      2/9/94    NP        Tiger Team cleanup.
  13.         <10>      2/7/94    NP        XMPAbsDispatcher
  14.          <9>     1/21/94    RR        Restored Dispatch() signature
  15.          <8>     1/15/94    RR        WinState.h -> WinStat.h, Dispatch.h ->
  16.                                     Disptch.h
  17.          <7>     1/11/94    Té        Init... changes
  18.          <6>    12/20/93    RR        New init strategy
  19.          <5>     12/8/93    RR        Update forward declaration. XMPMethod ->
  20.                                     XMPVMethod
  21.          <4>     12/2/93    RR        Use new eventType definition
  22.          <3>      8/9/93    NP        Added class id string.
  23.          <2>     7/21/93    NP        Added a virtual keyword (temporary for
  24.                                     ASLM).
  25.          <1>    12/18/92    RCR        Moved from Disptch.h
  26.  
  27.     To Do:
  28. */
  29.  
  30. #ifndef _DISPMOD_
  31. #define _DISPMOD_
  32.  
  33. #ifndef _XMPTYPES_
  34. #include "XMPTypes.h"
  35. #endif
  36.  
  37. //=====================================================================================
  38. // Classes defined in this interface
  39. //=====================================================================================
  40.  
  41. class XMPDispatchModule;
  42.  
  43. //=====================================================================================
  44. // Classes used by this interface
  45. //=====================================================================================
  46.  
  47. class XMPSession;
  48.  
  49. //=====================================================================================
  50. // XMPDispatchModule
  51. //=====================================================================================
  52.  
  53. #define kXMPDispatchModuleID "appl:xmpdispatchmodule$class,1.0.0"
  54.  
  55. class XMPDispatchModule
  56. {
  57. public:
  58.         
  59.     XMPDispatchModule();
  60.     
  61.     virtual ~XMPDispatchModule();
  62.     
  63.     XMPNVMethod    void InitDispatchModule(XMPSession* session);
  64.     
  65.     XMPVMethod XMPBoolean Dispatch(XMPEventData event)
  66.         = 0;
  67.     
  68. protected:
  69.  
  70.     XMPSession* fSession; // Access to globals
  71.     XMPBoolean  fInitialized; // Used to catch multiple initializes
  72.     
  73. };
  74.  
  75. #endif // _DISPMOD_
  76.