##// END OF EJS Templates
Function added to the plugin to store packets in CSV format.
Function added to the plugin to store packets in CSV format.

File last commit:

r45:bff3fdf42776 default
r55:4ea52012da18 default
Show More
tmechobridge.h
73 lines | 1.6 KiB | text/x-c | CLexer
#ifndef TMECHOBRIDGE_H
#define TMECHOBRIDGE_H
#include <QWidget>
#include <QTcpServer>
#include <QTcpSocket>
#include <QLabel>
#include <QSpinBox>
#include <QPushButton>
#include <QGroupBox>
#include <QGridLayout>
#include <QTextEdit>
#include <QXmlStreamWriter>
#include <QTime>
#include "tmpackettoread.h"
class TMEchoBridge : public QWidget
{
Q_OBJECT
public:
explicit TMEchoBridge(QWidget *parent = 0);
signals:
public slots:
void listenOnTMEchoBridgePort();
void testTMEchoBridgePort();
void newConnectionOnTMEchoBridgeServer();
int getTMPort();
void displayOnConsole(QString message);
void initSocketStatesList();
void newConnectionOnTCServer();
void sendXML_GSE_HK();
void sendTMPacket(TMPacketToRead *tmPacketToRead);
void sendTMPacketLESIA(TMPacketToRead *tmPacketToRead);
void clearConsole();
void resetTMStatistics();
private:
QList<QString> socketStates;
unsigned int totalOfBytes;
unsigned int totalOfPackets;
unsigned int totalOfPacketsDropped;
QTcpServer *tmEchoBridgeServer;
QTcpSocket *tmEchoBridgeSocket;
QXmlStreamWriter *xmlWriter;
QTextEdit *console;
QLabel *label_TMServerPort;
QLabel *label_totalOfBytes;
QLabel *label_totalOfPackets;
QLabel *label_totalOfPacketsDropped;
QSpinBox *spinbox_TMServerPort;
QPushButton *button_openServerTCTM;
QPushButton *button_testServerTCTM;
QPushButton *button_sendTestPacket;
QPushButton *button_clearConsole;
QPushButton *button_resetTMStatistics;
QGroupBox *groupbox_ports;
QGridLayout *layout_ports;
QGridLayout *mainLayout;
};
#endif // TMECHOBRIDGE_H