54 lines
1.4 KiB
C++
54 lines
1.4 KiB
C++
#ifndef SEFFECTLOGIC
|
|
#define SEFFECTLOGIC
|
|
|
|
class SRunningProcess;
|
|
class STimer;
|
|
class SRunningListWidget;
|
|
class SAddDelWidget;
|
|
class SLogWidget;
|
|
|
|
#include "sutilclass.h"
|
|
#include <QObject>
|
|
#include <QVector>
|
|
|
|
class SEffectLogic:public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SEffectLogic();
|
|
void setSRunningProcess(SRunningProcess* _p);
|
|
void setSTimer(STimer* _p);
|
|
void setSRunningWidget(SRunningListWidget* _p);
|
|
void setSAddDelWidget(SAddDelWidget* _p);
|
|
void setSLogWidget(SLogWidget* _p);
|
|
void initConnect();
|
|
|
|
private slots:
|
|
void slotStartByTimer();
|
|
void slotUserAbort();
|
|
void slotTerminateError();
|
|
void slotCompleteCompany(int _companyNum, const SReportSummary& _reportSummary);
|
|
void slotSuccessErrorCompany(int _companyNum);
|
|
void slotCompanyStart(int _companyNum);
|
|
void slotCompanyOutdated(const QVector<int>& _vecCompany);
|
|
void slotTerminateNormal(const QVector<SEffectRow>& _error,
|
|
const QMap<int, SReportSummary>& _report);
|
|
void slotClickForceStart();
|
|
void slotClickForceStop();
|
|
void slotClickTimerStart();
|
|
void slotClickTimerStop();
|
|
|
|
|
|
private:
|
|
SRunningProcess* m_pSRunningProcess;
|
|
STimer* m_pSTimer;
|
|
SRunningListWidget* m_pSRunningListWidget;
|
|
SAddDelWidget* m_pSAddDelWidget;
|
|
SLogWidget* m_pSLogWidget;
|
|
int nRetry;
|
|
};
|
|
|
|
#endif // SEFFECTLOGIC
|
|
|