A
download otdialdxx.h
Language: C++
Copyright: (c) 1995-97 OpenComm do Brasil Ltda.
LOC: 28
Project Info
Open Telephony Server(opentel)
Server: SourceForge
Type: cvs
...el\server\drivers\dialogic\
   dialogic.dsp
   otdialap.cpp
   otdialap.h
   otdialar.cpp
   otdialar.h
   otdialdev.h
   otdialdrv.cpp
   otdialdrv.h
   otdialdti.cpp
   otdialdti.h
   otdialdxx.cpp
   otdialdxx.h
   otdialei.cpp
   otdialei.h
   otdialev.cpp
   otdialev.h
   otdialex.cpp
   otdialex.h
   otdialgc.cpp
   otdialgc.h
   otdialmsi.cpp
   otdialmsi.h
   otdialogic.cpp
   otdialogic.h
   otdialsc.cpp
   otdialsc.h
   otdialtd.cpp
   otdialtd.h
   otdialtg.cpp
   otdialtg.h

/*****************************************************************************
* OpenTel Telephony Server & Framework
* Copyright (c) 1995-97 OpenComm do Brasil Ltda.
* Todos os direitos reservados.
* Este arquivo contem material confidencial de OpenComm do Brasil, e deve
* darse tratamento como tal.
******************************************************************************/

#ident "@(#) $Header: /cvsroot/opentel/opentel/server/drivers/dialogic/otdialdxx.h,v 1.2 2000/03/24 05:16:43 jbernab Exp $" 


#ifndef __OTDIALOGICDXX_H__
#define __OTDIALOGICDXX_H__

#include <dialogic/otdialdev.h>

class OtDialgoicEvent;
class OtMessage;
class OtBus;
class OtDialogicGc;
/** OtDialogicDxx.
This class is responsible for the interface to the Dialogic Dxxx Device.<p>
*/
class OtDialogicDxx : public OtDialogicDev {
public:
	/// Construtor
	OtDialogicDxx(const OtString &devName, OtBus *bus);

	/** Construtor desde um OtDialogicGc 
	@see OtDialogicGc */
	OtDialogicDxx(const OtDialogicGc *gc);

	/// Destructor virtual
virtual	~OtDialogicDxx(void);

	int open(void);
	int close(void);
	
	int getFd() { return _linedev;}		// Used to access low level functions
	const OtString &getName() { return _devName; }
	const OtBus *getBus() { return m_bus; }
	
	
protected:
	virtual int isForMe(OtDialogicEvent *e);
	virtual void onMessage(OtMessage *msg);

private:
	int 	_linedev;
	OtString _devName;
	int 	m_hasToClose;
	OtBus 	*m_bus;
};


#endif

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us