修复RFID导致回收槽关闭;修复新建文件后不自动切换的问题
This commit is contained in:
+15
-1
@@ -6,8 +6,10 @@
|
||||
#include <QObject>
|
||||
#include <QTimer>
|
||||
#include <QMutex>
|
||||
#include <functional>
|
||||
|
||||
class SysPara;
|
||||
class QMessageBox;
|
||||
enum CARD_TYPE{
|
||||
INK = 1,
|
||||
SOLVENT = 2,
|
||||
@@ -102,11 +104,23 @@ private:
|
||||
void initTimer();
|
||||
|
||||
bool cardTouchConfirm(QString msgTxt, QString variableMsgTxt);
|
||||
|
||||
void cardTouchConfirmAsync(QString msgTxt, QString variableMsgTxt, std::function<void()> callback);
|
||||
|
||||
void markInkCard(const QString &strRevdata = QString());
|
||||
|
||||
void markSolventCard(const QString &strRevdata = QString());
|
||||
|
||||
void markMaintenanceCard(const QString &strRevdata = QString());
|
||||
|
||||
//刷卡新需求,刷卡和倒溶剂/墨水不分先后,都可以去除报警提示。
|
||||
StatuStruct status;
|
||||
void updateStatus();
|
||||
QTimer* warningTimer = nullptr;
|
||||
QMessageBox* m_confirmBox = nullptr;
|
||||
QTimer* m_confirmTimer = nullptr;
|
||||
QString m_confirmBoxTxt;
|
||||
std::function<void()> m_confirmCallback;
|
||||
int waitStatus();
|
||||
bool waitCard();
|
||||
signals:
|
||||
@@ -132,4 +146,4 @@ private slots:
|
||||
void slt_intervalTimerHandle();
|
||||
};
|
||||
|
||||
#endif // RFIDMANAGER_H
|
||||
#endif // RFIDMANAGER_H
|
||||
Reference in New Issue
Block a user