16 #ifndef ALEXA_CLIENT_SDK_DIAGNOSTICS_INCLUDE_DIAGNOSTICS_DEVICEPROPERTYAGGREGATOR_H_ 17 #define ALEXA_CLIENT_SDK_DIAGNOSTICS_INCLUDE_DIAGNOSTICS_DEVICEPROPERTYAGGREGATOR_H_ 19 #include <condition_variable> 23 #include <unordered_map> 31 namespace diagnostics {
38 ,
public std::enable_shared_from_this<DevicePropertyAggregator> {
45 static std::shared_ptr<DevicePropertyAggregator>
create();
51 void setContextManager(std::shared_ptr<avsCommon::sdkInterfaces::ContextManagerInterface> contextManager)
override;
53 void initializeVolume(std::shared_ptr<avsCommon::sdkInterfaces::SpeakerManagerInterface> speakerManager)
override;
137 std::unordered_map<std::string, std::string> getSyncDeviceProperties();
143 void initializeAsyncPropertyMap();
152 void updateSpeakerSettingsInPropertyMap(
160 std::unordered_map<std::string, std::string> m_asyncPropertyMap;
163 std::mutex m_deviceContextMutex;
169 std::condition_variable m_contextWakeTrigger;
172 std::shared_ptr<avsCommon::sdkInterfaces::ContextManagerInterface> m_contextManager;
175 std::shared_ptr<settings::DeviceSettingsManager> m_deviceSettingsManager;
181 #endif // ALEXA_CLIENT_SDK_DIAGNOSTICS_INCLUDE_DIAGNOSTICS_DEVICEPROPERTYAGGREGATOR_H_ void onSetIndicator(avsCommon::avs::IndicatorState state) override
void onSpeakerSettingsChanged(const Source &source, const avsCommon::sdkInterfaces::ChannelVolumeInterface::Type &type, const avsCommon::sdkInterfaces::SpeakerInterface::SpeakerSettings &settings) override
ChangedReason
Definition: ConnectionStatusObserverInterface.h:50
void onAlertStateChange(const AlertObserverInterface::AlertInfo &alertInfo) override
::std::string string
Definition: gtest-port.h:1097
void onNotificationReceived() override
ContextRequestError
Definition: ContextRequesterInterface.h:40
Single-thread executor implementation.
Definition: Executor.h:45
Type
Definition: ChannelVolumeInterface.h:37
void setContextManager(std::shared_ptr< avsCommon::sdkInterfaces::ContextManagerInterface > contextManager) override
void onRangeChanged(const avsCommon::sdkInterfaces::rangeController::RangeControllerObserverInterface::RangeState &rangeState, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
The context of the AudioPlayer when the observer is notified of the PlayerActivity state change...
Definition: AudioPlayerObserverInterface.h:39
AlexaStateChangeCauseType
Definition: AlexaStateChangeCauseType.h:28
void onPlayerActivityChanged(avsCommon::avs::PlayerActivity state, const Context &context) override
void initializeVolume(std::shared_ptr< avsCommon::sdkInterfaces::SpeakerManagerInterface > speakerManager) override
DialogUXState
The different dialog specific AVS UX states.
Definition: DialogUXStateObserverInterface.h:32
Definition: PowerControllerObserverInterface.h:38
Definition: DevicePropertyAggregatorInterface.h:44
Definition: RangeControllerObserverInterface.h:41
avsCommon::utils::Optional< std::string > getDeviceProperty(const std::string &propertyKey) override
void onDialogUXStateChanged(DialogUXState newState) override
void onContextAvailable(const std::string &jsonContext) override
Definition: SpeakerInterface.h:42
void setDeviceSettingsManager(std::shared_ptr< settings::DeviceSettingsManager > settingManager) override
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::unordered_map< std::string, std::string > getAllDeviceProperties() override
IndicatorState
Definition: IndicatorState.h:30
type
Definition: upload.py:443
Definition: DevicePropertyAggregator.h:36
static std::shared_ptr< DevicePropertyAggregator > create()
Source
Indicates whether the source of the call is from an AVS Directive or through a Local API call...
Definition: SpeakerManagerObserverInterface.h:35
void onConnectionStatusChanged(const Status status, const ChangedReason reason) override
State
Definition: State.h:35
virtual void onAuthStateChange(AuthObserverInterface::State newState, AuthObserverInterface::Error error) override
void onContextFailure(const avsCommon::sdkInterfaces::ContextRequestError error) override
PlayerActivity
Identifies the player state.
Definition: PlayerActivity.h:27
void onPowerStateChanged(const avsCommon::sdkInterfaces::powerController::PowerControllerObserverInterface::PowerState &powerState, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
Status
Definition: ConnectionStatusObserverInterface.h:36