#include "api/LCDClient.h"
Inheritance diagram for LCDClient:
Definition at line 28 of file LCDClient.h.
Public Member Functions | |
LCDClient (const std::string &server, int port=13666) | |
Constructor. | |
~LCDClient () | |
Destructor. | |
void | sendCommand (const std::string &cmd, const std::string ¶meters="") |
Send raw commands to server. | |
const std::string & | getServerVersion () const |
Returns connected server version. | |
const std::string & | getProtocolVersion () const |
Returns protocol version used by the server. | |
int | getWidth () const |
Returns LCD width. | |
int | getHeight () const |
Returns LCD height. | |
int | getCharWidth () const |
Get width of a character on LCD. | |
int | getCharHeight () const |
Get height of a character on LCD. | |
void | setName (std::string name) |
Change the name of the client. | |
void | setBackLight (std::string backlight) |
Enable or disable backlight. | |
void | assignKey (KeyEvent key, LCDCallback *callback) |
Assign a callback to a key. | |
void | add (LCDElement *child) |
Add a child to the component. | |
const std::string & | getId () |
Returns Id of the element. | |
Static Public Member Functions | |
bool | exists (std::string id) |
Test if a widget with given Id exists. |
|
This constructor needs information to connect to the LCDproc server.
Definition at line 11 of file LCDClient.cpp. |
|
This method is used to add a child to a component.
Definition at line 110 of file LCDElement.cpp. |
|
Used to call a user function when a key is pressed.
Definition at line 109 of file LCDClient.cpp. |
|
This static method is used to test the existence of a widget.
Definition at line 76 of file LCDElement.cpp. |
|
Returns the maximum height (in number of pixels) of a displayed char on the LCD.
Definition at line 125 of file LCDClient.h. |
|
Returns the maximum width (in number of pixels) of a displayed char on the LCD.
Definition at line 117 of file LCDClient.h. |
|
Returns the height (in number of characters) of the physical LCD the server is using.
Definition at line 109 of file LCDClient.h. |
|
With this method one can have read access to the element identifier.
Definition at line 82 of file LCDElement.cpp. |
|
Useful to know the protocol version the LCDproc server (LCDd) is using.
Definition at line 93 of file LCDClient.h. |
|
Useful to know the version of the LCDproc server the object is connected to.
Definition at line 85 of file LCDClient.h. |
|
Returns the width (in number of characters) of the physical LCD the server is using.
Definition at line 101 of file LCDClient.h. |
|
With this method, user can send raw commands to the server.
Reimplemented from LCDElement. Definition at line 65 of file LCDClient.cpp. |
|
Enable or disable the backlight for all the screens.
Definition at line 104 of file LCDClient.cpp. |
|
Sets the client's name as visible to a user.
Definition at line 94 of file LCDClient.cpp. |