⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 taoeventlistener.h

📁 基于sipfoundy 公司开发的sipx协议API
💻 H
字号:
//// Copyright (C) 2004, 2005 Pingtel Corp.// //// $$//////////////////////////////////////////////////////////////////////////////#ifndef _TaoEventListener_h_#define _TaoEventListener_h_// SYSTEM INCLUDES// APPLICATION INCLUDES#include "os/OsDefs.h"#include "ptapi/PtEvent.h"#include "tao/TaoDefs.h"// DEFINES// MACROS// EXTERNAL FUNCTIONS// EXTERNAL VARIABLES// CONSTANTS// STRUCTS// TYPEDEFS// FORWARD DECLARATIONS//:Base class for listener objects.class TaoEventListener{/* //////////////////////////// PUBLIC //////////////////////////////////// */public:/* ============================ CREATORS ================================== */   TaoEventListener(const char* pTerminalName, int* pEventMask = NULL);     //!param: (in) pTerminalName - name of listening terminal.         //!param: (in) pMask - Event mask defining events the listener is interested in.  This must be a subset of the events that the listener supports.  The mask may be NULL where it is assumed that all events applicable to the derived listener are of interest.   virtual   ~TaoEventListener();     //:Destructor/* ============================ MANIPULATORS ============================== *//* ============================ ACCESSORS ================================= */   TaoStatus getEventMask(const int*& rpMask);     //:Returns the event mask that defines the events of interest     // The event mask is read only.  Unpredictable results will occur if     // the event mask is modified after a listener is constructed.     // The mask may be NULL where it is assumed that all events applicable     // to the derived listener are of interest.     //!param: (out) rpMask - Reference to a pointer to the event mask.     //!retcode: TAO_SUCCESS - Success     //!retcode: TAO_PROVIDER_UNAVAILABLE - The provider is not available   TaoStatus getTerminalName(char* rpTerminalName, int maxLen);     //:Returns the listening terminal name     // The event mask is read only.  Unpredictable results will occur if     // the event mask is modified after a listener is constructed.     // The mask may be NULL where it is assumed that all events applicable     // to the derived listener are of interest.     //!param: (out) rpTerminalName - Reference to a pointer to the listening terminal name.     //!retcode: TAO_SUCCESS - Success     //!retcode: TAO_PROVIDER_UNAVAILABLE - The provider is not available/* ============================ INQUIRY =================================== */   UtlBoolean isEventEnabled(PtEvent::PtEventId& eventId);     //:Determines if the given event type is of interest to this listener.     //!param: (in) eventId - The event id corresponding to the event type     //!retcode: TRUE - If the given event type is of interest to this listener     //!retcode: FALSE - If the given event type is NOT of interest to this listener/* //////////////////////////// PROTECTED ///////////////////////////////// */protected:/* //////////////////////////// PRIVATE /////////////////////////////////// */private:        char*   mpTerminalName;        int*    mpEventMask;        TaoEventListener(const TaoEventListener& rTaoEventListener);         //:Copy constructor        TaoEventListener& operator=(const TaoEventListener& rhs);     //:Assignment operator};/* ============================ INLINE METHODS ============================ */#endif  // _TaoEventListener_h_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -