16 #ifndef ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_DEVICECONTROLLEDSETTINGPROTOCOL_H_ 17 #define ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_DEVICECONTROLLEDSETTINGPROTOCOL_H_ 50 static std::unique_ptr<DeviceControlledSettingProtocol>
create(
52 std::shared_ptr<SettingEventSenderInterface> eventSender,
53 std::shared_ptr<storage::DeviceSettingStorageInterface> settingStorage,
54 std::shared_ptr<avsCommon::sdkInterfaces::AVSConnectionManagerInterface> connectionManager,
55 const std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface>&
metricRecorder);
88 std::unique_ptr<SharedAVSSettingProtocol> m_protocolImpl;
94 #endif // ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_DEVICECONTROLLEDSETTINGPROTOCOL_H_ std::function< std::pair< bool, std::string >()> ApplyChangeFunction
Definition: SettingProtocolInterface.h:46
std::function< std::pair< bool, std::string >(const std::string &dbValue)> ApplyDbChangeFunction
Definition: SettingProtocolInterface.h:56
bool clearData() override
std::function< void(SettingNotifications notification)> SettingNotificationFunction
Definition: SettingProtocolInterface.h:63
Definition: DeviceControlledSettingProtocol.h:38
static std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > metricRecorder
Metric recorder shared ptr.
Definition: BaseAPLCapabilityAgentTest.cpp:261
bool avsChange(ApplyChangeFunction applyChange, RevertChangeFunction revertChange, SettingNotificationFunction notifyObservers) override
bool restoreValue(ApplyDbChangeFunction applyChange, SettingNotificationFunction notifyObservers) override
std::function< std::string()> RevertChangeFunction
Definition: SettingProtocolInterface.h:70
SetSettingResult
Definition: SetSettingResult.h:23
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: SettingProtocolInterface.h:38
SetSettingResult localChange(ApplyChangeFunction applyChange, RevertChangeFunction revertChange, SettingNotificationFunction notifyObservers) override
static std::unique_ptr< DeviceControlledSettingProtocol > create(const SettingEventMetadata &metadata, std::shared_ptr< SettingEventSenderInterface > eventSender, std::shared_ptr< storage::DeviceSettingStorageInterface > settingStorage, std::shared_ptr< avsCommon::sdkInterfaces::AVSConnectionManagerInterface > connectionManager, const std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > &metricRecorder)
~DeviceControlledSettingProtocol()=default