Review Request 124158: Simplify Device::id management

Aleix Pol Gonzalez aleixpol at kde.org
Tue Jun 23 23:07:43 UTC 2015


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

Review request for kdeconnect.


Repository: kdeconnect-kde


Description
-------

* Removes the id->row mapping. It was broken as the indices weren't updated when a row was added or removed.
* Stop exposing Device::id through dbus, just store it in the interface class.
    * It's redundant as it's part of the interface definition
    * If we keep it it will save us quite some dbus round-trips
    * It will be reliable, as nowadays id() sometimes QString() if the dbus connection is invalid.


Diffs
-----

  app/qml/main.qml ccde541 
  core/device.h f3c7797 
  interfaces/dbusinterfaces.h d551fba 
  interfaces/dbusinterfaces.cpp 69abbf7 
  interfaces/devicesmodel.h 92410ff 
  interfaces/devicesmodel.cpp ca854f3 

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


Testing
-------

Seems to work better.


Thanks,

Aleix Pol Gonzalez

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20150623/d33c8d76/attachment.html>


More information about the KDEConnect mailing list