Add a new window that can be used to bridge two CAN buses with
selective ID forwarding.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#ifndef CANBRIDGEWINDOW_H
|
||||
#define CANBRIDGEWINDOW_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "connections/canconmanager.h"
|
||||
|
||||
namespace Ui {
|
||||
class CANBridgeWindow;
|
||||
}
|
||||
|
||||
class CANBridgeWindow : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CANBridgeWindow(const QVector<CANFrame> *frames, QWidget *parent = nullptr);
|
||||
~CANBridgeWindow();
|
||||
void showEvent(QShowEvent*);
|
||||
|
||||
|
||||
private slots:
|
||||
void updatedFrames(int);
|
||||
void recalcSides();
|
||||
|
||||
private:
|
||||
Ui::CANBridgeWindow *ui;
|
||||
const QVector<CANFrame> *modelFrames;
|
||||
QMap<int, bool> foundIDSide1;
|
||||
QMap<int, bool> foundIDSide2;
|
||||
int side1BusNum;
|
||||
int side2BusNum;
|
||||
|
||||
void processIncomingFrame(CANFrame *frame);
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
|
||||
};
|
||||
|
||||
#endif // CANBRIDGEWINDOW_H
|
||||
Reference in New Issue
Block a user