added basic tests for callback & filters
This commit is contained in:
+9
-2
@@ -8,8 +8,9 @@
|
||||
#include <QDebug>
|
||||
#include <QSettings>
|
||||
#include <QTimer>
|
||||
//#include "canconnection_old.h"
|
||||
//#include "serialworker.h"
|
||||
/*test*/
|
||||
#include <QMetaMethod>
|
||||
/******/
|
||||
#include "canconnectionmodel.h"
|
||||
#include "canframemodel.h"
|
||||
|
||||
@@ -33,6 +34,7 @@ public:
|
||||
QString getPortName(); //name of port to connect to
|
||||
CANCon::type getConnectionType();
|
||||
bool getSWMode();
|
||||
void callback(CANCon::cbtype pType);
|
||||
|
||||
signals:
|
||||
void updateBusSettings(CANBus *bus);
|
||||
@@ -68,6 +70,11 @@ private:
|
||||
CANFrameModel *canModel;
|
||||
QTimer mTicker;
|
||||
|
||||
QAtomicInt mRefreshReqOngoing;
|
||||
|
||||
/*test*/
|
||||
QMetaMethod mRefreshM;
|
||||
|
||||
|
||||
void selectSerial();
|
||||
void selectKvaser();
|
||||
|
||||
Reference in New Issue
Block a user