sipXcallLib home page


PtTerminalCapabilities.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 _PtTerminalCapabilities_h_
12 #define _PtTerminalCapabilities_h_
13 
14 // SYSTEM INCLUDES
15 
16 // APPLICATION INCLUDES
17 #include "os/OsDefs.h"
18 
19 // DEFINES
20 // MACROS
21 // EXTERNAL FUNCTIONS
22 // EXTERNAL VARIABLES
23 // CONSTANTS
24 // STRUCTS
25 // TYPEDEFS
26 // FORWARD DECLARATIONS
27 class PtAddress;
28 class PtTerminal;
29 class PtConnection;
31 
32 //:The TerminalCapabilities interface represents the initial capabilities interface for the Terminal.
33 // This interface supports basic queries for the core package.
34 // <p>
35 // Applications obtain the static Terminal capabilities via the Provider.getTerminalCapabilities()
36 // method, and the dynamic capabilities via the Terminal.getCapabilities() method. This interface
37 // is used to represent both static and dynamic capabilities.
38 // <p>
39 // Any package which extends the core Terminal interface should also extend this interface to
40 // provide additional capability queries for that particular package.
41 // <p>
42 
44 {
45 /* //////////////////////////// PUBLIC //////////////////////////////////// */
46 public:
47 
48 /* ============================ CREATORS ================================== */
49 
51  //:Default constructor
52 
53  PtTerminalCapabilities(const PtTerminalCapabilities& rPtTerminalCapabilities);
54  //:Copy constructor
55 
56  virtual
58  //:Destructor
59 
60 /* ============================ MANIPULATORS ============================== */
61 
63  //:Assignment operator
64 
65 /* ============================ ACCESSORS ================================= */
66 
67 /* ============================ INQUIRY =================================== */
68 
69  UtlBoolean isObservable();
70  //:Returns true if this terminal can be observed, false otherwise.
73 
74 
75 
76  UtlBoolean canGetDoNotDisturb();
77  //:Returns true if the application can obtain the do not disturb state, false otherwise.
80 
81 
82 
83  UtlBoolean canSetDoNotDisturb();
84  //:Returns true if the application can set the do not disturb state, false otherwise.
87 
88 
89 
90  UtlBoolean canPickup(PtConnection connection, PtAddress address);
91  //:Returns true if the application can invoke the overloaded pickup feature which takes a
92  // Connection and an Address as arguments, false otherwise.
93  // <p>
94  // The arguments provided are for typing purposes only. The particular instances of the
95  // objects given are ignored and not used to determine the capability outcome is any way.
100 
101 
102 
103  UtlBoolean canPickup(PtTerminalConnection tc, PtAddress address);
104  //:Returns true if the application can invoke the overloaded pickup feature which takes a
105  // PtTerminalConnection and an PtAddress as arguments, false otherwise.
106  // <p>
107  // The arguments provided are for typing purposes only. The particular instances of the
108  // objects given are ignored and not used to determine the capability outcome is any way.
113 
114 
115 
116  UtlBoolean canPickup(PtAddress address1, PtAddress address2);
117  //:Returns true if the application can invoke the overloaded pickup feature which takes two
118  // Addresses as arguments, false otherwise.
119  // <p>
120  // The arguments provided are for typing purposes only. The particular instances of the
121  // objects given are ignored and not used to determine the capability outcome is any way.
126 
127 
128 
129  UtlBoolean canPickupFromGroup(UtlString group, PtAddress address);
130  //:Returns true if the application can invoke the pickup from group feature which takes a string
131  // pickup group code and an Address as arguments, false otherwise.
132  // <p>
133  // The arguments provided are for typing purposes only. The particular instances of the
134  // objects given are ignored and not used to determine the capability outcome is any way.
139 
140 
141 
142  UtlBoolean canPickupFromGroup(PtAddress address);
143  //:Returns true if the application can invoke the pickup from group feature which takes an
144  // Address as an argument, false otherwise.
145  // <p>
146  // The arguments provided are for typing purposes only. The particular instances of the
147  // objects given are ignored and not used to determine the capability outcome is any way.
151 
152 /* //////////////////////////// PROTECTED ///////////////////////////////// */
153 protected:
154 
155 /* //////////////////////////// PRIVATE /////////////////////////////////// */
156 private:
157 
158 };
159 
160 /* ============================ INLINE METHODS ============================ */
161 
162 #endif // _PtTerminalCapabilities_h_
UtlBoolean canGetDoNotDisturb()
retcode: True if this terminal can be observed, retcode: false otherwise.
PtTerminalCapabilities & operator=(const PtTerminalCapabilities &rhs)
UtlBoolean canPickupFromGroup(UtlString group, PtAddress address)
param: address1 - This argument is used for typing information to determine the overloaded version of...
UtlBoolean canSetDoNotDisturb()
retcode: True if the application can obtain the do not disturb state, retcode: false otherwise...
Definition: PtTerminalConnection.h:139
virtual ~PtTerminalCapabilities()
Definition: PtConnection.h:178
Definition: PtTerminal.h:178
Definition: PtAddress.h:189
UtlBoolean isObservable()
UtlBoolean canPickup(PtConnection connection, PtAddress address)
retcode: True if the application can set the do not disturb state, retcode: false otherwise...
Definition: PtTerminalCapabilities.h:43