Refactor system page in GUI Alpha.

This commit is contained in:
sunwen
2024-04-25 14:37:38 +08:00
parent f9eb807fa3
commit 982b54b727
420 changed files with 23907 additions and 872 deletions

View File

@@ -9,7 +9,6 @@ namespace
{
const std::string CRT_FILE = "./cfgs/client.crt";
const std::string KEY_FILE = "./cfgs/client.key";
const int CHECK_RECON_CONNECTION_TIME = 30000;
std::string toReconServerAddress(const QString& aIp, const QString& aPort)
{
@@ -26,12 +25,9 @@ ReconManager* ReconManager::getInstance()
ReconManager::ReconManager(QObject* aParent)
: QObject(aParent)
, mReconClient(new Recon::ReconClient(CRT_FILE, KEY_FILE))
, mTimer(new QTimer(this))
, mIsConnected(false)
{
init();
connect(mTimer, &QTimer::timeout, this, &ReconManager::checkReconConnection);
mTimer->start(CHECK_RECON_CONNECTION_TIME);
}
ReconManager::~ReconManager()

View File

@@ -44,7 +44,6 @@ signals:
private:
Recon::ReconClient* mReconClient;
QTimer* mTimer;
bool mIsConnected;
};