diff options
Diffstat (limited to 'lib/kpilotdevicelink.h')
-rw-r--r-- | lib/kpilotdevicelink.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/kpilotdevicelink.h b/lib/kpilotdevicelink.h index a648b23..b912c19 100644 --- a/lib/kpilotdevicelink.h +++ b/lib/kpilotdevicelink.h @@ -42,7 +42,7 @@ class DeviceCommThread; ///< Thread for doing all palm device communications * it waits for the actual device to become available, and * then becomes ready to handle syncing. */ -enum LinkStatus { +enum LinktqStatus { Init, WaitingForDevice, FoundDevice, @@ -75,20 +75,21 @@ friend class PilotSerialDatabase; friend class DeviceCommThread; Q_OBJECT + TQ_OBJECT public: /** * Constructor. Creates a link that can sync to a physical handheld. * Call reset() on it to start looking for a device. * - * @param parent Parent object. + * @param tqparent Parent object. * @param name Name of this object. * @param tempDevice Path to device node to use as an alternative * to the "normal" one set by KPilot. */ - KPilotDeviceLink( TQObject *parent = 0, + KPilotDeviceLink( TQObject *tqparent = 0, const char *name = 0, - const TQString &tempDevice = TQString::null ); + const TQString &tempDevice = TQString() ); /** * Destructor. This rudely ends the communication with the handheld. @@ -99,15 +100,15 @@ public: /** * Get the status (state enum) of this link. - * @return The LinkStatus enum for the link's current state. + * @return The LinktqStatus enum for the link's current state. */ - LinkStatus status() const + LinktqStatus status() const { - return fLinkStatus; + return fLinktqStatus; } /** Get a human-readable string for the given status @p l. */ - static TQString statusString(LinkStatus l); + static TQString statusString(LinktqStatus l); // The following API is the actual implementation of // the KPilotLink API, for documentation see that file. @@ -140,7 +141,7 @@ protected: private: - LinkStatus fLinkStatus; + LinktqStatus fLinktqStatus; public: |