28 #ifndef ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_CLOUDCONTROLLEDSETTINGPROTOCOL_H_ 29 #define ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_CLOUDCONTROLLEDSETTINGPROTOCOL_H_ 49 static std::unique_ptr<CloudControlledSettingProtocol>
create(
51 std::shared_ptr<SettingEventSenderInterface> eventSender,
52 std::shared_ptr<storage::DeviceSettingStorageInterface> settingStorage,
53 std::shared_ptr<avsCommon::sdkInterfaces::AVSConnectionManagerInterface> connectionManager,
54 const std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface>&
metricRecorder);
88 std::unique_ptr<SharedAVSSettingProtocol> m_protocolImpl;
94 #endif // ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_CLOUDCONTROLLEDSETTINGPROTOCOL_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
bool restoreValue(ApplyDbChangeFunction applyChange, SettingNotificationFunction notifyObservers) override
bool avsChange(ApplyChangeFunction applyChange, RevertChangeFunction revertChange, SettingNotificationFunction notifyObservers) override
static std::unique_ptr< CloudControlledSettingProtocol > 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)
std::function< void(SettingNotifications notification)> SettingNotificationFunction
Definition: SettingProtocolInterface.h:63
~CloudControlledSettingProtocol()=default
static std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > metricRecorder
Metric recorder shared ptr.
Definition: BaseAPLCapabilityAgentTest.cpp:261
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: CloudControlledSettingProtocol.h:37
Definition: SettingProtocolInterface.h:38
SetSettingResult localChange(ApplyChangeFunction applyChange, RevertChangeFunction revertChange, SettingNotificationFunction notifyObservers) override