<table><tr><td style="">elvisangelaccio created this revision.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D5066" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Bluetooth Low Energy devices have an invalid class value, so we cannot<br />
use it to deduce the type of the device. Instead we can use the<br />
appearance value. This is what bluez does to set a proper icon for the<br />
device. The appearanceToType() function is adapted from the<br />
gap_appearance_to_icon() function (bluez.git/src/dbus-common.c).</p>

<p>More info about appearance values in:<br />
<a href="https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=7c2a566b8a95fe3a701941c7d46ddccb14a78dae" class="remarkup-link" target="_blank" rel="noreferrer">https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=7c2a566b8a95fe3a701941c7d46ddccb14a78dae</a></p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Bluedevil applet now shows 'Mouse' rather than 'Unknow' as type for my<br />
Bluetooth Low Energy mouse.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R269 BluezQt</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5066" rel="noreferrer">https://phabricator.kde.org/D5066</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/device.cpp<br />
src/device.h<br />
src/utils.cpp<br />
src/utils.h</div></div></div><br /><div><strong>To: </strong>elvisangelaccio, drosca<br /><strong>Cc: </strong>Frameworks<br /></div>