sipXcallLib home page


PtPhoneTerminal.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 _PtPhoneTerminal_h_
13 #define _PtPhoneTerminal_h_
14 
15 // SYSTEM INCLUDES
16 // APPLICATION INCLUDES
17 #include "ptapi/PtTerminal.h"
18 #include "ptapi/PtDefs.h"
19 
20 // DEFINES
21 // MACROS
22 // EXTERNAL FUNCTIONS
23 // EXTERNAL VARIABLES
24 // CONSTANTS
25 // STRUCTS
26 // TYPEDEFS
27 // FORWARD DECLARATIONS
28 class PtComponentGroup;
29 
30 //:The PtPhoneTerminal interface extends the PtTerminal interface to provide
31 // functionality for the Phone package. It allows applications to obtain arrays of
32 // telephony Components (each group is called a ComponentGroup) which
33 // represents the physical components of telephones. <br>
34 // <br>
35 // <H3>Do Not Disturb</H3>
36 // The PtPhoneTerminal class defines the <i>do-not-disturb</i> attribute. The
37 // <i>do-not-disturb</i> attribute indicates to the telephony platform that
38 // this terminal does not want to be bothered with incoming telephone calls.
39 // That is, if this feature is activated, the underlying telephone platform
40 // will not ring this terminal for incoming telephone calls. Applications use
41 // the PtPhoneTerminal.setDoNotDisturb() method to activate and deactivate this
42 // feature and the PtPhoneTerminal.getDoNotDisturb() method to return the current
43 // state of this attribute.<br>
44 // <br>
45 // Note that the PtAddress class also carries the <i>do-not-disturb</i>
46 // attribute. The attributes associated with each class are maintained
47 // independently. Maintaining a separate <i>do-not-disturb</i> attribute at
48 // both the terminal and address allows for control over the
49 // <i>do-not-disturb</i> feature at either the terminal or address level.
51 {
52 /* //////////////////////////// PUBLIC //////////////////////////////////// */
53 public:
54 
55 /* ============================ CREATORS ================================== */
56 
58  //:Default constructor
59 
60  virtual
62  //:Destructor
63 
64  PtPhoneTerminal(const PtPhoneTerminal& rPtPhoneTerminal);
65  //:Copy constructor
66 
67  PtPhoneTerminal(const char* terminalName);
68 
69 
70 /* ============================ MANIPULATORS ============================== */
71 
73  //:Assignment operator
74 
75 /* ============================ ACCESSORS ================================= */
76 
77  virtual PtStatus getComponentGroups(PtComponentGroup* pComponentGroup[], int size, int& nItems);
78 
79  //:Returns an array of ComponentGroup objects available on the Terminal. A
80  //:ComponentGroup object is composed of a number of Components.
81  //:Examples of Component objects include headsets, handsets,
82  // speakerphones, and buttons. ComponentGroup objects group Components
83  // together.
90 
91 /* ============================ INQUIRY =================================== */
92 
93 /* //////////////////////////// PROTECTED ///////////////////////////////// */
94 protected:
95 
96 /* //////////////////////////// PRIVATE /////////////////////////////////// */
97 private:
98 
99 
100 };
101 
102 /* ============================ INLINE METHODS ============================ */
103 
104 #endif // _PtPhoneTerminal_h_
PtStatus
Definition: PtDefs.h:49
virtual ~PtPhoneTerminal()
Definition: PtPhoneTerminal.cpp:49
PtPhoneTerminal & operator=(const PtPhoneTerminal &rhs)
Definition: PtPhoneTerminal.cpp:57
Definition: PtPhoneTerminal.h:50
virtual PtStatus getComponentGroups(PtComponentGroup *pComponentGroup[], int size, int &nItems)
Definition: PtPhoneTerminal.cpp:69
PtPhoneTerminal()
Definition: PtPhoneTerminal.cpp:32
Definition: PtTerminal.h:178
Definition: PtComponentGroup.h:37