 |
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
10 #include "libIBusDaemon.h"
19 GATEWAY_CONNECTION_ERROR = 0,
28 m_indicators.push_back(
indicator(
"Power"));
31 ledMgr ledMgr::m_singleton;
32 ledMgr& ledMgr::getInstance()
53 if(IARM_BUS_SYS_MODE_NORMAL == mode)
55 INFO(
"Detected mode change to NORMAL\n");
62 ERROR(
"Error setting steady state!\n");
79 INFO(
"Detected gateway disconnect.\n");
80 if(
true ==
setError(GATEWAY_CONNECTION_ERROR,
true))
88 INFO(
"Detected gateway connection.\n");
91 if(
true ==
setError(GATEWAY_CONNECTION_ERROR,
false))
bool setError(unsigned int position, bool value)
This API stores the error and returns the transition state in order to call appropriate ledmgr indica...
virtual void handleModeChange(unsigned int mode)
Ths API shows a reference implementation for handles when there is a changes in system mode(IARM bus ...
virtual void handleKeyPress(int key_code, int key_type)
This API shows a reference implementation for handling key press and give LED indication accordingly....
IARM-Bus Sys Manager Public API.
int getPowerState()
This function used to get the power state.
virtual void handleGatewayConnectionEvent(unsigned int state, unsigned int error)
This API shows a reference implementation of calling appropriate ledmgr indicator API depends of the ...