CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
canrawfilterguiint.h
Go to the documentation of this file.
1#ifndef CANRAWFILTERGUIINT_H
2#define CANRAWFILTERGUIINT_H
3
4#include <Qt>
5#include <functional>
6#include <tuple>
7#include <vector>
8
9class QWidget;
10
12 typedef std::tuple<QString, QString, bool> AcceptListItem_t;
13 typedef std::vector<AcceptListItem_t> AcceptList_t;
14 typedef std::function<void(AcceptList_t& list)> ListUpdated_t;
15
17
18 virtual QWidget* mainWidget() = 0;
19 virtual void setTxListCbk(const ListUpdated_t& cb) = 0;
20 virtual void setRxListCbk(const ListUpdated_t& cb) = 0;
21 virtual void setListRx(const AcceptList_t& list) = 0;
22 virtual void setListTx(const AcceptList_t& list) = 0;
23};
24
25#endif // CANRAWFILTERGUIINT_H
Definition canrawfilterguiint.h:11
std::tuple< QString, QString, bool > AcceptListItem_t
Definition canrawfilterguiint.h:12
std::function< void(AcceptList_t &list)> ListUpdated_t
Definition canrawfilterguiint.h:14
virtual void setListTx(const AcceptList_t &list)=0
virtual QWidget * mainWidget()=0
virtual void setListRx(const AcceptList_t &list)=0
virtual void setRxListCbk(const ListUpdated_t &cb)=0
virtual ~CanRawFilterGuiInt()
Definition canrawfilterguiint.h:16
virtual void setTxListCbk(const ListUpdated_t &cb)=0
std::vector< AcceptListItem_t > AcceptList_t
Definition canrawfilterguiint.h:13