home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWODMisc / Include / SLSUSink.idl < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.4 KB  |  111 lines  |  [TEXT/MPS ]

  1. //
  2. //    File:                SLSUSink.h
  3. //    Release Version:    $ ODF 1 $
  4. //
  5. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  6. //
  7.  
  8. #ifndef SLSUSINK_IDL
  9. #define SLSUSINK_IDL
  10.  
  11. // ----- Our Includes -----
  12.  
  13. #ifndef FWENVDEF_IDL
  14. #include "FWEnvDef.idl"
  15. #endif
  16.  
  17. #ifndef SLRANSIN_IDL
  18. #include "SLRanSin.idl"
  19. #endif
  20.  
  21. #include <somobj.idl>
  22. #include <somcls.idl>
  23.  
  24. // ----- OpenDoc Includes -----
  25.  
  26. #include <StorageU.idl>
  27. #include <SUView.idl>
  28.  
  29.  
  30. //==============================================================================
  31. // Classes defined in this interface
  32. //==============================================================================
  33.  
  34. interface   FW_OStorageUnitSink;
  35.  
  36.  
  37. //==============================================================================
  38. // Classes used by this interface
  39. //==============================================================================
  40.  
  41. interface   FW_ORandomAccessSink;
  42. interface    ODStorageUnitView;
  43. interface    ODStorageUnit;
  44.  
  45.  
  46. //==============================================================================
  47. // Types used by this interface
  48. //==============================================================================
  49.  
  50. typedef somToken FW_CPrivSUSinkRep;
  51.  
  52.  
  53. //========================================================================================
  54. // FW_OStorageUnitSink
  55. //========================================================================================
  56.  
  57. interface FW_OStorageUnitSink : FW_ORandomAccessSink
  58. {
  59.     void InitFromStorageUnitView(in ODStorageUnitView storageUnitView);
  60.         // Create a sink attached to the storage unit view.
  61.         // The sink does not assume ownership of the view.
  62.          
  63.     void InitFromStorageUnitAndProperty(in ODStorageUnit storageUnit, 
  64.                                         in ODPropertyName propertyName, 
  65.                                         in ODValueType valueType);
  66.         // Create a sink attached to the give (storageUnit, propertyName, valueType).
  67.     
  68.     ODStorageUnitView GetStorageUnitView();
  69.  
  70. #ifdef __SOMIDL__
  71.     implementation
  72.     {
  73.         functionprefix = "FW_OStorageUnitSink__";
  74.  
  75.         override:
  76.             somInit,
  77.             somUninit,
  78.  
  79.             Read,
  80.  
  81.             GetWritableBytes,
  82.             Write,
  83.  
  84.             GetLength,
  85.             SetLength,
  86.             GetPosition,
  87.             SetPosition;
  88.  
  89.         releaseorder:
  90.             InitFromStorageUnitView,
  91.             InitFromStorageUnitAndProperty,
  92.             GetStorageUnitView;
  93.  
  94.         majorversion = 1;
  95.         minorversion = 0;
  96.  
  97.         passthru C_xh =
  98.             "";
  99.  
  100.         passthru C_xih =
  101.             "";
  102.  
  103. #ifdef __PRIVATE__
  104.         FW_CPrivSUSinkRep* fRep;
  105. #endif
  106.     };
  107. #endif
  108. };
  109.  
  110. #endif
  111.