添加自动测试命令 auto_test
V2.03 批检仪检测指令使用小板的错误码
This commit is contained in:
@@ -3,19 +3,33 @@
|
||||
|
||||
|
||||
#include "QObject"
|
||||
#include "QTimer"
|
||||
#include "base/base.h"
|
||||
|
||||
|
||||
//class cmd_line_slots:public QObject
|
||||
//{
|
||||
// Q_OBJECT
|
||||
//public:
|
||||
// cmd_line_slots(){}
|
||||
// ~cmd_line_slots(){}
|
||||
//public slots:
|
||||
class cmd_line_slots:public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
cmd_line_slots(){
|
||||
timer_=nullptr;
|
||||
run_flag=0;
|
||||
}
|
||||
~cmd_line_slots(){
|
||||
if(timer_!=nullptr){
|
||||
delete timer_;
|
||||
timer_=nullptr;
|
||||
}
|
||||
}
|
||||
public slots:
|
||||
// void rate_slot(int rate,mystring str);
|
||||
// void end_slot(int addr,int ack,myarray data);
|
||||
//};
|
||||
void auto_test();
|
||||
void auto_start();
|
||||
protected:
|
||||
QTimer *timer_;
|
||||
int run_flag;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user