16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_ABSTRACTAVSCONNECTIONMANAGER_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_ABSTRACTAVSCONNECTIONMANAGER_H_ 21 #include <unordered_set> 42 std::unordered_set<std::shared_ptr<ConnectionStatusObserverInterface>> observers =
43 std::unordered_set<std::shared_ptr<ConnectionStatusObserverInterface>>());
65 const std::vector<avsCommon::sdkInterfaces::ConnectionStatusObserverInterface::EngineConnectionStatus>&
66 engineConnectionStatuses);
100 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_ABSTRACTAVSCONNECTIONMANAGER_H_ AbstractAVSConnectionManager(std::unordered_set< std::shared_ptr< ConnectionStatusObserverInterface >> observers=std::unordered_set< std::shared_ptr< ConnectionStatusObserverInterface >>())
void notifyObservers(bool avsConnectionStatusChanged)
Definition: ConnectionStatusObserverInterface.h:31
std::unordered_set< std::shared_ptr< ConnectionStatusObserverInterface > > m_connectionStatusObservers
Set of observers to notify when the connection status changes. m_mutex must be acquired before access...
Definition: AbstractAVSConnectionManager.h:93
Definition: AbstractAVSConnectionManager.h:33
void removeConnectionStatusObserver(std::shared_ptr< ConnectionStatusObserverInterface > observer) override
Definition: AVSConnectionManagerInterface.h:33
ConnectionStatusObserverInterface::Status m_avsConnectionStatus
Definition: AbstractAVSConnectionManager.h:87
std::vector< ConnectionStatusObserverInterface::EngineConnectionStatus > m_engineConnectionStatuses
The detailed connection statuses for each engine.
Definition: AbstractAVSConnectionManager.h:90
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
void addConnectionStatusObserver(std::shared_ptr< ConnectionStatusObserverInterface > observer) override
virtual ~AbstractAVSConnectionManager()=default
ConnectionStatusObserverInterface::Status m_connectionStatus
The current connection status. m_mutex must be acquired before access.
Definition: AbstractAVSConnectionManager.h:83
std::mutex m_mutex
Mutex to protect access to data members.
Definition: AbstractAVSConnectionManager.h:80
void updateConnectionStatus(ConnectionStatusObserverInterface::Status status, const std::vector< avsCommon::sdkInterfaces::ConnectionStatusObserverInterface::EngineConnectionStatus > &engineConnectionStatuses)
Status
Definition: ConnectionStatusObserverInterface.h:36