[Kde-hardware-devel] Review Request 123388: BluetoothMonitor: Simplify addBluetoothConnection + add haveBluetoothConnection

David Rosca nowrep at gmail.com
Fri Apr 17 13:55:23 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123388/
-----------------------------------------------------------

(Updated April 17, 2015, 1:55 p.m.)


Review request for Solid, Jan Grulich, Lukáš Tinkl, and Lamarque Souza.


Changes
-------

Rename haveBluetoothConnection -> bluetoothConnectionExists


Repository: plasma-nm


Description
-------

This patch removes all Bluez related code from BluetoothMonitor. 
It was used only to check if the device with specified address exists and if it supports nap/dun profile.
The addBluetoothConnection method is currently not used anywhere, so this shouldn't be an issue. If the check is important, we can do one call on Bluedevil DBus interface.

Bluedevil was using this method in Bluez 4 versions, but it got killed during porting to Bluez 5. 
NAP connections are now automatically added on successful pairing with the device.

I plan to bring the functionality back in Bluedevil, so that user can manually add a network connection (DUN/NAP) for Bluetooth devices.

lxr search: http://lxr.kde.org/search?v=kf5-qt5&_filestring=&_string=%22addBluetoothConnection%22


Diffs (updated)
-----

  kded/CMakeLists.txt 51aa370 
  kded/bluetoothdbustype.h 1eeb3b2 
  kded/bluetoothdbustype.cpp 4eee8af 
  kded/bluetoothmonitor.h f5e74ec 
  kded/bluetoothmonitor.cpp 9d833d2 
  kded/dbus/org.freedesktop.DBus.ObjectManager.xml fa58c72 
  kded/dbus/org.freedesktop.DBus.Properties.xml a71f409 
  kded/monitor.h ae89d3e 
  kded/monitor.cpp e33b918 

Diff: https://git.reviewboard.kde.org/r/123388/diff/


Testing
-------

Works as before, mobile connection wizard appears when trying to add dun connection.


Thanks,

David Rosca

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20150417/3592445e/attachment-0001.html>


More information about the Kde-hardware-devel mailing list