sipXcallLib home page


PtTerminalConnectionCapabilities.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 _PtTerminalConnectionCapabilities_h_
13 #define _PtTerminalConnectionCapabilities_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
29 
30 //:The PtTerminalConnectionCapabilities interface represents the initial capabilities interface for the
31 // TerminalConnection. This interface supports basic queries for the core package.
32 // <p>
33 // Applications obtain the static TerminalConnection capabilities via the
34 // Provider.getTerminalConnectionCapabilities() method, and the dynamic capabilities via the
35 // TerminalConnection.getCapabilities() method. This interface is used to represent both static
36 // and dynamic capabilities.
37 // <p>
38 // Any package which extends the core TerminalConnection interface should also extend this
39 // interface to provide additional capability queries for that particular package. // <p>
40 // <p>
41 
43 {
44 /* //////////////////////////// PUBLIC //////////////////////////////////// */
45 public:
46 
47 /* ============================ CREATORS ================================== */
48 
50  //:Default constructor
51 
52  PtTerminalConnectionCapabilities(const PtTerminalConnectionCapabilities& rPtTerminalConnectionCapabilities);
53  //:Copy constructor
54 
55  virtual
57  //:Destructor
58 
59 /* ============================ MANIPULATORS ============================== */
60 
62  //:Assignment operator
63 
64 /* ============================ ACCESSORS ================================= */
65 
66 /* ============================ INQUIRY =================================== */
67 
68  UtlBoolean canAnswer();
69  //:Returns true if the application can invoke TerminalConnection.answer(), false otherwise.
72 
73 
74 
75  UtlBoolean canHold();
76  //:Returns true if the application can invoke the hold feature, false otherwise.
79 
80 
81 
82  UtlBoolean canUnhold();
83  //:Returns true if the application can invoke the unhold feature, false otherwise.
86 
87 
88 
89  UtlBoolean canJoin();
90  //:Returns true if the application can invoke the join feature, false otherwise.
93 
94 
95 
96  UtlBoolean canLeave();
97  //:Returns true if the application can invoke the leave feature, false otherwise.
100 
101 
102 /* //////////////////////////// PROTECTED ///////////////////////////////// */
103 protected:
104 
105 /* //////////////////////////// PRIVATE /////////////////////////////////// */
106 private:
107 
108 };
109 
110 /* ============================ INLINE METHODS ============================ */
111 
112 #endif // _PtTerminalConnectionCapabilities_h_
UtlBoolean canHold()
retcode: True if the application can answer, false otherwise retcode: false otherwise.
UtlBoolean canJoin()
retcode: True if the application can invoke the unhold feature, retcode: false otherwise.
UtlBoolean canLeave()
retcode: True if the application can invoke the join feature, retcode: false otherwise.
PtTerminalConnectionCapabilities & operator=(const PtTerminalConnectionCapabilities &rhs)
Definition: PtTerminalConnectionCapabilities.h:42
Definition: PtTerminalConnection.h:139
UtlBoolean canUnhold()
retcode: True if the application can invoke the hold feature, retcode: false otherwise.