|
RDK Documentation (Open Sourced RDK Components)
|
41 int main(
int argc,
char *argv[])
45 string sleep_mode_str;
58 printf(
"GetPreferredSleepMode - 'g'\n");
59 printf(
"SetPreferredSleepMode - 's'\n");
60 printf(
"All Sleep Modes - 'l' \n");
61 printf(
"Exit - 'x'\n");
68 std::cout <<
"preffered sleep mode is" << mode.toString() << std::endl;
73 std::cout <<
"Please provide the sleep mode" << std::endl;
74 std::cin >> sleep_mode_str;
77 std::cout <<
"Standby mode set retruned " << ret << std::endl;
83 std::cout <<
"LIst of Sleep Modes" << std::endl;
85 for(i=0;i < sleepModes.
size(); i++)
88 std::cout<<i<<std::endl<<sleepModes.at(i).
toString()<<std::endl;
106 printf(
"Exception Caught during [%s]\r\n", argv[0]);
IARM_Result_t IARM_Bus_Term(void)
This API is used to terminate the IARM-Bus library.
List< SleepMode > getAvailableSleepModes()
This function is used to get the available sleep modes.
This class is implemented using templates and it is used to maintain a container with the list of sup...
static SleepMode & getInstance(int id)
This function is used to get an instance of SleepMode against the specified id, only if the id passed...
This file defines DSConstant class which is inherited by most of the device settings classes.
It contains class referenced by manager.cpp file.
Device Settings HAL error codes.
size_t size()
This function gets the size of the container.
Device Settings HAL utilities.
IARM_Result_t IARM_Bus_Disconnect(void)
This API disconnect Application from IARM Bus so the application will not receive any IARM event or R...
int setPreferredSleepMode(const SleepMode)
This API is used to set the Preferred sleep Mode and implements the low power mode for RDK platform.
static void Initialize()
This API is used to initialize the Device Setting module. Each API should be called by any client of ...
SleepMode getPreferredSleepMode()
This API is used to gets the Preferred sleep Mode and implements the low power mode for RDK platform....
RDK IARM-Bus API Declarations.
This class extends DSConstant to implement SleepMode. It is used to manage the sleep modes for device...
virtual const std::string & toString() const
This function is used to the get the data member name in string format.
static void DeInitialize()
This API is used to deinitialize the device settings module. DeInitialize() must be called to release...
static Host & getInstance(void)
This API is used to get a reference to the single instance of the Host object.
IARM_Result_t IARM_Bus_Connect(void)
This API is used to connect application to the IARM bus daemon. After connected, the application can ...
IARM_Result_t IARM_Bus_Init(const char *name)
This API is used to initialize the IARM-Bus library.
This file defines SleepMode class for device settings.