16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_BLUETOOTH_BLUETOOTHEVENTBUS_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_BLUETOOTH_BLUETOOTHEVENTBUS_H_ 21 #include <unordered_map> 53 using ListenerList = std::list<std::weak_ptr<BluetoothEventListenerInterface>>;
71 const std::vector<BluetoothEventType>& eventTypes,
72 std::shared_ptr<BluetoothEventListenerInterface> listener);
81 const std::vector<BluetoothEventType>& eventTypes,
82 std::shared_ptr<BluetoothEventListenerInterface> listener);
92 std::unordered_map<BluetoothEventType, ListenerList, BluetoothEventTypeHash> m_listenerMap;
100 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_BLUETOOTH_BLUETOOTHEVENTBUS_H_
void addListener(const std::vector< BluetoothEventType > &eventTypes, std::shared_ptr< BluetoothEventListenerInterface > listener)
void removeListener(const std::vector< BluetoothEventType > &eventTypes, std::shared_ptr< BluetoothEventListenerInterface > listener)
Definition: BluetoothEventBus.h:37
static std::shared_ptr< BluetoothEventBus > createBluetoothEventBus()
void sendEvent(const BluetoothEvent &event)
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::list< std::weak_ptr< BluetoothEventListenerInterface > > ListenerList
Definition: BluetoothEventBus.h:53
Base class for a BluetoothEvent.
Definition: BluetoothEvents.h:66