16 #ifndef ACSDKDONOTDISTURB_DNDSETTINGPROTOCOL_H_ 17 #define ACSDKDONOTDISTURB_DNDSETTINGPROTOCOL_H_ 34 namespace capabilityAgents {
35 namespace doNotDisturb {
52 static std::unique_ptr<DNDSettingProtocol>
create(
54 std::shared_ptr<settings::SettingEventSenderInterface> eventSender,
55 std::shared_ptr<settings::storage::DeviceSettingStorageInterface> settingStorage,
56 const std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface>&
metricRecorder);
90 std::shared_ptr<settings::SettingEventSenderInterface> eventSender,
91 std::shared_ptr<settings::storage::DeviceSettingStorageInterface> settingStorage,
92 const std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface>& metricRecorder);
98 std::shared_ptr<settings::SettingEventSenderInterface> m_eventSender;
101 std::shared_ptr<settings::storage::DeviceSettingStorageInterface> m_storage;
104 std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface> m_metricRecorder;
114 #endif // ACSDKDONOTDISTURB_DNDSETTINGPROTOCOL_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
SetSettingResult localChange(ApplyChangeFunction applyChange, RevertChangeFunction revertChange, SettingNotificationFunction notifyObservers) override
bool restoreValue(ApplyDbChangeFunction applyChange, SettingNotificationFunction notifyObservers) override
::std::string string
Definition: gtest-port.h:1097
bool avsChange(ApplyChangeFunction applyChange, RevertChangeFunction revertChange, SettingNotificationFunction notifyObservers) override
Single-thread executor implementation.
Definition: Executor.h:45
std::function< void(SettingNotifications notification)> SettingNotificationFunction
Definition: SettingProtocolInterface.h:63
static std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > metricRecorder
Metric recorder shared ptr.
Definition: BaseAPLCapabilityAgentTest.cpp:261
Definition: DNDSettingProtocol.h:41
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
bool clearData() override
static std::unique_ptr< DNDSettingProtocol > create(const settings::SettingEventMetadata &metadata, std::shared_ptr< settings::SettingEventSenderInterface > eventSender, std::shared_ptr< settings::storage::DeviceSettingStorageInterface > settingStorage, const std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > &metricRecorder)
~DNDSettingProtocol()=default
Definition: SettingProtocolInterface.h:38