A
download otdialei.h
Language: C++
Copyright: (c) 1995-97 OpenComm do Brasil Ltda.
LOC: 31
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.
******************************************************************************/




#ifndef __OTDIALEXTINTERFACE_H__
#define __OTDIALEXTINTERFACE_H__

#include <otextint.includes>
#include <otmessage.includes>

class OtDialogicMsiDev;
class OtTimeSlotListener;
class OtTimeSlotTransmitter;

// Resource
// Events
// Exceptions

//
//
// OtDialogicExtInterface classes definition
//
//

///
class OtDialogicExtInterface : public OtExtInterface, public OtMessageTarget {
public:
        /// Constructor
        OtDialogicExtInterface(OtDialogicMsiDev *msidev);

        /// Destructor
        virtual ~OtDialogicExtInterface();

        /// Generate Ring on extension
        virtual void genRing(long rings);               // Generates Ring

        /// Stop Ringing phone
        virtual void stopRing(void);                    // Stop ringing

        /// Generates a Ziptone
        virtual void genZipTone(void);                  // Generates a ZipTone

        /// Loop current on / off
        virtual void setPower(int pow);         // Loop current Power off/on

        ///     Get power status metrics
        virtual int getPower(void) const;

        /// Adjust the output volume
        virtual void adjustVolume(long db);             // Adjust Vol + or - db

        /// Get Crrent Valume
        virtual long getVolume(void) const;      // GetVolume in DB

        /// Reset Volume
        virtual void resetVolume(void);                 // Reset volume to default

//      virtual const OtString &getName(void) const;
        virtual void onMessage( OtMessage * );

        virtual OtTimeSlotListener *getListener();
        virtual OtTimeSlotTransmitter *getTransmitter();

protected:
        void                            dispatchEvent( OtEventType );

        OtDialogicMsiDev           *m_msidev;           // The Msi Device
        long                                    m_volume;               // Volume in DB
        long                                    m_defVolume;    // Default Volume when reset
        int                                     m_power;
        OT_DECLARE_DYNAMIC(OtDialogicExtInterface);
};

#endif

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