diff options
Diffstat (limited to 'src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel_p.h')
-rw-r--r-- | src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel_p.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel_p.h b/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel_p.h index a06d49c4..cebff1f2 100644 --- a/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel_p.h +++ b/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel_p.h @@ -111,6 +111,8 @@ public: DiscoveryMode discoveryMode() const; void setDiscoveryMode(DiscoveryMode discovery); + // TODO Qt 6 This property behaves synchronously but should really be + // asynchronous. The agents start/stop/restart is not immediate. bool running() const; void setRunning(bool running); @@ -139,8 +141,22 @@ private slots: private: void clearModel(); + enum Action { + IdleAction = 0, + StopAction, + DeviceDiscoveryAction, + MinimalServiceDiscoveryAction, + FullServiceDiscoveryAction + }; + + bool toggleStartStop(Action action); + void updateNextAction(Action action); + void transitionToNextAction(); + private: QDeclarativeBluetoothDiscoveryModelPrivate* d; + friend class QDeclarativeBluetoothDiscoveryModelPrivate; + }; #endif // QDECLARATIVECONTACTMODEL_P_H |