19 #ifndef QVCT_CDEVICETCPSBS1_HPP
20 #define QVCT_CDEVICETCPSBS1_HPP
23 #include <QAbstractSocket>
24 #include <QDomElement>
28 #include <QXmlStreamWriter>
117 void parseQVCT(
const QDomElement& _rqDomElement );
118 void dumpQVCT( QXmlStreamWriter & _rqXmlStreamWriter )
const;
130 void slotTcpError( QAbstractSocket::SocketError _qSocketError );
@ TCP_SBS1
TCP socket, SBS-1 protocol.
Callsign dictionary entry.
double fdTimestamp
Insert/update timestamp.
QString qsCallsign
Callsign.
void update(const QString &_rqsCallsign, double _fdTimestamp)
QString & get(double _fdTimestamp)
CCallsign(const QString &_rqsCallsign, double _fdTimestamp)
SBS-1 protocol (TCP socket) navigation device.
virtual CDeviceDriver::EDriver getDriver() const
Returns the device's driver ID.
QTcpSocket * pqTcpSocket
TCP socket.
virtual void showDetail()
Displays the device's details (in the appropriate widget/view)
void parseQVCT(const QDomElement &_rqDomElement)
Retrieves the device's configuration from the given QVCT source (file)
double fdCallsignCleanupTimestamp
Callsign dictionary cleanup timestamp.
virtual int getCapabilities() const
Returns the device's capabilities.
CUnitTimeZone::EUnit eTimeZone
Time zone.
bool bPaused
Pause status.
bool bStarted
Start status.
virtual void showEdit()
Displays the device's edit (configuration) widget/view.
void setGroundTraffic(bool _bGroundTraffic)
void setHost(const QString &_rqsHost)
QString qsHost
Network host.
QVCT::EStatus pause()
Pause the device.
void slotProcessData()
Slots to process device data.
CUnitTimeZone::EUnit getTimeZone()
void setTimeZone(CUnitTimeZone::EUnit _eTimeZone)
virtual ~CDeviceTcpSbs1()
CDeviceTcpSbs1(const QString &_rqsName)
void slotTcpConnected()
Slots to report TCP connection.
void slotTcpError(QAbstractSocket::SocketError _qSocketError)
Slots to report TCP error.
QHash< QString, CCallsign > qHashCallsign
Callsign dictionary.
bool bGroundTraffic
Ground traffic (inclusion/track)
QVCT::EStatus start()
Stop the device.
bool bCallsignLookup
Callsign lookup.
QVCT::EStatus setOperatingMode(CDevice::EOperatingMode _eOperatingMode)
Sets the device's operating mode.
QVCT::EStatus stop()
Start the device.
void dumpQVCT(QXmlStreamWriter &_rqXmlStreamWriter) const
Stores the device's configuration to the given QVCT destination (file)
CDevice::EOperatingMode status()
Returns the device's status (operating mode)
void setCallsignLookup(bool _bCallsignLookup)
Generic navigation device (GPS, speedometer, compass, etc.)
@ FIX
Device emits 'newDataFix' signal.
EOperatingMode
Device operating mode (stop, start, pause)