home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osr1.exe / src / FileCtr.idl < prev    next >
Text File  |  1997-03-21  |  4KB  |  135 lines

  1. /* @(#)Z 1.6 com/src/bento/localidl/FileCtr.idl, odstorage, od96os2, odos29712d 97/03/21 17:20:06 (96/10/29 09:14:45) */
  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. #ifdef __PRIVATE__
  30. //#
  31. //#    File:        FileCtr.idl
  32. //#
  33. //#    Contains:    class definition for Bento File Container
  34. //#
  35. //#    Owned by:    Vincent Lo
  36. //#
  37. //#    Copyright:    (r) 1994 by Apple Computer, Inc., all rights reserved.
  38. //#
  39. //#    Change History (most recent first):
  40. //#
  41. //#         <6>     8/16/95    VL        1275241: Cleaned up IDL file.
  42. //#         <5>      8/3/95    RR        #1257260: Collapse B classes. Remove
  43. //#                                    somInit methods. Don't call IsInitialized
  44. //#                                    or SubclassResponsibility
  45. //#         <4>     9/23/94    VL        1184272: ContainerID is now a sequence of
  46. //#                                    octets.
  47. //#         <3>     6/30/94    CC        Added private methods GetCMContainer() &
  48. //#                                    GetHandlers() and private fields
  49. //#                                    fCMContainer & fHandlers.
  50. //#         <2>     6/15/94    CC        Added functionprefix to eliminate Undefined
  51. //#                                    entry, name: "_%CREATE".
  52. //#         <1>      6/8/94    VL        first checked in
  53. //#
  54. //#    To Do:
  55. //#
  56. #else
  57. //#    Copyright:    (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  58. #endif
  59.  
  60. #ifndef _FILECTR_
  61. #define _FILECTR_
  62.  
  63. #ifndef _CMCTR_
  64. #include "CMCtr.idl"
  65. #endif
  66.  
  67. //==============================================================================
  68. // Classes defined in this interface
  69. //==============================================================================
  70. interface   ODFileContainer;
  71.  
  72. #ifdef __PRIVATE__
  73. //==============================================================================
  74. // Implementation Types
  75. //==============================================================================
  76. typedef somToken AliasHandle;
  77. typedef somToken PlatformFile;
  78. #endif
  79.  
  80. //==============================================================================
  81. // ODContainer
  82. //==============================================================================
  83.  
  84. interface ODFileContainer  :  ODBentoContainer 
  85. {
  86. #ifdef __SOMIDL__
  87.     implementation
  88.     {
  89.     majorversion = 1; minorversion = 0;
  90.     functionprefix = ODFileContainer;
  91.     override:
  92.         somUninit,
  93.         Purge,
  94.         GetID,
  95.         GetName,
  96.         SetName,
  97.         #ifdef __PRIVATE__
  98.             InitContainer,
  99.             GetCMContainer,
  100.             GetHandlers,
  101.             Create,
  102.             Open,
  103.             Close;
  104.         #else
  105.             reserved1,
  106.             reserved2,
  107.             reserved3,
  108.             reserved4,
  109.             reserved5,
  110.             reserved6;
  111.         #endif
  112.  
  113.     #ifdef __PRIVATE__
  114.         passthru C_xih = 
  115.                 "class ODBentoHandlers;"
  116.                 "#include <CMAPI.h>"
  117.                 "#ifdef _PLATFORM_MACINTOSH_"
  118.                 "#include <Aliases.h>"
  119.                 "#endif"
  120.                 "class PlatformFile;"
  121.                 "";
  122.         CMContainer            fCMContainer;
  123.         ODBentoHandlers*    fHandlers;
  124. #ifdef _PLATFORM_MACINTOSH_
  125.         AliasHandle            fAlias;
  126. #endif
  127.         PlatformFile*        fPlatformFile;
  128.     #endif
  129.     };
  130. #endif
  131. };
  132.  
  133.  
  134. #endif  // _FILECTR_
  135.