sipXcallLib home page


PtCallEvent.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 _PtCallEvent_h_
12 #define _PtCallEvent_h_
13 
14 // SYSTEM INCLUDES
15 // APPLICATION INCLUDES
16 #include <ptapi/PtEvent.h>
17 // DEFINES
18 // MACROS
19 // EXTERNAL FUNCTIONS
20 // EXTERNAL VARIABLES
21 // CONSTANTS
22 // STRUCTS
23 // TYPEDEFS
24 // FORWARD DECLARATIONS
25 class PtCall;
26 class TaoClientTask;
27 
28 //:PtCallEvent contains PtCall-associated event data
29 
30 class PtCallEvent : public PtEvent
31 {
32 /* //////////////////////////// PUBLIC //////////////////////////////////// */
33 public:
35 
36 /* ============================ CREATORS ================================== */
37 
39  //:Default constructor
40 
41  PtCallEvent(PtEventId eventId,
42  int metaCode,
43  const char* callId,
44  TaoClientTask *pClient,
45  int sipResponseCode,
46  const char* sipResponseText,
47  const char* newCallId = 0,
48  const char** oldCallIds = 0,
49  int numOldCalls = 0);
50  //: Constructor.
51 
52  PtCallEvent(TaoClientTask *pClient);
53  //: Constructor.
54 
55  PtCallEvent(const PtCallEvent& rPtCallEvent);
56  //:Copy constructor
57 
58  virtual
59  ~PtCallEvent();
60  //:Destructor
61 
62 /* ============================ MANIPULATORS ============================== */
63 
64  PtCallEvent& operator=(const PtCallEvent& rhs);
65  //:Assignment operator
66 
67 /* ============================ ACCESSORS ================================= */
68 
69  PtStatus getCall(PtCall& rCall) const;
70  //:Returns the call object associated with this event.
74 
75  static const char* className();
76  //:Returns the name of this class.
78 
79 /* ============================ INQUIRY =================================== */
80 
81  virtual PtBoolean isClass(const char* pClassName);
82  //:Determines if this object if of the specified type.
86 
87  virtual PtBoolean isInstanceOf(const char* pClassName);
88  //:Determines if this object is either an instance of or is derived from
89  //:the specified type.
93 
94 /* //////////////////////////// PROTECTED ///////////////////////////////// */
95 
96 /* //////////////////////////// PRIVATE /////////////////////////////////// */
97 private:
98 
99 };
100 
101 /* ============================ INLINE METHODS ============================ */
102 
103 #endif // _PtCallEvent_h_
PtStatus
Definition: PtDefs.h:49
PtEventId
Definition: PtEvent.h:83
PtCallEvent & operator=(const PtCallEvent &rhs)
Definition: PtCallEvent.cpp:77
virtual PtBoolean isClass(const char *pClassName)
returns: Returns the string representation of the name of this class
int PtBoolean
Definition: PtDefs.h:71
Definition: PtEvent.h:85
#define PT_CLASS_INFO_MEMBERS
Definition: PtDefs.h:73
PT_CLASS_INFO_MEMBERS PtCallEvent(PtEvent::PtEventId eventId=EVENT_INVALID)
Definition: PtCallEvent.cpp:33
virtual ~PtCallEvent()
Definition: PtCallEvent.cpp:69
The PtEvent encapulates data associated with an event notification. The PtEvent is sent to an applica...
Definition: PtEvent.h:76
PtStatus getCall(PtCall &rCall) const
Definition: PtCallEvent.cpp:89
Definition: PtCallEvent.h:30
static const char * className()
param: (out) rCall - The reference used to return the call pointer retcode: PT_SUCCESS - Success retc...
virtual PtBoolean isInstanceOf(const char *pClassName)
param: (in) pClassName - the string to compare with the name of this class. retcode: TRUE - if the gi...
Definition: PtCall.h:253
Definition: TaoClientTask.h:50