16 #ifndef ACSDK_SAMPLE_PERIPHERALENDPOINT_PERIPHERALENDPOINTPOWERCONTROLLERHANDLER_H_ 17 #define ACSDK_SAMPLE_PERIPHERALENDPOINT_PERIPHERALENDPOINTPOWERCONTROLLERHANDLER_H_ 25 namespace sampleApplications {
40 static std::shared_ptr<PeripheralEndpointPowerControllerHandler>
create(
const std::string& endpointName);
44 std::pair<avsCommon::avs::AlexaResponseType, std::string>
setPowerState(
52 std::shared_ptr<avsCommon::sdkInterfaces::powerController::PowerControllerObserverInterface> observer)
override;
54 const std::shared_ptr<avsCommon::sdkInterfaces::powerController::PowerControllerObserverInterface>& observer)
76 bool m_currentPowerState;
82 std::list<std::shared_ptr<avsCommon::sdkInterfaces::powerController::PowerControllerObserverInterface>> m_observers;
89 #endif // ACSDK_SAMPLE_PERIPHERALENDPOINT_PERIPHERALENDPOINTPOWERCONTROLLERHANDLER_H_ static std::shared_ptr< PeripheralEndpointPowerControllerHandler > create(const std::string &endpointName)
AlexaResponseType
Definition: AlexaResponseType.h:30
::std::string string
Definition: gtest-port.h:1097
AlexaStateChangeCauseType
Definition: AlexaStateChangeCauseType.h:28
bool addObserver(std::shared_ptr< avsCommon::sdkInterfaces::powerController::PowerControllerObserverInterface > observer) override
void removeObserver(const std::shared_ptr< avsCommon::sdkInterfaces::powerController::PowerControllerObserverInterface > &observer) override
std::pair< avsCommon::avs::AlexaResponseType, std::string > setPowerState(bool state, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
Definition: Optional.h:32
Definition: PeripheralEndpointPowerControllerHandler.h:31
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: PowerControllerInterface.h:37
std::pair< avsCommon::avs::AlexaResponseType, avsCommon::utils::Optional< avsCommon::sdkInterfaces::powerController::PowerControllerInterface::PowerState > > getPowerState() override