Changeset View
Changeset View
Standalone View
Standalone View
src/adapter.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 47 | { | |||
---|---|---|---|---|---|
55 | Q_PROPERTY(bool powered READ isPowered WRITE setPowered NOTIFY poweredChanged) | 55 | Q_PROPERTY(bool powered READ isPowered WRITE setPowered NOTIFY poweredChanged) | ||
56 | Q_PROPERTY(bool discoverable READ isDiscoverable WRITE setDiscoverable NOTIFY discoverableChanged) | 56 | Q_PROPERTY(bool discoverable READ isDiscoverable WRITE setDiscoverable NOTIFY discoverableChanged) | ||
57 | Q_PROPERTY(quint32 discoverableTimeout READ discoverableTimeout WRITE setDiscoverableTimeout NOTIFY discoverableTimeoutChanged) | 57 | Q_PROPERTY(quint32 discoverableTimeout READ discoverableTimeout WRITE setDiscoverableTimeout NOTIFY discoverableTimeoutChanged) | ||
58 | Q_PROPERTY(bool pairable READ isPairable WRITE setPairable NOTIFY pairableChanged) | 58 | Q_PROPERTY(bool pairable READ isPairable WRITE setPairable NOTIFY pairableChanged) | ||
59 | Q_PROPERTY(quint32 pairableTimeout READ pairableTimeout WRITE setPairableTimeout NOTIFY pairableTimeoutChanged) | 59 | Q_PROPERTY(quint32 pairableTimeout READ pairableTimeout WRITE setPairableTimeout NOTIFY pairableTimeoutChanged) | ||
60 | Q_PROPERTY(bool discovering READ isDiscovering NOTIFY discoveringChanged) | 60 | Q_PROPERTY(bool discovering READ isDiscovering NOTIFY discoveringChanged) | ||
61 | Q_PROPERTY(QStringList uuids READ uuids NOTIFY uuidsChanged) | 61 | Q_PROPERTY(QStringList uuids READ uuids NOTIFY uuidsChanged) | ||
62 | Q_PROPERTY(QString modalias READ modalias NOTIFY modaliasChanged) | 62 | Q_PROPERTY(QString modalias READ modalias NOTIFY modaliasChanged) | ||
63 | Q_PROPERTY(LEAdvertisingManagerPtr leAdvertisingManager READ leAdvertisingManager NOTIFY leAdvertisingManagerChanged) | ||||
63 | Q_PROPERTY(MediaPtr media READ media NOTIFY mediaChanged) | 64 | Q_PROPERTY(MediaPtr media READ media NOTIFY mediaChanged) | ||
64 | Q_PROPERTY(QList<DevicePtr> devices READ devices) | 65 | Q_PROPERTY(QList<DevicePtr> devices READ devices) | ||
65 | 66 | | |||
66 | public: | 67 | public: | ||
67 | /** | 68 | /** | ||
68 | * Destroys an Adapter object. | 69 | * Destroys an Adapter object. | ||
69 | */ | 70 | */ | ||
70 | ~Adapter(); | 71 | ~Adapter(); | ||
▲ Show 20 Lines • Show All 156 Lines • ▼ Show 20 Line(s) | |||||
227 | /** | 228 | /** | ||
228 | * Returns local device ID in modalias format. | 229 | * Returns local device ID in modalias format. | ||
229 | * | 230 | * | ||
230 | * @return adapter modalias | 231 | * @return adapter modalias | ||
231 | */ | 232 | */ | ||
232 | QString modalias() const; | 233 | QString modalias() const; | ||
233 | 234 | | |||
234 | /** | 235 | /** | ||
236 | * Returns the GATT manager interface for the adapter. | ||||
237 | * | ||||
238 | * @return null if adapter have no GATT manager | ||||
239 | */ | ||||
240 | GattManagerPtr gattManager() const; | ||||
241 | | ||||
242 | /** | ||||
243 | * Returns the LE advertising manager interface for the adapter. | ||||
244 | * | ||||
245 | * @return null if adapter have no Bluetooth LE | ||||
246 | */ | ||||
247 | LEAdvertisingManagerPtr leAdvertisingManager() const; | ||||
248 | | ||||
249 | /** | ||||
235 | * Returns the media interface for the adapter. | 250 | * Returns the media interface for the adapter. | ||
236 | * | 251 | * | ||
237 | * @return null if adapter have no media | 252 | * @return null if adapter have no media | ||
238 | */ | 253 | */ | ||
239 | MediaPtr media() const; | 254 | MediaPtr media() const; | ||
240 | 255 | | |||
241 | /** | 256 | /** | ||
242 | * Returns list of devices known by the adapter. | 257 | * Returns list of devices known by the adapter. | ||
▲ Show 20 Lines • Show All 103 Lines • ▼ Show 20 Line(s) | 302 | Q_SIGNALS: | |||
346 | void uuidsChanged(const QStringList &uuids); | 361 | void uuidsChanged(const QStringList &uuids); | ||
347 | 362 | | |||
348 | /** | 363 | /** | ||
349 | * Indicates that adapter's modalias have changed. | 364 | * Indicates that adapter's modalias have changed. | ||
350 | */ | 365 | */ | ||
351 | void modaliasChanged(const QString &modalias); | 366 | void modaliasChanged(const QString &modalias); | ||
352 | 367 | | |||
353 | /** | 368 | /** | ||
369 | * Indicates that adapter's GATT manager have changed. | ||||
370 | */ | ||||
371 | void gattManagerChanged(GattManagerPtr gattManager); | ||||
372 | | ||||
373 | /** | ||||
374 | * Indicates that adapter's LE advertising manager have changed. | ||||
375 | */ | ||||
376 | void leAdvertisingManagerChanged(LEAdvertisingManagerPtr leAdvertisingManager); | ||||
377 | | ||||
378 | /** | ||||
354 | * Indicates that adapter's media have changed. | 379 | * Indicates that adapter's media have changed. | ||
355 | */ | 380 | */ | ||
356 | void mediaChanged(MediaPtr media); | 381 | void mediaChanged(MediaPtr media); | ||
357 | 382 | | |||
358 | /** | 383 | /** | ||
359 | * Indicates that a new device was added (eg. found by discovery). | 384 | * Indicates that a new device was added (eg. found by discovery). | ||
360 | */ | 385 | */ | ||
361 | void deviceAdded(DevicePtr device); | 386 | void deviceAdded(DevicePtr device); | ||
Show All 24 Lines |