Inspect lock file to determine busy state.


QSPI was relying on QLockFile.isLocked() to determine if the port
was in use. This was due to a misunderstanding of the QLockFile
class design.

Ideally the code in QSPI.isBusy() should be moved into a new method,
QLockFile.available(), since it contains implementation details of
that class.

Note that isBusy() is for information purposes only, since checking
for a lock without obtaining it is always racy.

Change-Id: I675bd4033e4228e6bf864bf2e7a00a2520ccc50e
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: David Faure <david.faure@kdab.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
commite9104b9a4a1c869050493181933c95cd2867a5e7
parentd39e916c6f397801ac329968515d90f0d1b9ef8f
authorDyami Caliri <dyami@dragonframe.com>
committerThe Qt Project <gerrit-noreply@qt-project.org>
commit timeFri, 23 May 2014 16:20:07 +0200