home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pc3270sa.zip / eclcmgr.hpp < prev    next >
C/C++ Source or Header  |  2002-02-28  |  3KB  |  63 lines

  1. //-------------------------------------------------------------------------------
  2. // Module:  eclcmgr.hpp
  3. //-------------------------------------------------------------------------------
  4. //
  5. // Description:  ECLConnMgr class definition.  This class is used to manage the 
  6. //               connections on a given system.  It provides connection 
  7. //               management routines such as start/stop connection. The 
  8. //               ECLConnMgr maintains a list of available connections on a system 
  9. //               (ECLConnList).  The list is initialized at construction and can 
  10. //               be refreshed explicitly using the refresh method on the 
  11. //               ECLConnList class.  The list is a static snapshot of the 
  12. //               available sessions at the time of the snapshot.
  13. //
  14. //-------------------------------------------------------------------------------
  15. // Copyright Notice: IBM Personal Communication/3270 Version 4.3
  16. //                   (C) COPYRIGHT IBM CORP. 1989,1998 - PROGRAM PROPERTY
  17. //                   OF IBM ALL RIGHTS RESERVED
  18. //-------------------------------------------------------------------------------
  19.  
  20. #include "eclall.hpp"
  21. #ifndef _ECLCMGR_HPP_
  22. #define _ECLCMGR_HPP_
  23.  
  24. //#include "eclbase.hpp"                      // ECLBase class definition        
  25. //#include "eclclist.hpp"                     // ECLConnList class definition    
  26. //#include "eclnotfy.hpp"                     // Notify event stuff              
  27. //#include "errorids.hpp"                     // Error stuff                     
  28. //#include "eclerr.hpp"                       // ECLErr class definitions        
  29.  
  30.  
  31. class ECLConnMgrData;                       // Forward declaration 
  32. class DllExport ECLConnMgr: public ECLBase
  33. {
  34.  
  35.   private: // Class private data
  36.     ECLConnMgrData *pd;                     
  37.  
  38.   private: // Constructors and operators not allowed on this object
  39.     ECLConnMgr(const ECLConnMgr &From);
  40.     ECLConnMgr& operator= (const ECLConnMgr &From);
  41.  
  42.   public:
  43.     ECLConnMgr();                           // Constructor
  44.     ~ECLConnMgr();                          // Destructor
  45.  
  46.     ECLConnList *GetConnList() const;       // Get the HostList object 
  47.  
  48.                                             // Start a new session
  49.     void StartConnection(const char * const ConfigParms);
  50.  
  51.                                             // Stop a session
  52.     void StopConnection(ULONG ConnHandle, const char * const StopParms);
  53.  
  54.                                             // Session start/stop event notification
  55.     void RegisterStartEvent(ECLStartNotify *AppNotifyClass);
  56.     void UnregisterStartEvent(ECLStartNotify *AppNotifyClass);
  57.  
  58. };
  59.  
  60. typedef ECLConnMgr * PECLConnMgr;
  61.  
  62. #endif // _ECLCMGR_HPP_
  63.