sipXcallLib home page


PtSingleCallMetaEvent.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2004-2006 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
9 // Licensed to SIPfoundry under a Contributor Agreement.
10 //
11 // $$
13 
14 
15 #ifndef _PtSingleCallMetaEvent_h_
16 #define _PtSingleCallMetaEvent_h_
17 
18 // SYSTEM INCLUDES
19 // APPLICATION INCLUDES
20 #include "ptapi/PtMetaEvent.h"
21 #include "ptapi/PtCall.h"
22 
23 // DEFINES
24 // MACROS
25 // EXTERNAL FUNCTIONS
26 // EXTERNAL VARIABLES
27 // CONSTANTS
28 // STRUCTS
29 // TYPEDEFS
30 // FORWARD DECLARATIONS
31 
32 //:The <CODE>SingleCallMetaEvent</CODE> interface is the base interface for
33 // all single-call Call Meta events.
34 // All single-call MetaEvent's must extend this interface.
35 // Events which extend this interface are reported via the
36 // <CODE>CallListener</CODE> interface.
37 // <p>
38 // An individual <CODE>SingleCallMetaEvent</CODE>
39 // conveys, directly and with necessary details,
40 // what an application needs to know to respond to
41 // a higher-level call event that only effects a single call.
42 // The specific SingleCallMetaEvent event is indicated by
43 // the <CODE>Event.getID()</CODE>
44 // value returned by the event.
45 // <p>
46 // Since all these Meta events relate to a single JTAPI Call entity,
47 // this interface provides the method getCall to grant the application access
48 // to the affected Call.
49 // <p>
50 // The core package defines events which are reported when
51 // high-level actions occur. The event IDs
52 // (as returned by <CODE>Event.getID()</CODE>) are:
53 // <CODE>SINGLECALL_META_PROGRESS_STARTED</CODE>,
54 // <CODE>SINGLECALL_META_PROGRESS_ENDED</CODE>,
55 // <CODE>MULTICALL_META_TRANSFER_STARTED</CODE> and
56 // <CODE>MULTICALL_META_TRANSFER_ENDED</CODE>.
57 
59 {
60 /* //////////////////////////// PUBLIC //////////////////////////////////// */
61 public:
62 
64 
65  // Event id codes returned for this interface
67  {
72 
77 
82  };
87 
88 /* ============================ CREATORS ================================== */
90  int metaCode,
91  TaoClientTask *pClient,
92  int sipResponseCode,
93  const char* sipResponseText,
94  const char* callId = 0);
95  //:Default constructor
96 
97  PtSingleCallMetaEvent(const PtSingleCallMetaEvent& rPtSingleCallMetaEvent);
98  //:Copy constructor
99 
100  virtual
102  //:Destructor
103 
104 /* ============================ MANIPULATORS ============================== */
105 
107  //:Assignment operator
108 
109 /* ============================ ACCESSORS ================================= */
110 
111  PtStatus getCall(PtCall& rCall) const ;
112  //:Returns the Call object associated with the higher-level operation
113  // reported by this SingleCallMetaEvent event.
117 
118  static const char* className();
119  //:Returns the name of this class.
121 
122 /* ============================ INQUIRY =================================== */
123 
124  virtual PtBoolean isClass(const char* pClassName);
125  //:Determines if this object if of the specified type.
129 
130  virtual PtBoolean isInstanceOf(const char* pClassName);
131  //:Determines if this object is either an instance of or is derived from
132  //:the specified type.
136 
137 /* //////////////////////////// PROTECTED ///////////////////////////////// */
138 protected:
139 
140 /* //////////////////////////// PRIVATE /////////////////////////////////// */
141 private:
142 
143 };
144 
145 /* ============================ INLINE METHODS ============================ */
146 
147 #endif // _PtSingleCallMetaEvent_h_
PtStatus
Definition: PtDefs.h:49
Definition: PtSingleCallMetaEvent.h:73
PtEventId
Definition: PtEvent.h:83
virtual ~PtSingleCallMetaEvent()
Definition: PtSingleCallMetaEvent.cpp:53
Definition: PtSingleCallMetaEvent.h:80
int PtBoolean
Definition: PtDefs.h:71
Definition: PtSingleCallMetaEvent.h:75
PtSingleCallMetaEvent & operator=(const PtSingleCallMetaEvent &rhs)
Definition: PtSingleCallMetaEvent.cpp:59
virtual PtBoolean isInstanceOf(const char *pClassName)
param: (in) pClassName - The string to compare with the name of this class. retcode: TRUE - If the gi...
PtStatus getCall(PtCall &rCall) const
Definition: PtSingleCallMetaEvent.cpp:74
Definition: PtMetaEvent.h:65
#define PT_CLASS_INFO_MEMBERS
Definition: PtDefs.h:73
virtual PtBoolean isClass(const char *pClassName)
returns: Returns the string representation of the name of this class
Definition: PtSingleCallMetaEvent.h:79
Definition: PtSingleCallMetaEvent.h:71
PtSingleCallMetaEventId
Definition: PtSingleCallMetaEvent.h:66
PtSingleCallMetaEvent(PtEventId eventId, int metaCode, TaoClientTask *pClient, int sipResponseCode, const char *sipResponseText, const char *callId=0)
enumcode: SINGLECALL_META_PROGRESS_STARTED - event indicates that the current call in the telephony p...
Definition: PtSingleCallMetaEvent.cpp:30
Definition: PtSingleCallMetaEvent.h:68
Definition: PtSingleCallMetaEvent.h:70
Definition: PtSingleCallMetaEvent.h:74
static const char * className()
param: (out) rCall - The result Call associated with this event. retcode: PT_SUCCESS - Success retcod...
Definition: PtSingleCallMetaEvent.h:76
Definition: PtSingleCallMetaEvent.h:81
Definition: PtSingleCallMetaEvent.h:78
Definition: PtCall.h:253
Definition: TaoClientTask.h:50
Definition: PtSingleCallMetaEvent.h:58
Definition: PtSingleCallMetaEvent.h:69