Refactor system page in GUI Alpha.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -44,7 +44,6 @@ signals:
|
||||
|
||||
private:
|
||||
Recon::ReconClient* mReconClient;
|
||||
QTimer* mTimer;
|
||||
bool mIsConnected;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user