sipXcallLib home page


PtMultiCallEvent.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 _PtMultiCallEvent_h_
13 #define _PtMultiCallEvent_h_
14 
15 // SYSTEM INCLUDES
16 // APPLICATION INCLUDES
17 // DEFINES
18 // MACROS
19 // EXTERNAL FUNCTIONS
20 // EXTERNAL VARIABLES
21 // CONSTANTS
22 // STRUCTS
23 // TYPEDEFS
24 // FORWARD DECLARATIONS
25 
26 //:PtMultiCallEvent contains PtCall-associated event data,
27 //:where multiple calls are involved.
28 // MultiCall events are typically merges of multiple calls into a single call.
29 // The original set of calls may be retrieved via the getOldCalls method. The
30 // new call that is generated, or the resulting merged call, may be retrieved
31 // via the inherited getCall method.
32 
34 {
35 /* //////////////////////////// PUBLIC //////////////////////////////////// */
36 public:
37 
38 /* ============================ CREATORS ================================== */
39 
40  PtMultiCallEvent(const PtMultiCallEvent& rPtMultiCallEvent);
41  //:Copy constructor
42 
43  virtual
45  //:Destructor
46 
47 /* ============================ MANIPULATORS ============================== */
48 
50  //:Assignment operator
51 
52 /* ============================ ACCESSORS ================================= */
53 
54  PtStatus getOldCalls(PtCall*[] calls, int size, int& nItems);
55  //:Returns an array of pointers to PtCall objects that are involved
56  //:with this multicall event.
57  // The caller provides an array that can hold up to <i>size</i>
58  // PtCall pointers. This method will fill in the <i>calls</i> array with
59  // up to <i>size</i> pointers. The actual number of pointers filled in
60  // is passed back via the <i>nItems</i> argument.
67 
68  PtStatus numOldCalls(int& count);
69  //:Returns the number of calls involved with this multicall event.
73 
74 /* ============================ INQUIRY =================================== */
75 
76 /* //////////////////////////// PROTECTED ///////////////////////////////// */
77 protected:
78 
79 /* //////////////////////////// PRIVATE /////////////////////////////////// */
80 private:
82  //:Default constructor
83 };
84 
85 /* ============================ INLINE METHODS ============================ */
86 
87 #endif // _PtMultiCallEvent_h_
PtStatus
Definition: PtDefs.h:49
virtual ~PtMultiCallEvent()
PtMultiCallEvent()
param: (out) count - The number of calls retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILAB...
Definition: PtMultiCallEvent.h:33
Definition: PtCallEvent.h:30
PtMultiCallEvent & operator=(const PtMultiCallEvent &rhs)
Definition: PtCall.h:253
PtStatus numOldCalls(int &count)
param: (out) calls - The array of PtCall pointers param: (in) size - The number of elements in the ca...
PtStatus getOldCalls(PtCall *[] calls, int size, int &nItems)