sipXcallLib home page


PsTaoComponent.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 _PsTaoComponent_h_
12 #define _PsTaoComponent_h_
13 
14 // SYSTEM INCLUDES
15 
16 // APPLICATION INCLUDES
17 #include "utl/UtlString.h"
18 #include "os/OsMutex.h"
19 
20 // DEFINES
21 // MACROS
22 // EXTERNAL FUNCTIONS
23 // EXTERNAL VARIABLES
24 // CONSTANTS
25 // STRUCTS
26 // TYPEDEFS
27 // FORWARD DECLARATIONS
28 
29 //:The PsTaoComponent class is the base class for all individual components
30 //:used by the TAO (Telephony Application Objects layer) to model telephone
31 //:hardware. Each distinct component type is derived from this class.
33 {
34 /* //////////////////////////// PUBLIC //////////////////////////////////// */
35 public:
36 
38  {
48  };
49 
50 /* ============================ CREATORS ================================== */
51 
52 /* ============================ MANIPULATORS ============================== */
53 
54 /* ============================ ACCESSORS ================================= */
55 
56  void getName(UtlString& rName);
57  //:Returns the name of the component
58 
59  int getType(void);
60  //:Returns the type of the component, either BUTTON, DISPLAY,
61  //:GRAPHIC_DISPLAY, HOOKSWITCH, LAMP, MICROPHONE, RINGER or SPEAKER.
62 
63 /* ============================ INQUIRY =================================== */
64 
65 /* //////////////////////////// PROTECTED ///////////////////////////////// */
66 protected:
67 
68  OsMutex mMutex; // mutex used to synchronize access
69  UtlString mName; // the name of this component
70  int mType; // the type of this component
71 
72  PsTaoComponent(const UtlString& rComponentName, int componentType);
73  //:Constructor
74 
76  //:Default constructor (not implemented for this class)
77 
78  virtual
80  //:Destructor
81 
82  OsMutex* getMutex(void);
83  //:Return the mutex used to synchronize access to an instance of this
84  //:class.
85 
86 /* //////////////////////////// PRIVATE /////////////////////////////////// */
87 private:
88 
89 
90  PsTaoComponent(const PsTaoComponent& rPsTaoComponent);
91  //:Copy constructor (not implemented for this class)
92 
94  //:Assignment operator (not implemented for this class)
95 
96 };
97 
98 /* ============================ INLINE METHODS ============================ */
99 
100 #endif // _PsTaoComponent_h_
Definition: PsTaoComponent.h:32
OsMutex * getMutex(void)
Definition: PsTaoComponent.cpp:78
Definition: PsTaoComponent.h:47
Definition: PsTaoComponent.h:41
Definition: PsTaoComponent.h:42
virtual ~PsTaoComponent()
Definition: PsTaoComponent.cpp:47
Definition: PsTaoComponent.h:43
UtlString mName
Definition: PsTaoComponent.h:69
int getType(void)
Definition: PsTaoComponent.cpp:70
Definition: PsTaoComponent.h:39
PsComponentType
Definition: PsTaoComponent.h:37
void getName(UtlString &rName)
Definition: PsTaoComponent.cpp:65
Definition: PsTaoComponent.h:45
PsTaoComponent & operator=(const PsTaoComponent &rhs)
Definition: PsTaoComponent.cpp:56
int mType
Definition: PsTaoComponent.h:70
Definition: PsTaoComponent.h:46
PsTaoComponent()
Definition: PsTaoComponent.cpp:28
OsMutex mMutex
Definition: PsTaoComponent.h:68
Definition: PsTaoComponent.h:40
Definition: PsTaoComponent.h:44