added basic tests for callback & filters

This commit is contained in:
canpadawan
2016-06-20 17:35:42 +02:00
parent 1a195fe360
commit adb70d2333
3 changed files with 50 additions and 9 deletions
+9 -2
View File
@@ -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();