Refactor system page in GUI Alpha.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <QObject>
|
||||
#include <QThread>
|
||||
#include "DeviceDefs.h"
|
||||
#include "InfoReceiveWorker.h"
|
||||
|
||||
class DmsSyncAction;
|
||||
class DmsAsyncAction;
|
||||
@@ -27,13 +28,14 @@ public:
|
||||
|
||||
~DeviceManager() override
|
||||
{
|
||||
// mCmdSendThread->quit();
|
||||
// mCmdSendThread->wait();
|
||||
// mCmdSendThread->deleteLater();
|
||||
|
||||
mInfoReceiveWorker->exit();
|
||||
mDmsInfoReceiveThread->quit();
|
||||
mDmsInfoReceiveThread->wait();
|
||||
mDmsInfoReceiveThread->deleteLater();
|
||||
|
||||
mReconHttpThread->quit();
|
||||
mReconHttpThread->wait();
|
||||
mReconHttpThread->deleteLater();
|
||||
}
|
||||
|
||||
DeviceManager(const DeviceManager &) = delete;
|
||||
@@ -215,6 +217,8 @@ private:
|
||||
DmsAsyncAction* mShutDownAction = nullptr;
|
||||
DmsAsyncAction* mPumpControlAction = nullptr;
|
||||
|
||||
InfoReceiveWorker* mInfoReceiveWorker = nullptr;
|
||||
|
||||
friend class InfoReceiveWorker;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user