home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / SUVIEW.IDL < prev    next >
Text File  |  1995-12-13  |  5KB  |  178 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /*                                                                  */
  12. /*                                                                  */
  13. /********************************************************************/
  14.  
  15.  
  16. #ifndef _SUVIEW_
  17. #define _SUVIEW_
  18.  
  19. #ifndef _ODOBJECT_
  20. #include "ODObject.idl"
  21. #endif
  22.  
  23. //==============================================================================
  24. // Classes defined in this interface
  25. //==============================================================================
  26.  
  27. interface   ODStorageUnitView;
  28.  
  29. //==============================================================================
  30. // Classes used by this interface
  31. //==============================================================================
  32. interface  ODStorageUnit;
  33. interface   ODStorageUnitCursor;
  34. interface  ODDraft;
  35. interface  ODStorageUnitRefIterator;
  36. interface  ODPart;
  37.  
  38. //==============================================================================
  39. // ODStorageUnitView
  40. //==============================================================================
  41.  
  42. interface ODStorageUnitView :  ODObject
  43. {
  44.  
  45.   ODStorageUnit  GetStorageUnit();
  46.  
  47.   ODStorageUnitCursor  GetCursor();
  48.  
  49.   ODStorageUnitView   Externalize();  
  50.  
  51.   ODStorageUnitView   Internalize();  
  52.  
  53.   ODID GetID();      
  54.  
  55.   ODStorageUnitName GetName();    
  56.  
  57.   void SetName(in ODStorageUnitName name);
  58.  
  59.   ODStorageUnitView  AddProperty(in ODPropertyName propertyName);      
  60.  
  61.   ODStorageUnitView  AddValue(in ODValueType type);
  62.  
  63.   ODStorageUnitView  Remove();
  64.  
  65.   void CloneInto(in ODDraftKey key,
  66.           in ODStorageUnit destStorageUnit, 
  67.           in ODID scopeID);
  68.  
  69.   ODPropertyName  GetProperty();
  70.  
  71.   ODValueType  GetType();
  72.  
  73.   void      SetType(in ODValueType valueType);
  74.  
  75.   void      SetOffset(in ODULong offset);
  76.  
  77.   ODULong    GetOffset();
  78.  
  79.   ODULong    GetValue(in ODULong length, out ODByteArray value);
  80.  
  81.   void      SetValue(in ODByteArray value);
  82.  
  83.   void      InsertValue(in ODByteArray value);
  84.  
  85.   void      DeleteValue(in ODULong length);
  86.  
  87.   ODULong    GetSize();
  88.  
  89.   ODBoolean    IsValidStorageUnitRef(in ODStorageUnitRef ref);
  90.  
  91.   void GetStrongStorageUnitRef(in ODStorageUnitID embeddedSUID, out ODStorageUnitRef strongRef);
  92.  
  93.   void GetWeakStorageUnitRef(in ODStorageUnitID embeddedSUID, out ODStorageUnitRef weakRef);
  94.  
  95.   ODBoolean      IsStrongStorageUnitRef(in ODStorageUnitRef ref);
  96.  
  97.   ODBoolean      IsWeakStorageUnitRef(in ODStorageUnitRef ref);
  98.  
  99.   ODStorageUnitView   RemoveStorageUnitRef(in ODStorageUnitRef aRef);
  100.  
  101.   ODStorageUnitID  GetIDFromStorageUnitRef(in ODStorageUnitRef aRef);
  102.  
  103.   ODStorageUnitRefIterator  CreateStorageUnitRefIterator();
  104.  
  105.   ODULong  GetGenerationNumber();
  106.  
  107.   ODULong  IncrementGenerationNumber();
  108.  
  109.   ODBoolean  IsPromiseValue();
  110.  
  111.   void    SetPromiseValue(in ODValueType valueType,
  112.               in ODULong offset,
  113.               in ODByteArray value,
  114.               in ODPart sourcePart);
  115.  
  116.   ODULong  GetPromiseValue(in ODValueType valueType,
  117.                 in ODULong offset,
  118.                 in ODULong length,
  119.                 out ODByteArray value,
  120.                 out ODPart sourcePart);
  121.  
  122.  
  123. #ifdef __SOMIDL__
  124.   implementation
  125.   {
  126.       functionprefix = ODStorageUnitView;
  127.     override:
  128.       somInit,
  129.       somUninit,
  130.       Purge;
  131.     releaseorder:
  132.       reserved1,
  133.       GetStorageUnit,
  134.       GetCursor,
  135.       Externalize,
  136.       Internalize,
  137.       GetID,
  138.       GetName,
  139.       SetName,
  140.       AddProperty,
  141.       AddValue,
  142.       Remove,
  143.       CloneInto,
  144.       GetProperty,
  145.       GetType,
  146.       SetType,
  147.       SetOffset,
  148.       GetOffset,
  149.       GetValue,
  150.       SetValue,
  151.       InsertValue,
  152.       DeleteValue,
  153.       GetSize,
  154.       IsValidStorageUnitRef,
  155.       GetStrongStorageUnitRef,
  156.       GetWeakStorageUnitRef,
  157.       IsStrongStorageUnitRef,
  158.       IsWeakStorageUnitRef,
  159.       RemoveStorageUnitRef,
  160.       GetIDFromStorageUnitRef,
  161.       CreateStorageUnitRefIterator,
  162.       GetGenerationNumber,
  163.       IncrementGenerationNumber,
  164.       IsPromiseValue,
  165.       SetPromiseValue,
  166.       GetPromiseValue,
  167.       Lock,
  168.       Unlock;
  169.  
  170.  
  171.   };
  172.  
  173. #endif
  174. };
  175.  
  176. #endif  // _SUVIEW_
  177.  
  178.