Return in certain methods if the device is not open


This is necessary for a couple of methods because they require the port being
open for being functional. Hence, if the port is not open, they now return
properly on their own, and set the "NotOpenError" error code .

This has been (only build!) tested on Linux (Arch) with Qt 4 and then 5.

Change-Id: Ifc77bea581dd1832e188fa7562c5c1b15c0532e3
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
commit6e03505a1a2b6ce6e5dc1a5ee28c084ef4692380
parent2e237466d3f3e1f2d41be681364b76fe82b7886a
authorLaszlo Papp <lpapp@kde.org>
committerThe Qt Project <gerrit-noreply@qt-project.org>
commit timeSun, 6 Oct 2013 07:53:17 +0200