Files
giesCANne/re/isotp_interpreterwindow.h
T
Collin Kidder 0f9584eaea Fixed ISOTP Interpreter Window - It functions again.
Also added UDS decoding to the ISOTP window. An attempt is made to see
if a frame looks like UDS and then it is decoded.

Also, some code clean up to remove some compiler warnings. There's a
LONG way to go still.
2017-10-09 20:59:25 -04:00

44 lines
945 B
C++

#ifndef ISOTP_INTERPRETERWINDOW_H
#define ISOTP_INTERPRETERWINDOW_H
#include <QDialog>
#include "bus_protocols/isotp_handler.h"
class ISOTP_MESSAGE;
class ISOTP_HANDLER;
namespace Ui {
class ISOTP_InterpreterWindow;
}
class ISOTP_InterpreterWindow : public QDialog
{
Q_OBJECT
public:
explicit ISOTP_InterpreterWindow(const QVector<CANFrame> *frames, QWidget *parent = 0);
~ISOTP_InterpreterWindow();
void showEvent(QShowEvent*);
private slots:
void newISOMessage(ISOTP_MESSAGE msg);
void newUDSMessage(UDS_MESSAGE msg);
void showDetailView();
void updatedFrames(int);
void clearList();
private:
Ui::ISOTP_InterpreterWindow *ui;
ISOTP_HANDLER *decoder;
UDS_HANDLER *udsDecoder;
const QVector<CANFrame> *modelFrames;
QVector<ISOTP_MESSAGE> messages;
void closeEvent(QCloseEvent *event);
void readSettings();
void writeSettings();
};
#endif // ISOTP_INTERPRETERWINDOW_H