45 lines
972 B
C++
45 lines
972 B
C++
#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
|