29class QBluetoothDeviceWatcherWinRT :
public QObject,
30 public std::enable_shared_from_this<QBluetoothDeviceWatcherWinRT>
34 QBluetoothDeviceWatcherWinRT(
int id, winrt::hstring selector);
35 QBluetoothDeviceWatcherWinRT(
int id, winrt::hstring selector,
36 winrt::Windows::Devices::Enumeration::DeviceInformationKind kind);
37 ~QBluetoothDeviceWatcherWinRT();
46 void deviceAdded(winrt::hstring deviceId,
int id);
47 void deviceRemoved(winrt::hstring deviceId,
int id);
48 void deviceUpdated(winrt::hstring deviceId,
int id);
49 void enumerationCompleted(
int id);
50 void watcherStopped(
int id);
53 void subscribeToEvents();
54 void unsubscribeFromEvents();
58 winrt::Windows::Devices::Enumeration::DeviceWatcher m_watcher =
nullptr;
60 winrt::event_token m_addedToken;
61 winrt::event_token m_removedToken;
62 winrt::event_token m_updatedToken;
63 winrt::event_token m_enumerationToken;
64 winrt::event_token m_stoppedToken;