16 #ifndef ACSDK_SAMPLE_PERIPHERALENDPOINT_PERIPHERALENDPOINTMODECONTROLLERHANDLER_H_ 17 #define ACSDK_SAMPLE_PERIPHERALENDPOINT_PERIPHERALENDPOINTMODECONTROLLERHANDLER_H_ 25 namespace sampleApplications {
51 static std::shared_ptr<PeripheralEndpointModeControllerHandler>
create(
59 std::pair<avsCommon::avs::AlexaResponseType, std::string>
setMode(
62 std::pair<avsCommon::avs::AlexaResponseType, std::string>
adjustMode(
70 std::shared_ptr<avsCommon::sdkInterfaces::modeController::ModeControllerObserverInterface> observer)
override;
72 const std::shared_ptr<avsCommon::sdkInterfaces::modeController::ModeControllerObserverInterface>& observer)
102 std::vector<std::string> m_modes;
108 std::list<std::shared_ptr<avsCommon::sdkInterfaces::modeController::ModeControllerObserverInterface>> m_observers;
115 #endif // ACSDK_SAMPLE_PERIPHERALENDPOINT_PERIPHERALENDPOINTMODECONTROLLERHANDLER_H_ static std::shared_ptr< PeripheralEndpointModeControllerHandler > create(const std::string &endpointName, const std::string &instance)
AlexaResponseType
Definition: AlexaResponseType.h:30
std::pair< avsCommon::avs::AlexaResponseType, std::string > setMode(const std::string &mode, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
::std::string string
Definition: gtest-port.h:1097
std::pair< avsCommon::avs::AlexaResponseType, avsCommon::utils::Optional< avsCommon::sdkInterfaces::modeController::ModeControllerInterface::ModeState > > getMode() override
Definition: ModeControllerInterface.h:37
AlexaStateChangeCauseType
Definition: AlexaStateChangeCauseType.h:28
std::vector< std::string > ModeControllerConfiguration
Definition: ModeControllerInterface.h:51
void removeObserver(const std::shared_ptr< avsCommon::sdkInterfaces::modeController::ModeControllerObserverInterface > &observer) override
bool addObserver(std::shared_ptr< avsCommon::sdkInterfaces::modeController::ModeControllerObserverInterface > observer) override
static const std::string MODE_CONTROLLER_MODE_GREEN
The mode 'Green' of the controller.
Definition: PeripheralEndpointModeControllerHandler.h:38
Definition: Optional.h:32
avsCommon::sdkInterfaces::modeController::ModeControllerInterface::ModeControllerConfiguration getConfiguration() override
std::pair< avsCommon::avs::AlexaResponseType, std::string > adjustMode(int modeDelta, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
static const std::string MODE_CONTROLLER_MODE_BLUE
The mode 'Blue' of the controller.
Definition: PeripheralEndpointModeControllerHandler.h:41
Definition: PeripheralEndpointModeControllerHandler.h:31
static const std::string MODE_CONTROLLER_MODE_RED
The mode 'Red' of the controller.
Definition: PeripheralEndpointModeControllerHandler.h:35