forked from collin80/SavvyCAN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
isotp_interpreterwindow.h
52 lines (41 loc) · 1.22 KB
/
isotp_interpreterwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#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();
void listFilterItemChanged(QListWidgetItem *item);
void filterAll();
void filterNone();
void interpretCapturedFrames();
void useExtendedAddressing(bool checked);
void headerClicked(int logicalIndex);
private:
Ui::ISOTP_InterpreterWindow *ui;
ISOTP_HANDLER *decoder;
UDS_HANDLER *udsDecoder;
const QVector<CANFrame> *modelFrames;
QVector<ISOTP_MESSAGE> messages;
QHash<int, bool> idFilters;
void closeEvent(QCloseEvent *event);
bool eventFilter(QObject *obj, QEvent *event);
void readSettings();
void writeSettings();
};
#endif // ISOTP_INTERPRETERWINDOW_H