ModemDetect.h
上传用户:glass0516
上传日期:2010-01-11
资源大小:104k
文件大小:1k
- /*****************************************************************************
- * RelayFax Open Source Project
- * Copyright 1996-2004 Alt-N Technologies, Ltd.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted only as authorized by the RelayFax Open
- * Source License. A copy of this license is available in file LICENSE
- * in the top-level directory of the distribution.
- *
- * RelayFax is a registered trademark of Alt-N Technologies, Ltd.
- *
- * Individual files and/or contributed packages may be copyright by
- * other parties and subject to additional restrictions.
- *****************************************************************************/
- #ifndef MODEMDETECT_H
- #define MODEMDETECT_H
- #include "Modem.h"
- class CModemDetect : public CModem
- {
- public:
- CModemDetect();
- virtual ~CModemDetect();
- // methods overridden from CCommPort
- virtual void OnConnect(void);
- virtual bool OnDisconnect(void);
- virtual void OnReadLine(void);
- virtual void OnTimer( UINT nID );
- void SetState( int nNewState ) { m_nState = nNewState; };
- protected:
- void PhaseInit(void);
- void Quit( bool bSuccessful );
- int m_nLoopCtr;
- FaxApiModemDetectMsg* pInfo;
- };
- #endif // MODEMDETECT_H