sipXcallLib home page


PtAddessCapabilities.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 _PtAddessCapabilities_h_
12 #define _PtAddessCapabilities_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 
29 //:The PtAddressCapabilities class provides methods to reflect the capabilities of the
30 // methods on the PtAddress class.
31 // <p>
32 // The PtProvider.getAddressCapabilities() method returns the static PtAddress capabilities, and the
33 // PtAddress.getCapabilities() method returns the dynamic Address capabilities. The object returned from each of
34 // these methods can be queried with the instanceof operator to check if it supports this interface. This same
35 // interface is used to reflect both static and dynamic PtAddress capabilities.
36 // <p>
37 
39 {
40 /* //////////////////////////// PUBLIC //////////////////////////////////// */
41 public:
42 
43 /* ============================ CREATORS ================================== */
44 
46  //:Default constructor
47 
48  PtAddessCapabilities(const PtAddessCapabilities& rPtAddessCapabilities);
49  //:Copy constructor
50 
51  virtual
53  //:Destructor
54 
55 /* ============================ MANIPULATORS ============================== */
56 
58  //:Assignment operator
59 
60 /* ============================ ACCESSORS ================================= */
61 
62 /* ============================ INQUIRY =================================== */
63 
64  UtlBoolean isObservable();
65  //:Returns true if this Address can be observed, false otherwise.
68 
69 
70  UtlBoolean canSetForwarding();
71  //:Returns true if the application can set the forwarding on this Address, false otherwise.
74 
75 
76 
77  UtlBoolean canGetForwarding();
78  //:Returns true if the application can obtain the current forwarding status on this Address, false otherwise.
81 
82 
83 
84  UtlBoolean canCancelForwarding();
85  //:Returns true if the application can cancel the forwarding on this Address, false otherwise.
88 
89 
90 
91  UtlBoolean canGetDoNotDisturb();
92  //:Returns true if the application can obtain the do not disturb state, false otherwise.
95 
96 
97 
98  UtlBoolean canSetDoNotDisturb();
99  //:Returns true if the application can set the do not disturb state, false otherwise.
102 
103 
104 
105  UtlBoolean canGetMessageWaiting();
106  //:Returns true if the application can obtain the message waiting state, false otherwise.
109 
110 
111 
112  UtlBoolean canSetMessageWaiting();
113  //:Returns true if the application can set the message waiting state, false otherwise.
116 
117 /* //////////////////////////// PROTECTED ///////////////////////////////// */
118 protected:
119 
120 /* //////////////////////////// PRIVATE /////////////////////////////////// */
121 private:
122 
123 };
124 
125 /* ============================ INLINE METHODS ============================ */
126 
127 #endif // _PtAddessCapabilities_h_
Definition: PtAddessCapabilities.h:38
virtual ~PtAddessCapabilities()
UtlBoolean canGetDoNotDisturb()
retcode: True if the application can cancel the forwarding on this Address retcode: false otherwise...
UtlBoolean canSetForwarding()
retcode: TRUE if this Address can be observed retcode: FALSE otherwise.
UtlBoolean canSetMessageWaiting()
retcode: True if the application can obtain the message waiting state retcode: false otherwise...
PtAddessCapabilities & operator=(const PtAddessCapabilities &rhs)
UtlBoolean canGetMessageWaiting()
retcode: True if the application can set the do not disturb state retcode: false otherwise.
UtlBoolean canCancelForwarding()
retcode: True if the application can obtain the current forwarding status on this Address retcode: fa...
Definition: PtAddress.h:189
UtlBoolean canGetForwarding()
retcode: TRUE if the application can set the forwarding on this Address retcode: FALSE otherwise...
UtlBoolean canSetDoNotDisturb()
retcode: True if the application can obtain the do not disturb state retcode: false otherwise...
UtlBoolean isObservable()