sipXcallLib home page


PtConnectionCapabilities.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 _PtConnectionCapabilities_h_
13 #define _PtConnectionCapabilities_h_
14 
15 // SYSTEM INCLUDES
16 
17 // APPLICATION INCLUDES
18 #include "os/OsDefs.h"
19 
20 // DEFINES
21 // MACROS
22 // EXTERNAL FUNCTIONS
23 // EXTERNAL VARIABLES
24 // CONSTANTS
25 // STRUCTS
26 // TYPEDEFS
27 // FORWARD DECLARATIONS
28 class PtConnection;
29 
30 //:The PtConnectionCapabilities interface represents the initial capabilities interface for the
31 // PtConnection. This interface supports basic queries for the core package.
32 // <p>
33 // Applications obtain the static Connection capabilities via the
34 // PtProvider.getConnectionCapabilities() method, and the dynamic capabilities via the
35 // PtConnection.getCapabilities() method. This interface is used to represent both static and
36 // dynamic capabilities.
37 // <p>
38 // Any package which extends the core Connection interface should also extend this interface to
39 // provide additional capability queries for that particular package.
40 // <p>
41 
43 {
44 /* //////////////////////////// PUBLIC //////////////////////////////////// */
45 public:
46 
47 /* ============================ CREATORS ================================== */
48 
50  //:Default constructor
51 
52  PtConnectionCapabilities(const PtConnectionCapabilities& rPtConnectionCapabilities);
53  //:Copy constructor
54 
55  virtual
57  //:Destructor
58 
59 /* ============================ MANIPULATORS ============================== */
60 
62  //:Assignment operator
63 
64 /* ============================ ACCESSORS ================================= */
65 
66 /* ============================ INQUIRY =================================== */
67 
68  UtlBoolean canDisconnect();
69  //:Returns true if the application can invoke Connection.disconnect()perform a disconnect(),
70  // false otherwise.
73 
74 
75  UtlBoolean canRedirect();
76  //:Returns true if the application can invoke the redirect feature, false otherwise.
79 
80 
81 
82  UtlBoolean canAddToAddress();
83  //:Returns true if the application can invoke the add to address feature, false otherwise.
86 
87 
88 
89  UtlBoolean canAccept();
90  //:Returns true if the application can invoke the accept feature, false otherwise.
93 
94 
95 
96  UtlBoolean canReject();
97  //:Returns true if the application can invoke the reject feature, false otherwise.
100 
101 
102 
103  UtlBoolean canPark();
104  //:Returns true if the application can invoke the park feature, false otherwise.
107 
108 /* //////////////////////////// PROTECTED ///////////////////////////////// */
109 protected:
110 
111 /* //////////////////////////// PRIVATE /////////////////////////////////// */
112 private:
113 
114 };
115 
116 /* ============================ INLINE METHODS ============================ */
117 
118 #endif // _PtConnectionCapabilities_h_
virtual ~PtConnectionCapabilities()
UtlBoolean canReject()
retcode: True if the application can invoke the accept feature, retcode: false otherwise.
UtlBoolean canPark()
retcode: True if the application can invoke the reject feature, retcode: false otherwise.
UtlBoolean canRedirect()
retcode: True if the application can disconnect, retcode: false otherwise.
Definition: PtConnection.h:178
UtlBoolean canAccept()
retcode: True if the application can invoke the add to address feature, retcode: false otherwise...
PtConnectionCapabilities & operator=(const PtConnectionCapabilities &rhs)
Definition: PtConnectionCapabilities.h:42
UtlBoolean canDisconnect()
UtlBoolean canAddToAddress()
retcode: True if the application can invoke the redirect feature, retcode: false otherwise.