sipXcallLib home page


PsTaoDisplay.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 _PsTaoDisplay_h_
12 #define _PsTaoDisplay_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 PsTaoDisplay 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 
39 /* ============================ CREATORS ================================== */
40 
41 /* ============================ MANIPULATORS ============================== */
42 
43  void setDisplay(const char*& string, int x, int y);
44  //:Sets the display string at position (x, y).
45 
46  /* ============================ ACCESSORS ================================= */
47 
48  int getDisplayRows();
49  //:Returns the display rows.
50 
51  int getDisplayColumns();
52  //:Returns the display columns.
53 
54  char* getDisplay(int x, int y);
55  // returns the string displayed at (x, y)
56 
57 /* ============================ INQUIRY =================================== */
58 
59 /* //////////////////////////// PROTECTED ///////////////////////////////// */
60 protected:
61 
62 /* //////////////////////////// PRIVATE /////////////////////////////////// */
63 private:
64 
65  PsTaoDisplay(const UtlString& rName, int initialState);
66  //:Constructor
67 
68  virtual
69  ~PsTaoDisplay();
70  //:Destructor
71 
72  PsTaoDisplay();
73  //:Default constructor (not implemented for this class)
74 
75  PsTaoDisplay(const PsTaoDisplay& rPsTaoDisplay);
76  //:Copy constructor (not implemented for this class)
77 
78  PsTaoDisplay& operator=(const PsTaoDisplay& rhs);
79  //:Assignment operator (not implemented for this class)
80 
81 };
82 
83 /* ============================ INLINE METHODS ============================ */
84 
85 #endif // _PsTaoDisplay_h_
int getDisplayColumns()
Definition: PsTaoComponent.h:32
int getDisplayRows()
PsTaoDisplay()
Definition: PsTaoDisplay.cpp:29
Definition: PsTaoDisplay.h:29
virtual ~PsTaoDisplay()
Definition: PsTaoDisplay.cpp:44
PsTaoDisplay & operator=(const PsTaoDisplay &rhs)
Definition: PsTaoDisplay.cpp:52
char * getDisplay(int x, int y)
void setDisplay(const char *&string, int x, int y)
Definition: PsPhoneTask.h:50