home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12otk1.exe / include / SUView.idl < prev    next >
Text File  |  1997-04-02  |  5KB  |  193 lines

  1. /* @(#)Z 1.4 com/src/storage/idl/SUView.idl, odstorage, od96os2, odos29712d 97/03/21 17:20:14 (96/10/29 09:33:11) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odstorage
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 82,27
  10. //#
  11. //#
  12. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //#   All Rights Reserved
  14. //#   Licensed Materials - Property of IBM
  15. //#   US Government Users Restricted Rights - Use, duplication or
  16. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //#       
  18. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //#   OR PERFORMANCE OF THIS SOFTWARE.
  25. //#
  26. //#====END_GENERATED_PROLOG========================================
  27. //#
  28.  
  29. //#    Copyright:    (r) 1993-1994 by Apple Computer, Inc., all rights reserved.
  30.  
  31. #ifndef _SUVIEW_
  32. #define _SUVIEW_
  33.  
  34. #ifndef _ODOBJECT_
  35. #include "ODObject.idl"
  36. #endif
  37.  
  38. //==============================================================================
  39. // Classes defined in this interface
  40. //==============================================================================
  41.  
  42. interface   ODStorageUnitView;
  43.  
  44. //==============================================================================
  45. // Classes used by this interface
  46. //==============================================================================
  47. interface    ODStorageUnit;
  48. interface   ODStorageUnitCursor;
  49. interface    ODDraft;
  50. interface    ODStorageUnitRefIterator;
  51. interface    ODPart;
  52.  
  53. //==============================================================================
  54. // ODStorageUnitView
  55. //==============================================================================
  56.  
  57. interface ODStorageUnitView :  ODObject
  58. {
  59.  
  60.     ODStorageUnit  GetStorageUnit();
  61.     
  62.     ODStorageUnitCursor  GetCursor();
  63.     
  64.     ODStorageUnitView   Externalize();  
  65.     
  66.     ODStorageUnitView   Internalize();  
  67.     
  68.     ODID GetID();      
  69.     
  70.     ODStorageUnitName GetName();    
  71.     
  72.     void SetName(in ODStorageUnitName name);
  73.     
  74.     ODStorageUnitView  AddProperty(in ODPropertyName propertyName);      
  75.     
  76.     ODStorageUnitView  AddValue(in ODValueType type);
  77.     
  78.     ODStorageUnitView  Remove();
  79.         
  80.     void CloneInto(in ODDraftKey key,
  81.                     in ODStorageUnit destStorageUnit, 
  82.                     in ODID scopeID);
  83.     
  84.     ODPropertyName  GetProperty();
  85.     
  86.     ODValueType  GetType();
  87.     
  88.     void      SetType(in ODValueType valueType);
  89.     
  90.     void      SetOffset(in ODULong offset);
  91.     
  92.     ODULong    GetOffset();
  93.     
  94.     ODULong    GetValue(in ODULong length, out ODByteArray value);
  95.                         
  96.     void      SetValue(in ODByteArray value);
  97.                         
  98.     void      InsertValue(in ODByteArray value);
  99.                             
  100.     void      DeleteValue(in ODULong length);
  101.     
  102.     ODULong    GetSize();
  103.     
  104.     ODBoolean    IsValidStorageUnitRef(in ODStorageUnitRef ref);
  105.     
  106.     void GetStrongStorageUnitRef(in ODStorageUnitID embeddedSUID, out ODStorageUnitRef strongRef);
  107.     
  108.     void GetWeakStorageUnitRef(in ODStorageUnitID embeddedSUID, out ODStorageUnitRef weakRef);
  109.     
  110.     ODBoolean      IsStrongStorageUnitRef(in ODStorageUnitRef ref);
  111.     
  112.     ODBoolean      IsWeakStorageUnitRef(in ODStorageUnitRef ref);
  113.     
  114.     ODStorageUnitView   RemoveStorageUnitRef(in ODStorageUnitRef aRef);
  115.     
  116.     ODStorageUnitID  GetIDFromStorageUnitRef(in ODStorageUnitRef aRef);
  117.     
  118.     ODStorageUnitRefIterator  CreateStorageUnitRefIterator();
  119.     
  120.     ODULong  GetGenerationNumber();
  121.     
  122.     ODULong  IncrementGenerationNumber();
  123.     
  124.     ODBoolean  IsPromiseValue();
  125.     
  126.     void    SetPromiseValue(in ODValueType valueType,
  127.                             in ODULong offset,
  128.                             in ODByteArray value,
  129.                             in ODPart sourcePart);
  130.                             
  131.     ODULong  GetPromiseValue(in ODValueType valueType,
  132.                                 in ODULong offset,
  133.                                 in ODULong length,
  134.                                 out ODByteArray value,
  135.                                 out ODPart sourcePart);
  136.     
  137.     
  138. #ifdef __SOMIDL__
  139.     implementation
  140.     {
  141.         majorversion = 1; minorversion = 0;
  142.           functionprefix = ODStorageUnitView;
  143.         override:
  144.             somUninit,
  145.             Purge;
  146.         releaseorder:
  147.             reserved1,
  148.             reserved2,
  149.             reserved3,
  150.             GetStorageUnit,
  151.             GetCursor,
  152.             Externalize,
  153.             Internalize,
  154.             GetID,
  155.             GetName,
  156.             SetName,
  157.             AddProperty,
  158.             AddValue,
  159.             Remove,
  160.             CloneInto,
  161.             GetProperty,
  162.             GetType,
  163.             SetType,
  164.             SetOffset,
  165.             GetOffset,
  166.             GetValue,
  167.             SetValue,
  168.             InsertValue,
  169.             DeleteValue,
  170.             GetSize,
  171.             IsValidStorageUnitRef,
  172.             GetStrongStorageUnitRef,
  173.             GetWeakStorageUnitRef,
  174.             IsStrongStorageUnitRef,
  175.             IsWeakStorageUnitRef,
  176.             RemoveStorageUnitRef,
  177.             GetIDFromStorageUnitRef,
  178.             CreateStorageUnitRefIterator,
  179.             GetGenerationNumber,
  180.             IncrementGenerationNumber,
  181.             IsPromiseValue,
  182.             SetPromiseValue,
  183.             GetPromiseValue;
  184.             
  185.     
  186.   };
  187.   
  188. #endif
  189. };
  190.  
  191. #endif  // _SUVIEW_
  192.  
  193.