sipXcallLib home page


PtPhoneTextDisplay.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 _PtPhoneTextDisplay_h_
13 #define _PtPhoneTextDisplay_h_
14 
15 // SYSTEM INCLUDES
16 // APPLICATION INCLUDES
17 #include "ptapi/PtPhoneDisplay.h"
18 
19 // DEFINES
20 // MACROS
21 // EXTERNAL FUNCTIONS
22 // EXTERNAL VARIABLES
23 // CONSTANTS
24 // STRUCTS
25 // TYPEDEFS
26 // FORWARD DECLARATIONS
27 
28 //:The PtPhoneTextDisplay class models a character display.
30 {
31 /* //////////////////////////// PUBLIC //////////////////////////////////// */
32 public:
33 
34 /* ============================ CREATORS ================================== */
35 
36 /* ============================ MANIPULATORS ============================== */
37 
38  virtual PtStatus setDisplay(char* displayInfo, int x, int y);
39  //:Display the indicated information starting at coordinates (x, y).
44 
45 /* ============================ ACCESSORS ================================= */
46 
47  virtual PtStatus getDisplay(char*& rpContents, int maxLen, int x, int y);
48  //:Returns a copy of the displayed string starting at coordinates (x, y).
54 
55  virtual PtStatus getDisplayColumns(int& rNumColumns);
56  //:Returns the number of display columns.
60 
61  virtual PtStatus getDisplayRows(int& rNumRows);
62  //:Returns the number of display rows.
66 
67 // virtual PtStatus getName(char*& rpName);
68  //:Returns the name associated with this component.
72 
73 // virtual PtStatus getType(int& rType);
74  //:Returns the type associated with this component.
78 
79 /* ============================ INQUIRY =================================== */
80 
81 /* //////////////////////////// PROTECTED ///////////////////////////////// */
82 protected:
83  int mType;
84  char* mpName;
85 
87  //:Default constructor
88 
89  virtual
91  //:Destructor
92 
93 /* //////////////////////////// PRIVATE /////////////////////////////////// */
94 private:
95 
96  PtPhoneTextDisplay(const PtPhoneTextDisplay& rPtPhoneTextDisplay);
97  //:Copy constructor (not implemented for this class)
98 
100  //:Assignment operator (not implemented for this class)
101 
102 };
103 
104 /* ============================ INLINE METHODS ============================ */
105 
106 #endif // _PtPhoneTextDisplay_h_
PtStatus
Definition: PtDefs.h:49
PtPhoneTextDisplay & operator=(const PtPhoneTextDisplay &rhs)
Definition: PtPhoneTextDisplay.cpp:54
char * mpName
Definition: PtPhoneTextDisplay.h:84
virtual PtStatus setDisplay(char *displayInfo, int x, int y)
Definition: PtPhoneTextDisplay.cpp:62
Definition: PtPhoneTextDisplay.h:29
virtual PtStatus getDisplayColumns(int &rNumColumns)
param: (in) rpContents - A pointer to the copy of the displayed string param: (in) maxLen - Size of t...
Definition: PtPhoneTextDisplay.cpp:74
int mType
param: (out) rNumRows - The number of display rows retcode: PT_SUCCESS - Success retcode: PT_PROVIDER...
Definition: PtPhoneTextDisplay.h:83
virtual ~PtPhoneTextDisplay()
Definition: PtPhoneTextDisplay.cpp:46
virtual PtStatus getDisplayRows(int &rNumRows)
param: (out) rNumColumns - The number of display columns retcode: PT_SUCCESS - Success retcode: PT_PR...
Definition: PtPhoneTextDisplay.cpp:79
Definition: PtPhoneDisplay.h:34
virtual PtStatus getDisplay(char *&rpContents, int maxLen, int x, int y)
param: (in) displayInfo - the string to be displayed param: (in) x,y - The starting coordinates for d...
Definition: PtPhoneTextDisplay.cpp:69
PtPhoneTextDisplay()
Definition: PtPhoneTextDisplay.cpp:34