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

  1. /*
  2.     File:        SysSessM.h
  3.  
  4.     Contains:    XMPMacSystemSession class definition
  5.  
  6.     Written by:    Vincent Lo
  7.  
  8.     Copyright:    ⌐ 1993-4 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <1>      2/3/94    CG        first checked in
  13.     To Do:
  14.  
  15. */
  16.  
  17. #ifndef _BASESESS_
  18. #define _BASESESS_
  19.  
  20. #ifndef _PLFMDEF_
  21. #include "PlfmDef.h"
  22. #endif
  23.  
  24. #ifndef _XMPOBJ_
  25. #include "XMPObj.h"
  26. #endif
  27.  
  28. //==============================================================================
  29. // Theory of Operation
  30. //==============================================================================
  31.  
  32. //==============================================================================
  33. // Classes defined in this interface
  34. //==============================================================================
  35.  
  36. class    XMPBaseSession;
  37.  
  38. //==============================================================================
  39. // Classes used by this interface
  40. //==============================================================================
  41.  
  42. class    XMPStorageSystem;
  43. class    XMPNameSpaceManager;
  44. class    XMPBinding;
  45.  
  46. //==============================================================================
  47. // XMPBaseSession
  48. //==============================================================================
  49.  
  50. #define kXMPBaseSessionID "appl:XMPBaseSession$class,1.0.0"
  51.  
  52. class XMPBaseSession : public XMPObject
  53. {
  54.   public:
  55.  
  56.     XMPVMethod XMPStorageSystem*        GetStorageSystem();
  57.  
  58.     XMPVMethod void                        Close();
  59.  
  60.     XMPVMethod XMPSize                    Purge(XMPSize size);
  61.  
  62.     XMPVMethod XMPNameSpaceManager*        GetNameSpaceManager();
  63.  
  64.     XMPVMethod XMPBinding*                GetBinding()
  65.         = 0 ;
  66.  
  67.   public: // Private by convention
  68.  
  69.     XMPBaseSession();
  70.     XMPNVMethod void    InitSession();
  71.     XMPVMethod ~XMPBaseSession();
  72.  
  73.   protected:
  74.  
  75.     XMPStorageSystem*        fStorage;
  76.     XMPNameSpaceManager*    fNameSpaceManager;
  77. };
  78.  
  79.  
  80. #endif // _BASESESS_
  81.