sipXcallLib home page


TaoEventListener.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _TaoEventListener_h_
13 #define _TaoEventListener_h_
14 
15 // SYSTEM INCLUDES
16 // APPLICATION INCLUDES
17 #include "os/OsDefs.h"
18 #include "ptapi/PtEvent.h"
19 #include "tao/TaoDefs.h"
20 
21 // DEFINES
22 // MACROS
23 // EXTERNAL FUNCTIONS
24 // EXTERNAL VARIABLES
25 // CONSTANTS
26 // STRUCTS
27 // TYPEDEFS
28 // FORWARD DECLARATIONS
29 
30 //:Base class for listener objects.
31 
33 {
34 /* //////////////////////////// PUBLIC //////////////////////////////////// */
35 public:
36 
37 /* ============================ CREATORS ================================== */
38 
39  TaoEventListener(const char* pTerminalName, int* pEventMask = NULL);
42 
43  virtual
45  //:Destructor
46 
47 /* ============================ MANIPULATORS ============================== */
48 
49 
50 /* ============================ ACCESSORS ================================= */
51 
52  TaoStatus getEventMask(const int*& rpMask);
53  //:Returns the event mask that defines the events of interest
54  // The event mask is read only. Unpredictable results will occur if
55  // the event mask is modified after a listener is constructed.
56  // The mask may be NULL where it is assumed that all events applicable
57  // to the derived listener are of interest.
61 
62  TaoStatus getTerminalName(char* rpTerminalName, int maxLen);
63  //:Returns the listening terminal name
64  // The event mask is read only. Unpredictable results will occur if
65  // the event mask is modified after a listener is constructed.
66  // The mask may be NULL where it is assumed that all events applicable
67  // to the derived listener are of interest.
71 
72 /* ============================ INQUIRY =================================== */
73 
74  UtlBoolean isEventEnabled(PtEvent::PtEventId& eventId);
75  //:Determines if the given event type is of interest to this listener.
79 
80 /* //////////////////////////// PROTECTED ///////////////////////////////// */
81 protected:
82 
83 /* //////////////////////////// PRIVATE /////////////////////////////////// */
84 private:
87 
88  TaoEventListener(const TaoEventListener& rTaoEventListener);
89  //:Copy constructor
90 
92  //:Assignment operator
93 
94 
95 };
96 
97 /* ============================ INLINE METHODS ============================ */
98 
99 #endif // _TaoEventListener_h_
virtual ~TaoEventListener()
param: (in) pTerminalName - name of listening terminal. param: (in) pMask - Event mask defining event...
Definition: TaoEventListener.cpp:59
TaoEventListener & operator=(const TaoEventListener &rhs)
Definition: TaoEventListener.cpp:72
PtEventId
Definition: PtEvent.h:83
TaoStatus getTerminalName(char *rpTerminalName, int maxLen)
param: (out) rpMask - Reference to a pointer to the event mask. retcode: TAO_SUCCESS - Success retcod...
Definition: TaoEventListener.cpp:102
UtlBoolean isEventEnabled(PtEvent::PtEventId &eventId)
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
Definition: TaoEventListener.cpp:122
int * mpEventMask
Definition: TaoEventListener.h:86
TaoStatus
Definition: TaoDefs.h:41
char * mpTerminalName
param: (in) eventId - The event id corresponding to the event type retcode: TRUE - If the given event...
Definition: TaoEventListener.h:85
TaoStatus getEventMask(const int *&rpMask)
Definition: TaoEventListener.cpp:96
TaoEventListener(const char *pTerminalName, int *pEventMask=NULL)
Definition: TaoEventListener.cpp:28
Definition: TaoEventListener.h:32