sipXcallLib home page


PsTaoHookswitch.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 _PsTaoHookswitch_h_
12 #define _PsTaoHookswitch_h_
13 
14 // SYSTEM INCLUDES
15 
16 // APPLICATION INCLUDES
17 #include "ps/PsTaoComponent.h"
18 
19 // DEFINES
20 // MACROS
21 // EXTERNAL FUNCTIONS
22 // EXTERNAL VARIABLES
23 // CONSTANTS
24 // STRUCTS
25 // TYPEDEFS
26 // FORWARD DECLARATIONS
27 
28 //:The PsTaoHookswitch class models the phone hook switch.
30 {
31  friend class PsPhoneTask;
32  // The PsPhoneTask is responsible for creating and destroying
33  // all objects derived from the PsTaoComponent class. No other entity
34  // should invoke the constructors or destructors for these classes.
35 
36 /* //////////////////////////// PUBLIC //////////////////////////////////// */
37 public:
38 
40  {
43  };
44 
45 /* ============================ CREATORS ================================== */
46 
47 /* ============================ MANIPULATORS ============================== */
48 
49  void setHookSwitch(int hookswitchState);
50  //:Sets the state of the hookswitch to either ON_HOOK or OFF_HOOK.
51 
52 /* ============================ ACCESSORS ================================= */
53 
54  int getHookSwitchState(void);
55  //:Returns the current state of the hookswitch.
56 
57 /* ============================ INQUIRY =================================== */
58 
59 /* //////////////////////////// PROTECTED ///////////////////////////////// */
60 protected:
61  PsTaoHookswitch(const UtlString& rComponentName, int componentType);
62 
63 /* //////////////////////////// PRIVATE /////////////////////////////////// */
64 private:
65 
66  int mHookState; // hookswitch state
67 
68 
69  virtual
71  //:Destructor
72 
74  //:Default constructor (not implemented for this class)
75 
76  PsTaoHookswitch(const PsTaoHookswitch& rPsTaoHookswitch);
77  //:Copy constructor (not implemented for this class)
78 
80  //:Assignment operator (not implemented for this class)
81 
82 };
83 
84 /* ============================ INLINE METHODS ============================ */
85 
86 #endif // _PsTaoHookswitch_h_
Definition: PsTaoComponent.h:32
Definition: PsTaoHookswitch.h:42
PsTaoHookswitch()
Definition: PsTaoHookswitch.cpp:29
int mHookState
Definition: PsTaoHookswitch.h:66
Definition: PsTaoHookswitch.h:41
HookswitchState
Definition: PsTaoHookswitch.h:39
void setHookSwitch(int hookswitchState)
Definition: PsTaoHookswitch.h:29
virtual ~PsTaoHookswitch()
Definition: PsTaoHookswitch.cpp:44
int getHookSwitchState(void)
PsTaoHookswitch & operator=(const PsTaoHookswitch &rhs)
Definition: PsTaoHookswitch.cpp:52
Definition: PsPhoneTask.h:50