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

  1. //#====START_GENERATED_PROLOG======================================
  2. //#
  3. //#
  4. //#   COMPONENT_NAME: odcore
  5. //#
  6. //#   CLASSES: none
  7. //#
  8. //#   ORIGINS: 82,27
  9. //#
  10. //#
  11. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  12. //#   All Rights Reserved
  13. //#   Licensed Materials - Property of IBM
  14. //#   US Government Users Restricted Rights - Use, duplication or
  15. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  16. //#       
  17. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  19. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  20. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  21. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  22. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  23. //#   OR PERFORMANCE OF THIS SOFTWARE.
  24. //#
  25. //#====END_GENERATED_PROLOG========================================
  26. //#
  27. /* @(#) 1.14 com/src/core/idl/ODSessn.idl, odcore, od96os2, odos29712d 3/11/97 15:35:08 [3/21/97 17:18:13] */
  28.  
  29. //#     Copyright:      (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  30.  
  31. #ifndef _ODSESSN_
  32. #define _ODSESSN_
  33.  
  34. #ifndef _ODSESSNB_
  35. #include "ODSessnB.idl"
  36. #endif
  37.  
  38. //==============================================================================
  39. // Classes used by this interface
  40. //==============================================================================
  41.  
  42. interface   ODPartHandlerRegistryInt;
  43.  
  44.  
  45. //==============================================================================
  46. // Classes defined in this interface
  47. //==============================================================================
  48.  
  49. interface   ODSession;
  50. #ifdef _PLATFORM_WIN32_
  51.     interface   OpenDocShell;
  52.     interface   ODHelp;
  53. #endif
  54.  
  55.  
  56. #ifdef _PLATFORM_OS2_
  57. #pragma somemittypes on
  58.    typedef unsigned long ODPlatformWindowCreateOptions;
  59.    const ODPlatformWindowCreateOptions ODPlatformWindowDefaultCreateOptions = 0x0000783F;
  60.                                     // FCF_STANDARD & ~FCF_SHELLPOSITION & ~ FCF_ACCELTABLE
  61. #pragma somemittypes off
  62.    interface ODPerWindowFocusModule;
  63.    interface ODStatusLineExtension;
  64.    interface IODLinkService;
  65.    interface ODHelp;
  66.    typedef somToken SWP;
  67.    typedef somToken TID;
  68. #endif // _PLATFORM_OS2_
  69.  
  70. //==============================================================================
  71. // ODSession
  72. //==============================================================================
  73.  
  74. interface ODSession :  ODBaseSession
  75. {
  76. #ifdef _PLATFORM_WIN32_
  77.    void InitSession(in OpenDocShell shell);
  78. #else
  79.    void InitSession();
  80. #endif
  81.    void GetUserName(out ODIText *name);
  82.  
  83. #ifdef _PLATFORM_OS2_  /******** strom@watson ********/
  84.  
  85.   void  InitAvailServerSession (
  86.           in string alias /* public name of this availability server */
  87.         ); // Called in place of InitSession
  88.   IODLinkService GetLinkService(); // public method to get link service
  89. #endif //_PLATFORM_OS2_
  90.  
  91.   //#---------------------------------
  92.   //# Data Interchange
  93.  
  94.    ODUpdateID UniqueUpdateID();
  95.  
  96. #ifdef _PLATFORM_OS2_  // JSO
  97.   //---------------------------------
  98.   // Virtual functions
  99.  
  100.   ODPlatformWindow CreatePlatformWindow( in ODPlatformWindowCreateOptions options );
  101.   ODHelp GetHelp();
  102. #endif // _PLATFORM_OS2_
  103.  
  104.    ODPartHandlerRegistryInt GetRegistry();
  105.  
  106. #ifdef __SOMIDL__
  107.         implementation
  108.         {
  109.                 majorversion = 1; minorversion = 0;
  110.  
  111.                 functionprefix = ODSession;
  112.  
  113.                 #ifdef _PLATFORM_WIN32_
  114.                 #endif
  115.  
  116.                 #ifdef _PLATFORM_OS2_
  117.                 passthru C_xih = " "
  118.                                  "#define INCL_ERRORS"
  119.                                  "#define INCL_WIN"
  120.                                  "#define INCL_DOS"
  121.                                  "#include <os2.h> ";
  122.                 passthru C_xh = " "
  123.                                 "#define INCL_ERRORS"
  124.                                 "#define INCL_WIN"
  125.                                 "#define INCL_DOS"
  126.                                 "#include <os2.h> ";
  127.                 passthru C_hh = " "
  128.                                 "#define INCL_ERRORS"
  129.                                 "#define INCL_WIN"
  130.                                 "#define INCL_DOS"
  131.                                 "#include <os2.h> ";
  132.                 #endif // _PLATFORM_OS2_
  133.  
  134.                 override:
  135.                         somUninit,
  136.                         Purge;
  137.  
  138.                 releaseorder:
  139.                         UniqueUpdateID,
  140.                         GetUserName,
  141.                       #ifdef _PLATFORM_OS2_ // CED
  142.                         InitSession,
  143.                         CreatePlatformWindow,
  144.                         GetHelp,
  145.                         InitAvailServerSession,
  146.                         GetLinkService,
  147.                         reserved1,
  148.                         reserved2,
  149.                         reserved3,
  150.                         reserved4,
  151.                       #else
  152.                         InitSession,
  153.                       #endif // _PLATFORM_OS2_
  154.                         GetRegistry,
  155.                         reserved5;
  156.  
  157.  
  158.   };
  159. #endif
  160. };
  161.  
  162.  
  163. #endif // _ODSESSN_
  164.