home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pc3270sa.zip
/
eclcmgr.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
2002-02-28
|
3KB
|
63 lines
//-------------------------------------------------------------------------------
// Module: eclcmgr.hpp
//-------------------------------------------------------------------------------
//
// Description: ECLConnMgr class definition. This class is used to manage the
// connections on a given system. It provides connection
// management routines such as start/stop connection. The
// ECLConnMgr maintains a list of available connections on a system
// (ECLConnList). The list is initialized at construction and can
// be refreshed explicitly using the refresh method on the
// ECLConnList class. The list is a static snapshot of the
// available sessions at the time of the snapshot.
//
//-------------------------------------------------------------------------------
// Copyright Notice: IBM Personal Communication/3270 Version 4.3
// (C) COPYRIGHT IBM CORP. 1989,1998 - PROGRAM PROPERTY
// OF IBM ALL RIGHTS RESERVED
//-------------------------------------------------------------------------------
#include "eclall.hpp"
#ifndef _ECLCMGR_HPP_
#define _ECLCMGR_HPP_
//#include "eclbase.hpp" // ECLBase class definition
//#include "eclclist.hpp" // ECLConnList class definition
//#include "eclnotfy.hpp" // Notify event stuff
//#include "errorids.hpp" // Error stuff
//#include "eclerr.hpp" // ECLErr class definitions
class ECLConnMgrData; // Forward declaration
class DllExport ECLConnMgr: public ECLBase
{
private: // Class private data
ECLConnMgrData *pd;
private: // Constructors and operators not allowed on this object
ECLConnMgr(const ECLConnMgr &From);
ECLConnMgr& operator= (const ECLConnMgr &From);
public:
ECLConnMgr(); // Constructor
~ECLConnMgr(); // Destructor
ECLConnList *GetConnList() const; // Get the HostList object
// Start a new session
void StartConnection(const char * const ConfigParms);
// Stop a session
void StopConnection(ULONG ConnHandle, const char * const StopParms);
// Session start/stop event notification
void RegisterStartEvent(ECLStartNotify *AppNotifyClass);
void UnregisterStartEvent(ECLStartNotify *AppNotifyClass);
};
typedef ECLConnMgr * PECLConnMgr;
#endif // _ECLCMGR_HPP_