devicediscovery: add more sophisticated discovery
authorJohannes Zellner <johannes.zellner@nokia.com>
Fri, 25 May 2012 17:07:11 +0000 (10:07 -0700)
committerQt by Nokia <qt-info@nokia.com>
Sat, 26 May 2012 00:47:01 +0000 (02:47 +0200)
commit9a17206b5c9cfaec5f2bff887dfb54bdb572287f
tree925002f3078d133b5758fb663153b7b728f241d7
parent48768ab4337175791681d4452aef3745a51bf8a6
devicediscovery: add more sophisticated discovery

Detect devices based on bit testing through evdev ioctl api. As this is
for the udev replacement, the bit testing is done similar to what udev
does. The current keyboard detection is based on testing if the KEY_Q is
available. This might be adjusted in the future.

Change-Id: I3f4176681a351e33d90a1425f1afedc8ce3640b8
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
src/platformsupport/devicediscovery/qdevicediscovery_static.cpp