RDK Documentation (Open Sourced RDK Components)
ledMgr Class Reference
Inheritance diagram for ledMgr:
Inheritance graph
Collaboration diagram for ledMgr:
Collaboration graph

Public Member Functions

virtual void handleModeChange (unsigned int mode)
 Ths API shows a reference implementation for handles when there is a changes in system mode(IARM bus system modes: NORMAL, EAS, WAREHOUSE). More...
 
virtual void handleGatewayConnectionEvent (unsigned int state, unsigned int error)
 This API shows a reference implementation of calling appropriate ledmgr indicator API depends of the gateway connection event. More...
 
virtual void handleKeyPress (int key_code, int key_type)
 This API shows a reference implementation for handling key press and give LED indication accordingly. Indicator functions are called with the supported LED pattern or color. More...
 
- Public Member Functions inherited from ledMgrBase
 ledMgrBase ()
 Constructor function performs initialization.
 
 ~ledMgrBase ()
 Destructor API.
 
virtual int createBlinkPatterns ()
 This API creates blink patterns using the pattern type, duration, sequence … etc. as parameters.
 
const blinkPattern_tgetPattern (blinkPatternType_t pattern) const
 This API return the desired pattern info with respect to pattern type. More...
 
void diagnostics ()
 This API prints pattern details include id, sequence.
 
indicatorgetIndicator (const std::string &name)
 This API search for the matching indicator and return the indicator. More...
 
virtual void handleCDLEvents (unsigned int event)
 
virtual void handleDeviceReset (const unsigned int sequence)
 
virtual void handleDeviceResetAbort ()
 
void setPowerState (int state)
 This function sets the power state. More...
 
int getPowerState ()
 This function used to get the power state. More...
 
bool setError (unsigned int position, bool value)
 This API stores the error and returns the transition state in order to call appropriate ledmgr indicator api. More...
 

Static Public Member Functions

static ledMgrgetInstance ()
 

Static Private Attributes

static ledMgr m_singleton
 

Additional Inherited Members

- Protected Attributes inherited from ledMgrBase
int m_is_powered_on
 
unsigned int m_error_flags
 
pthread_mutex_t m_mutex
 
std::vector< blinkPattern_tm_patterns
 
std::vector< indicatorm_indicators
 

yes

Definition at line 8 of file ledmgr.hpp.


The documentation for this class was generated from the following files: