sipXcallLib home page


PsHookswDevWnt.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 _PsHookswDevWnt_h_
12 #define _PsHookswDevWnt_h_
13 
14 // SYSTEM INCLUDES
15 
16 // APPLICATION INCLUDES
17 #include "os/OsDefs.h"
18 #include "ps/PsHookswDev.h"
19 //#include "ps/PsHookswTask.h"
20 
21 // DEFINES
22 // MACROS
23 // EXTERNAL FUNCTIONS
24 // EXTERNAL VARIABLES
25 // CONSTANTS
26 // STRUCTS
27 // TYPEDEFS
28 
29 // FORWARD DECLARATIONS
30 class PsHookswTask;
31 
32 //:Dummy phone set hook switch device support on the Wnt platform
34 {
35 /* //////////////////////////// PUBLIC //////////////////////////////////// */
36 public:
37 
38 /* ============================ CREATORS ================================== */
39 
40  PsHookswDevWnt(PsHookswTask* pHookswTask);
41  //:Constructor
42  // Initialize the interrupt controller for hookswitch interrupt handling
43 
44  virtual
46  //:Destructor
47 
48 /* ============================ MANIPULATORS ============================== */
49 
50  virtual void disableIntr(void);
51  //:Disable hook switch interrupts
52 
53  virtual void enableIntr(UtlBoolean lookForOffHook);
54  //:Enable hook switch interrupts
55 
56 /* ============================ ACCESSORS ================================= */
57 
58  static void setHookState(int hookState);
59  //:Set the hardware state
60  // On NT there is no hardware so it is emulated
61 
62 /* ============================ INQUIRY =================================== */
63 
64  virtual UtlBoolean isOffHook(void);
65  //:Return TRUE if the hookswitch is "off hook", otherwise FALSE.
66 
67  virtual UtlBoolean isOnHook(void);
68  //:Return TRUE if the hookswitch is "on hook", otherwise FALSE.
69 
70 /* //////////////////////////// PROTECTED ///////////////////////////////// */
71 protected:
72 
73 /* //////////////////////////// PRIVATE /////////////////////////////////// */
74 private:
75 
76  static int sHookSwitchState;
77 
78  PsHookswDevWnt(const PsHookswDevWnt& rPsHookswDevWnt);
79  //:Copy constructor (not implemented for this class)
80 
82  //:Assignment operator (not implemented for this class)
83 
84 };
85 
86 /* ============================ INLINE METHODS ============================ */
87 
88 #endif // _PsHookswDevWnt_h_
virtual void disableIntr(void)
Definition: PsHookswDevWnt.cpp:52
Definition: PsHookswDev.h:34
static void setHookState(int hookState)
Definition: PsHookswDevWnt.cpp:62
virtual ~PsHookswDevWnt()
Definition: PsHookswDevWnt.cpp:43
virtual UtlBoolean isOffHook(void)
Definition: PsHookswDevWnt.cpp:69
Definition: PsHookswTask.h:41
PsHookswDevWnt(PsHookswTask *pHookswTask)
Definition: PsHookswDevWnt.cpp:34
virtual UtlBoolean isOnHook(void)
Definition: PsHookswDevWnt.cpp:75
virtual void enableIntr(UtlBoolean lookForOffHook)
Definition: PsHookswDevWnt.cpp:57
PsHookswDevWnt & operator=(const PsHookswDevWnt &rhs)
Definition: PsHookswDevWnt.h:33
static int sHookSwitchState
Definition: PsHookswDevWnt.h:76