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

  1. //-------------------------------------------------------------------------------
  2. // Module:  eclclist.hpp
  3. //-------------------------------------------------------------------------------
  4. //
  5. // Description:  ECLConnList class header file.  This class provides an 
  6. //               enumeration of the currently available host sessions.  When 
  7. //               created and when the Refresh() function is invoked, a snap-shot 
  8. //               of the currently available sessions is made.  The connection 
  9. //               list is not updated if connections are started or stopped.  When 
  10. //               destroyed, all the ECLConnection objects created by this class 
  11. //               are deleted.
  12. //
  13. //-------------------------------------------------------------------------------
  14. // Copyright Notice: IBM Personal Communication/3270 Version 4.3
  15. //                   (C) COPYRIGHT IBM CORP. 1989,1998 - PROGRAM PROPERTY
  16. //                   OF IBM ALL RIGHTS RESERVED
  17. //-------------------------------------------------------------------------------
  18.  
  19. #include "eclall.hpp"
  20. #ifndef _ECLCLIST_HPP_
  21. #define _ECLCLIST_HPP_
  22.  
  23. //#include "eclbase.hpp"                                                         
  24. //#include "eclcinfo.hpp"                                                        
  25.  
  26. class ECLConnListData;                      // Forward declaration 
  27. class DllExport ECLConnList: public ECLBase
  28. {
  29.   private: // Class private data
  30.     ECLConnListData *pd;                    
  31.  
  32.   private: // Constructors and operators not allowed on this object
  33.     ECLConnList(const ECLConnList &From);
  34.     ECLConnList& operator= (const ECLConnList &From);
  35.  
  36.   public:
  37.     ECLConnList();                          // Constructor
  38.     ~ECLConnList();                         // Destructor
  39.  
  40.     ECLConnection *GetFirstConnection() const;    // Get first connection in the list; reset enumeration
  41.     ECLConnection *GetNextConnection(ECLConnection *Prev) const; // Get next connection in the enumeration
  42.     ECLConnection *FindConnection(long ConnHandle) const; // Find connection by handle
  43.     ECLConnection *FindConnection(char ConnName) const; // Find connection by name
  44.     ULONG GetCount() const;                       // Number of connections in the list
  45.     void Refresh();                               // Get new list of connections and reset enumeration
  46.  
  47. };
  48.  
  49. typedef ECLConnList * PECLConnList;
  50.  
  51. #endif //_ECLCLIST_HPP_
  52.