|
RDK Documentation (Open Sourced RDK Components)
|
22 #include "ledmgr_types.hpp"
23 #include "indicator.hpp"
25 #include "fp_profile.hpp"
31 #define IARMBUS_OWNER_NAME "ledmgr"
40 unsigned int m_error_flags;
41 pthread_mutex_t m_mutex;
42 std::vector <blinkPattern_t> m_patterns;
43 std::vector <indicator> m_indicators;
52 virtual void handleCDLEvents(
unsigned int event){}
53 virtual void handleModeChange(
unsigned int mode){}
54 virtual void handleGatewayConnectionEvent(
unsigned int state,
unsigned int error){}
55 virtual void handleDeviceReset(
const unsigned int sequence){}
56 virtual void handleDeviceResetAbort(){}
57 virtual void handleKeyPress(
int key_code,
int key_type){}
60 bool setError(
unsigned int position,
bool value);
bool setError(unsigned int position, bool value)
This API stores the error and returns the transition state in order to call appropriate ledmgr indica...
int getPowerState()
This function used to get the power state.
indicator & getIndicator(const std::string &name)
This API search for the matching indicator and return the indicator.
void setPowerState(int state)
This function sets the power state.
const blinkPattern_t * getPattern(blinkPatternType_t pattern) const
This API return the desired pattern info with respect to pattern type.
virtual int createBlinkPatterns()
This API creates blink patterns using the pattern type, duration, sequence … etc. as parameters.
ledMgrBase()
Constructor function performs initialization.
void diagnostics()
This API prints pattern details include id, sequence.
~ledMgrBase()
Destructor API.