压力算法移植前

This commit is contained in:
2026-06-29 14:54:30 +08:00
parent 507781d127
commit ef2eecf972
1652 changed files with 312373 additions and 29 deletions
+44
View File
@@ -0,0 +1,44 @@
#ifndef SECONDTHREADFROMQTHREAD_H
#define SECONDTHREADFROMQTHREAD_H
#include <QThread>
#include <QTimer>
#include "LicenseManger/LicenseManger.h"
#include "dlgshowmsg.h"
#include <QMessageBox>
class SecondThread : public QThread
{
Q_OBJECT
signals:
void message(const QString& info);
void progress(int present);
void printerLicErr(qint8);
void update_license_complete(qint8);
public:
SecondThread(QObject* par);
~SecondThread();
void setSomething();
void getSomething();
void setRunCount(int count);
void run();
void doSomething();
void update_license_file();
private:
int m_runCount;
QTimer *pTimer10s;
LicenseManger *pUpLicManager;
QDate curDate;
TAesClass *pAes;
qint8 licState;
DlgShowMsg *pDdlgShowMsg;
bool bLicFileUpdating;
private slots:
void timeoutSlot();
void update_license_process();
void set_serial_number_process(quint32);
};
#endif // THREADFROMQTHREAD_H