kpilot/lib
DeviceCommThread Class Reference
#include <kpilotdevicelinkPrivate.h>
Detailed Description
Class that handles all device communications.We do this in a different thread so that we do not block the main Qt Event thread (similar to Swing's AWT event dispatch thread).
Definition at line 214 of file kpilotdevicelinkPrivate.h.
Public Member Functions | |
DeviceCommThread (KPilotDeviceLink *d) | |
virtual | ~DeviceCommThread () |
virtual void | run () |
void | setDone (bool b) |
Protected Slots | |
void | openDevice () |
void | acceptDevice () |
void | workaroundUSB () |
Protected Member Functions | |
void | close () |
void | reset () |
bool | open (const QString &device=QString::null) |
Friends | |
class | KPilotDeviceLink |
Member Function Documentation
|
Called when the device is opened *and* activity occurs on the device. This indicates the beginning of a hotsync. Definition at line 339 of file kpilotdevicelink.cc. |
|
Does the low-level opening of the device and handles the pilot-link library initialisation. We _always_ want to set a maximum amount of time that we will wait for the sync process to start. In the case where our user has told us that he has a funky USB device, set the workaround timeout for shorter than normal. Definition at line 222 of file kpilotdevicelink.cc. |
|
Attempt to open the device. Called regularly to check if the device exists (to handle USB-style devices). Definition at line 170 of file kpilotdevicelink.cc. |
|
This slot fires whenever we've been trying to establish a hotsync with the device for longer than a given amount of time. When this slot is fired, we will tear down the communications process and start over again. Definition at line 501 of file kpilotdevicelink.cc. |
The documentation for this class was generated from the following files: