kpilot/lib
KPilotDeviceLink Class Reference
#include <kpilotdevicelink.h>
Inheritance diagram for KPilotDeviceLink:

Detailed Description
Definition of the device link class for physical handheld devices, which communicate with the PC using DLP / SLP via the pilot-link library.
Definition at line 72 of file kpilotdevicelink.h.
Public Member Functions | |
KPilotDeviceLink (QObject *parent=0, const char *name=0, const QString &tempDevice=QString::null) | |
virtual | ~KPilotDeviceLink () |
LinkStatus | status () const |
virtual QString | statusString () const |
virtual bool | isConnected () const |
virtual void | reset (const QString &) |
virtual void | close () |
virtual void | reset () |
virtual bool | event (QEvent *e) |
virtual bool | tickle () |
virtual const KPilotCard * | getCardInfo (int card) |
virtual void | endSync (EndOfSyncFlags f) |
virtual int | openConduit () |
virtual int | getNextDatabase (int index, struct DBInfo *) |
virtual int | findDatabase (const char *name, struct DBInfo *, int index=0, unsigned long type=0, unsigned long creator=0) |
virtual bool | retrieveDatabase (const QString &path, struct DBInfo *db) |
virtual DBInfoList | getDBList (int cardno=0, int flags=dlpDBListRAM) |
virtual PilotDatabase * | database (const QString &name) |
virtual PilotDatabase * | database (const DBInfo *info) |
void | setWorkarounds (bool usb) |
void | setTempDevice (const QString &device) |
void | setDevice (const QString &device) |
Static Public Member Functions | |
static QString | statusString (LinkStatus l) |
Protected Member Functions | |
virtual bool | installFile (const QString &, const bool deleteFile) |
virtual void | addSyncLogEntryImpl (const QString &s) |
virtual int | pilotSocket () const |
void | checkDevice () |
void | startCommThread () |
void | stopCommThread () |
Protected Attributes | |
bool | fWorkaroundUSB |
QString | fRealPilotPath |
int | fPilotSocket |
QString | fTempDevice |
int | fAcceptedCount |
Messages * | fMessages |
DeviceCommThread * | fDeviceCommThread |
Friends | |
class | PilotSerialDatabase |
class | DeviceCommThread |
Constructor & Destructor Documentation
|
Constructor. Creates a link that can sync to a physical handheld. Call reset() on it to start looking for a device.
Definition at line 530 of file kpilotdevicelink.cc. |
|
Destructor. This rudely ends the communication with the handheld. It is best to call endOfSync() or finishSync() before destroying the device. Definition at line 542 of file kpilotdevicelink.cc. |
Member Function Documentation
|
Actually write an entry to the device link.
The message Implements KPilotLink. Definition at line 741 of file kpilotdevicelink.cc. |
|
Check for device permissions and existence, emitting warnings for weird situations. This is primarily intended to inform the user. Definition at line 697 of file kpilotdevicelink.cc. |
|
Release all resources, including the master pilot socket, timers, etc.
Implements KPilotLink. Definition at line 630 of file kpilotdevicelink.cc. |
|
Return a database object for manipulating the database with the name stored in the DBInfo structure The default version goes through method database( const QString & ), above.
Reimplemented from KPilotLink. Definition at line 962 of file kpilotdevicelink.cc. |
|
Return a database object for manipulating the database with name This database may be local or remote, depending on the kind of link in use.
Implements KPilotLink. Definition at line 957 of file kpilotdevicelink.cc. |
|
Allows our class to receive custom events that our threads will be giving to us, including tickle timeouts and device communication events.
Reimplemented from KPilotLink. Definition at line 556 of file kpilotdevicelink.cc. |
|
Find a database with the given
Fills in the DBInfo structure
Implements KPilotLink. Definition at line 867 of file kpilotdevicelink.cc. |
|
Retrieve information about the data card Non-device links return something fake. This function may return NULL (non-device links or on error).
Implements KPilotLink. Definition at line 944 of file kpilotdevicelink.cc. |
|
Returns a list of DBInfo structures describing all the databases available on the link (ie.
device) with the given card number
Implements KPilotLink. Definition at line 910 of file kpilotdevicelink.cc. |
|
Fill the DBInfo structure
Implements KPilotLink. Definition at line 853 of file kpilotdevicelink.cc. |
|
Install a single file onto the device link.
Full pathname Implements KPilotLink. Definition at line 747 of file kpilotdevicelink.cc. |
|
True if HotSync has been started but not finished yet (ie. the physical Pilot is waiting for sync commands) Implements KPilotLink. Definition at line 551 of file kpilotdevicelink.cc. |
|
Notify the Pilot user that a conduit is running now. On real devices, this prints out (on screen) which database is now opened; useful for progress reporting.
Reimplemented from KPilotLink. Definition at line 786 of file kpilotdevicelink.cc. |
|
Returns a file handle for raw operations. Not recommended. On links with no physical device backing, returns -1.
Reimplemented from KPilotLink. Definition at line 136 of file kpilotdevicelink.h. |
|
Assuming things have been set up at least once already by a call to reset() with parameters, use this slot to re-start with the same settings.
Implements KPilotLink. Definition at line 683 of file kpilotdevicelink.cc. |
|
Return the device link to the Init state and try connecting to the given device path (if it's non-empty). What the path means depends on the kind of link we're instantiating.
Implements KPilotLink. Definition at line 639 of file kpilotdevicelink.cc. |
|
Retrieve the database indicated by DBInfo
This copies all the data, and you can create a PilotLocalDatabase from the resulting
Implements KPilotLink. Definition at line 875 of file kpilotdevicelink.cc. |
|
Sets the device to use. Used by probe dialog, since we know what device to use, but we don't want to start the detection immediately. Definition at line 171 of file kpilotdevicelink.h. |
|
Sets an additional device, which should be tried as fallback. Useful for hotplug enviroments, this device is used once for accepting a connection. Definition at line 728 of file kpilotdevicelink.cc. |
|
Special-cases. Call this after a reset to set device- specific workarounds; the only one currently known is the Zire 31/72 T5 quirk of doing a non-HotSync connect when it's switched on. Definition at line 154 of file kpilotdevicelink.h. |
|
Start/Stop our device communication thread.
Definition at line 659 of file kpilotdevicelink.cc. |
|
Get the status (state enum) of this link.
Definition at line 104 of file kpilotdevicelink.h. |
|
Provides a human-readable status string.
Implements KPilotLink. Definition at line 829 of file kpilotdevicelink.cc. |
|
Get a human-readable string for the given status
Definition at line 791 of file kpilotdevicelink.cc. |
|
Tickle the underlying device exactly once.
Implements KPilotLink. Definition at line 734 of file kpilotdevicelink.cc. |
Member Data Documentation
|
Handle cases where we can't accept or open the device, and data remains available on the pilot socket.
Definition at line 206 of file kpilotdevicelink.h. |
|
Pilot-link library handles for the device once it's opened.
Definition at line 199 of file kpilotdevicelink.h. |
|
Path with resolved symlinks, to prevent double binding to the same device.
Definition at line 194 of file kpilotdevicelink.h. |
|
Should we work around the Zire31/72 quirk?
Definition at line 179 of file kpilotdevicelink.h. |
The documentation for this class was generated from the following files: