home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xcomport.h < prev    next >
C/C++ Source or Header  |  1997-08-12  |  1KB  |  27 lines

  1. #ifndef __OOL_XCOMPORT_H__
  2. #define __OOL_XCOMPORT_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XComPort                              */
  8. /*                       derived from: XDevice                               */
  9. /*                        last update: 7/96                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13. #include "xdevice.h"
  14.  
  15.  
  16. class _export_ XComPort: public XDevice
  17. {
  18.     public:
  19.         XComPort() { };
  20. //////        ~XComPort( ) { Close(); }
  21.         ULONG Open( ULONG port, const ULONG modeForAcces = XFILE_READWRITE, const ULONG modeShare = XFILE_SHARE_DENYREADWRITE);
  22.         ULONG SetBaudRate( const USHORT baud ) const;
  23.         UCHAR GetStatus() const ; 
  24. };
  25.  
  26. #endif
  27.