Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CONFORMPROCESS_H
00028 #define CONFORMPROCESS_H
00029
00030 #include <QtCore>
00031 #include <GeopsySLink.h>
00032
00033 class ConformProcess : public QObject
00034 {
00035 Q_OBJECT
00036 public:
00037 ConformProcess(QObject * parent=0);
00038 ~ConformProcess();
00039
00040 void setTimeReference(const QDateTime& t) {_timeReference=t;}
00041 void setStationName(const QString& n) {_stationName=n;}
00042 void start(QString serverAddress, quint16 port);
00043 private slots:
00044 void seedLinkError(SeedLink::Error e);
00045 void monitorDataChange(Signal * sig, const TimeRange& receivedRange);
00046 void setSendLedStatus();
00047 private:
00048 Signal * shifted(const Signal * sig, const TimeRange& r);
00049 void send(const Signal * sig, int margin);
00050
00051 QDateTime _timeReference;
00052 QString _stationName;
00053 SeedLink _seedLink;
00054 QTimer _sendLedTimer;
00055 QTime _sendLedChrono;
00056 };
00057
00058 #endif // CONFORMPROCESS_H