Bluetooth Framework C++ Edition
CwclBluetoothAudioWatcher Class Reference

The Bluetooth Audio device watcher class. More...

#include <wclAudio.h>

Public Member Functions

 CwclBluetoothAudioWatcher ()
 Creates new class.
 
virtual ~CwclBluetoothAudioWatcher ()
 Frees the class.
 
int Start ()
 Starts the Bluetooth audio watcher.
 
int Stop ()
 Stops the Bluetooth audio watcher.
 
bool GetActive () const
 Gets the Bluetooth audio watcher state.
 
 __declspec (property(get=GetActive)) bool Active
 
wclMessageProcessingMethod GetMessageProcessing () const
 Gets and sets a message processing method that should be used by the audio component.
 
void SetMessageProcessing (const wclMessageProcessingMethod Value)
 
 __declspec (property(get=GetMessageProcessing, put=SetMessageProcessing)) wclMessageProcessingMethod MessageProcessing
 
__event void OnDeviceAdded (void *Sender, const tstring &Id, const tstring &Name)
 The event called when new Bluetooth audio device added (found).
 
__event void OnDeviceRemoved (void *Sender, const tstring &Id)
 The event called when new Bluetooth audio device removed.
 
__event void OnStarted (void *Sender)
 The event called when the Bluetooth audio watcher was started.
 
__event void OnStopped (void *Sender)
 The event called when the Bluetooth audio watcher was stopped.
 

Protected Member Functions

virtual void MessageReceived (const CwclMessage *const Message)
 The method called when a new notification message received.
 
virtual void DoDeviceAdded (const tstring &Id, const tstring &Name)
 Calls the OnDeviceAdded event.
 
virtual void DoDeviceRemoved (const tstring &Id)
 Calls the OnDeviceRemoved event.
 
virtual void DoStarted ()
 Calls the OnStarted event.
 
virtual void DoStopped ()
 Calls the OnStopped event.
 

Detailed Description

The Bluetooth Audio device watcher class.

The class helps to find Audio devices that can accept incoming audio stream from extract Bluetooth devices.

The class is not thread-safe.