Definition at line 15 of file screenManager.h.
Public Types | |
| enum | Status { OPEN = 1, CLOSED = 0, ERROR = -1 } |
| enumeration for the status of the ScreenManager | |
Public Member Functions | |
| int | changeCurrentMenu (Menu *newMenuPtr) |
| changes the menu that is displayed | |
| void | writeUserMessage (char *message) |
| writes a new message to the array - implemented in FIFO | |
| void | updateScreen () |
| clears and updates the screen for the user | |
| Menu * | getCurrentMenu () |
| get the current Menu | |
| void | getUserInput () |
| wait for a command from the user | |
| char * | askUserQuestion (char *question) |
| askes the user a spefic question, send it the question you want to ask returns the user answer | |
| char * | askUserHiddenQuestion (char *question) |
| ask a user a question and hide what they are entering | |
| int | askUserIntQuestion (char *question) |
| ask the user a question expecting a integer reply | |
| void | welcomeMessage () |
| shows the welcome screen | |
Static Public Member Functions | |
| ScreenManager * | theInstance () |
| returns the one and only instance of ScreenManager | |
Protected Member Functions | |
| ScreenManager () | |
| Contructor for the screen Manager - initializes curses. | |
| ~ScreenManager () | |
| brief destructor, shows the exit message | |
| ScreenManager & | operator= (const ScreenManager &) |
Private Attributes | |
| SysLog * | systemLogger |
| reference to the systemLogger | |
| char * | userMessages [7] |
| pointer to all current UserMessages | |
| int | welcomeFile |
| welcomeMessage, shown on startUp | |
| char * | exitMessage |
| exitMessage, shown on shutdown | |
| WINDOW * | messageWindow |
| The message Window. | |
| WINDOW * | menuWindow |
| The menu window. | |
| WINDOW * | inputWindow |
| The inputWindow. | |
Static Private Attributes | |
| Menu * | currentMenu |
| pointer to the current Menu | |
| int | currentMessage |
| pointer to the newest User Message | |
| int | screenCounter |
| keeps track of the number of times the screen has been updated so that it adds a ".." message only every 5 seconds | |
| Status | screenStatus |
| The status of the screenManager. | |
|
|
ask a user a question and hide what they are entering
|
|
|
ask the user a question expecting a integer reply
|
|
|
askes the user a spefic question, send it the question you want to ask returns the user answer
|
|
|
changes the menu that is displayed
|
|
|
get the current Menu
|
|
|
returns the one and only instance of ScreenManager
|
|
|
writes a new message to the array - implemented in FIFO
|
1.3.6