 |
RDK Documentation (Open Sourced RDK Components)
|
31 #define BOOST_TEST_MODULE FrontPannel
32 #define BOOST_TEST_MAIN
33 #include "boost/test/included/unit_test.hpp"
37 BOOST_AUTO_TEST_CASE(test_hostPersistence)
83 BOOST_AUTO_TEST_CASE(testDummy)
List< FrontPanelTextDisplay > getTextDisplays()
This API gets a list of text display supported by the front panels.
const Scroll getScroll() const
This API gets the scroll parameters for front panel display like vertical & horizontal iterations and...
FrontPanelTextDisplay & getTextDisplay(int id)
This function gets the FrontPanelTextDisplay instance corresponding to the specified id,...
static FrontPanelConfig & getInstance()
This API gets the instance of the FrontPanelConfig. When called for the first time,...
void setColor(const Color &newColor, const bool toPersist=true)
This API sets the color of the front panel indicator.
const Blink getBlink() const
This API gets the blink parameters of the front panel display like iterations and interval.
void setBrightness(const int &brightness, const bool toPersist=true)
This API sets the brightness or intensity of the front panel indicators.
void setTime(const int uiHours, const int uiMinutes)
This API sets the time of the LED display by switching the text display to time mode.
const List< Color > getSupportedColors() const
This API gets the list of supported colors for front panel indicator.
Structures and classes to manage front panel are defined here.
FrontPanelIndicator & getIndicator(int id)
This function gets an instance of the FrontPanelndicator with the specified id, only if the id passed...
uint32_t getColor()
This API gets the color of the front panel indicator/LED.
void setText(const std::string &text)
This API sets the text LED display, by switching the text display to text mode.
void setBlink(const Blink &blink)
This API sets the blink iteration and blink interval for the LED.
virtual const std::string & getName() const
This function is used to the get the data member name.
void setTimeFormat(const int iTimeFormat)
This API sets the time format of the LED display to either 12hr or 24hr format.
int getCurrentTimeFormat()
This API Get the time format of the LED display.
int getMaxCycleRate() const
This API get the rate at which the LED is rotating/glowing during scrolling.
List< FrontPanelIndicator > getIndicators()
This API gets a list of indicators on the front panel.
int getBrightness()
This API gets the brightness of the specified LED indicators.
virtual int getId() const
This function is used to get the id.