16 #ifndef ACSDK_SAMPLE_ENDPOINT_DEFAULTENDPOINT_DEFAULTENDPOINTMODECONTROLLERHANDLER_H_ 17 #define ACSDK_SAMPLE_ENDPOINT_DEFAULTENDPOINT_DEFAULTENDPOINTMODECONTROLLERHANDLER_H_ 25 namespace sampleApplications {
57 static std::shared_ptr<DefaultEndpointModeControllerHandler>
create(
const std::string& instance);
63 std::pair<avsCommon::avs::AlexaResponseType, std::string>
setMode(
66 std::pair<avsCommon::avs::AlexaResponseType, std::string>
adjustMode(
74 std::shared_ptr<avsCommon::sdkInterfaces::modeController::ModeControllerObserverInterface> observer)
override;
76 const std::shared_ptr<avsCommon::sdkInterfaces::modeController::ModeControllerObserverInterface>& observer)
95 std::vector<std::string> m_modes;
101 std::list<std::shared_ptr<avsCommon::sdkInterfaces::modeController::ModeControllerObserverInterface>> m_observers;
108 #endif // ACSDK_SAMPLE_ENDPOINT_DEFAULTENDPOINT_DEFAULTENDPOINTMODECONTROLLERHANDLER_H_ Definition: DefaultEndpointModeControllerHandler.h:31
AlexaResponseType
Definition: AlexaResponseType.h:30
std::pair< avsCommon::avs::AlexaResponseType, std::string > adjustMode(int modeDelta, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
static const std::string MODE_CONTROLLER_MODE_FAN_ONLY
The 'Fan Only' mode of the controller.
Definition: DefaultEndpointModeControllerHandler.h:34
::std::string string
Definition: gtest-port.h:1097
std::pair< avsCommon::avs::AlexaResponseType, std::string > setMode(const std::string &mode, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
bool addObserver(std::shared_ptr< avsCommon::sdkInterfaces::modeController::ModeControllerObserverInterface > observer) override
static const std::string MODE_CONTROLLER_MODE_FAN_ONLY_FRIENDLY_NAME
The friendly name of 'Fan Only' mode.
Definition: DefaultEndpointModeControllerHandler.h:37
Definition: ModeControllerInterface.h:37
AlexaStateChangeCauseType
Definition: AlexaStateChangeCauseType.h:28
std::vector< std::string > ModeControllerConfiguration
Definition: ModeControllerInterface.h:51
avsCommon::sdkInterfaces::modeController::ModeControllerInterface::ModeControllerConfiguration getConfiguration() override
Definition: Optional.h:32
void removeObserver(const std::shared_ptr< avsCommon::sdkInterfaces::modeController::ModeControllerObserverInterface > &observer) override
static const std::string MODE_CONTROLLER_MODE_HEAT
The 'HEAT' mode of the controller.
Definition: DefaultEndpointModeControllerHandler.h:40
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::pair< avsCommon::avs::AlexaResponseType, avsCommon::utils::Optional< avsCommon::sdkInterfaces::modeController::ModeControllerInterface::ModeState > > getMode() override
static const std::string MODE_CONTROLLER_MODE_COOL_FRIENDLY_NAME
The friendly name of 'Cool' mode.
Definition: DefaultEndpointModeControllerHandler.h:49
static const std::string MODE_CONTROLLER_MODE_COOL
The 'Cool' mode of the controller.
Definition: DefaultEndpointModeControllerHandler.h:46
static const std::string MODE_CONTROLLER_MODE_HEAT_FRIENDLY_NAME
The friendly name of 'HEAT' mode.
Definition: DefaultEndpointModeControllerHandler.h:43
static std::shared_ptr< DefaultEndpointModeControllerHandler > create(const std::string &instance)