sipXcallLib home page


PtAddressListener.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 #ifndef _PtAddressListener_h_
12 #define _PtAddressListener_h_
13 
14 // SYSTEM INCLUDES
15 // APPLICATION INCLUDES
16 // DEFINES
17 // MACROS
18 // EXTERNAL FUNCTIONS
19 // EXTERNAL VARIABLES
20 // CONSTANTS
21 // STRUCTS
22 // TYPEDEFS
23 // FORWARD DECLARATIONS
24 
25 //:The PtAddressListener is used to register with and receive events from
26 //:PtAddress objects
27 
29 {
30 /* //////////////////////////// PUBLIC //////////////////////////////////// */
31 public:
32 
33 /* ============================ CREATORS ================================== */
34 
35  PtAddressListener(PtEventMask* pMask = NULL);
36  //:Default constructor
38 
39  virtual
41  //:Destructor
42 
43 /* ============================ MANIPULATORS ============================== */
44 
46  //:Method invoked on listener for event id =
47  //:ADDRESS_EVENT_TRANSMISSION_ENDED
48  //:indicating that the application will no longer receive address
49  //:events on this instance of the PtAddressListener.
50  // The event parameter is valid only within
51  // this method. The implementation must copy the event if
52  // it is needed beyond the scope of an invocation. The implementation
53  // of this method should not block as it may prevent other listeners
54  // from processing events in a timely fashion.
56 
57  void addressDoNotDisturbEnabled(const PtAddressEvent& rEvent);
58  //:Method invoked on listener for event id =
59  //:ADDRESS_DO_NOT_DISTURB_ENABLED
60  //:indicating the state of the <i>do-not-disturb</i> feature has changed
61  //:to enabled for the PtAddress.
62  // The event parameter is valid only within
63  // this method. The implementation must copy the event if
64  // it is needed beyond the scope of an invocation. The implementation
65  // of this method should not block as it may prevent other listeners
66  // from processing events in a timely fashion.
68 
69 
70  void addressDoNotDisturbDisabled(const PtAddressEvent& rEvent);
71  //:Method invoked on listener for event id =
72  //:ADDRESS_DO_NOT_DISTURB_DISABLED
73  //:indicating the state of the <i>do-not-disturb</i> feature has changed
74  //:to disabled for the PtAddress.
75  // The event parameter is valid only within
76  // this method. The implementation must copy the event if
77  // it is needed beyond the scope of an invocation. The implementation
78  // of this method should not block as it may prevent other listeners
79  // from processing events in a timely fashion.
81 
82  void addressForwardingChanged(const PtAddressEvent& rEvent);
83  //:Method invoked on listener for event id =
84  //:ADDRESS_FORWARDING_CHANGED
85  //:indicating the state of the forward feature has changed for the
86  //:PtAddress.
87  // The event parameter is valid only within
88  // this method. The implementation must copy the event if
89  // it is needed beyond the scope of an invocation. The implementation
90  // of this method should not block as it may prevent other listeners
91  // from processing events in a timely fashion.
93 
94  void addressMessagesWaiting(const PtAddressEvent& rEvent);
95  //:Method invoked on listener for event id =
96  //:ADDRESS_MESSAGES_WAITING
97  //:indicating the state of the message waiting feature has changed to
98  //:messages waiting for the PtAddress.
99  // The event parameter is valid only within
100  // this method. The implementation must copy the event if
101  // it is needed beyond the scope of an invocation. The implementation
102  // of this method should not block as it may prevent other listeners
103  // from processing events in a timely fashion.
105 
106  void addressNoMessagesWaiting(const PtAddressEvent& rEvent);
107  //:Method invoked on listener for event id =
108  //:ADDRESS_NO_MESSAGES_WAITING
109  //:indicating the state of the message waiting feature has changed to
110  //:no messages waiting for the PtAddress.
111  // The event parameter is valid only within
112  // this method. The implementation must copy the event if
113  // it is needed beyond the scope of an invocation. The implementation
114  // of this method should not block as it may prevent other listeners
115  // from processing events in a timely fashion.
117 
118 /* ============================ ACCESSORS ================================= */
119 
120 /* ============================ INQUIRY =================================== */
121 
122 /* //////////////////////////// PROTECTED ///////////////////////////////// */
123 protected:
124 
125 /* //////////////////////////// PRIVATE /////////////////////////////////// */
126 private:
127 
128  PtAddressListener(const PtAddressListener& rPtAddressListener);
129  //:Copy constructor
130 
132  //:Assignment operator
133 };
134 
135 /* ============================ INLINE METHODS ============================ */
136 
137 #endif // _PtAddressListener_h_
PtAddressListener & operator=(const PtAddressListener &rhs)
void addressForwardingChanged(const PtAddressEvent &rEvent)
param: (in) rEvent - Reference to the PtEvent containing the specific event information.
Definition: PtEventListener.h:55
void addressDoNotDisturbEnabled(const PtAddressEvent &rEvent)
param: (in) rEvent - Reference to the PtEvent containing the specific event information.
void addressDoNotDisturbDisabled(const PtAddressEvent &rEvent)
param: (in) rEvent - Reference to the PtEvent containing the specific event information.
void addressMessagesWaiting(const PtAddressEvent &rEvent)
param: (in) rEvent - Reference to the PtEvent containing the specific event information.
void addressEventTransmissionEnded(const PtAddressEvent &rEvent)
Definition: PtAddressEvent.h:27
PtAddressListener(PtEventMask *pMask=NULL)
void addressNoMessagesWaiting(const PtAddressEvent &rEvent)
param: (in) rEvent - Reference to the PtEvent containing the specific event information.
Definition: PtAddressListener.h:28
virtual ~PtAddressListener()
param: (in) pMask - Event mask defining events the listener is interested in. This must be a subset o...
Definition: PtEventMask.h:39