home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
IDL
/
ODSESSN.IDL
< prev
next >
Wrap
Text File
|
1995-12-13
|
5KB
|
134 lines
/********************************************************************/
/* Licensed Materials - Property of IBM */
/* */
/* */
/* Copyright (C) International Business Machines Corp., 1994. */
/* Copyright (C) Apple Computer, Inc., 1994 */
/* */
/* US Government Users Restricted Rights - */
/* Use, duplication, or disclosure restricted */
/* by GSA ADP Schedule Contract with IBM Corp. */
/* */
/* */
/********************************************************************/
#ifndef _ODSESSN_
#define _ODSESSN_
#ifndef _ODSESSNB_
#include "ODSessnB.idl"
#endif
//==============================================================================
// Theory of Operation
//==============================================================================
/*
This class represents the "system" calls in OpenDoc. A global function
provides initialization of the OpenDoc environment and returns a reference
to the one ODSession object. The member functions of the class
include accessors for some of the other unique classes in OpenDoc as well
as a few other system functions.
*/
//==============================================================================
// Classes defined in this interface
//==============================================================================
interface ODSession;
//==============================================================================
// Classes used by this interface
//==============================================================================
#ifdef _PLATFORM_OS2_
#pragma somemittypes on
typedef unsigned long ODPlatformWindowCreateOptions;
const ODPlatformWindowCreateOptions ODPlatformWindowDefaultCreateOptions = 0x0000783F;
// FCF_STANDARD & ~FCF_SHELLPOSITION & ~ FCF_ACCELTABLE
#pragma somemittypes off
interface ODPerWindowFocusModule;
interface ODStatusLineExtension;
interface IODLinkService;
interface ODHelp;
typedef somToken SWP;
typedef somToken TID;
#endif // _PLATFORM_OS2_
//==============================================================================
// ODSession
//==============================================================================
interface ODSession : ODBaseSession
{
void InitSession();
void GetUserName(out ODIText name);
#ifdef _PLATFORM_OS2_ /******** strom@watson ********/
void InitAvailServerSession (
in string alias /* public name of this availability server */
); // Called in place of InitSession
IODLinkService GetLinkService(); // public method to get link service
#endif //_PLATFORM_OS2_
ODUpdateID UniqueUpdateID();
#ifdef _PLATFORM_OS2_ // JSO
//---------------------------------
// Virtual functions
ODPlatformWindow CreatePlatformWindow( in ODPlatformWindowCreateOptions options );
ODHelp GetHelp();
#endif // _PLATFORM_OS2_
#ifdef __SOMIDL__
implementation
{
functionprefix = ODSession;
override:
somInit,
somUninit,
Purge;
releaseorder:
UniqueUpdateID,
GetUserName,
#ifndef _PLATFORM_OS2_ // CED
InitSession;
#else
InitSession,
CreatePlatformWindow,
GetHelp,
InitAvailServerSession,
GetLinkService,
reserved1,
reserved2,
reserved3,
reserved4;
#endif // ! _PLATFORM_OS2_
#ifdef _PLATFORM_OS2_
passthru C_xih = " "
"#define INCL_ERRORS"
"#define INCL_WIN"
"#define INCL_DOS"
"#include <os2.h> ";
passthru C_xh = " "
"#define INCL_ERRORS"
"#define INCL_WIN"
"#define INCL_DOS"
"#include <os2.h> ";
passthru C_hh = " "
"#define INCL_ERRORS"
"#define INCL_WIN"
"#define INCL_DOS"
"#include <os2.h> ";
#endif // _PLATFORM_OS2_
};
#endif
};
#endif // _ODSESSN_