From a4d4709118585b5fa5a21d881880913ba28929fc Mon Sep 17 00:00:00 2001 From: semenov Date: Tue, 23 Sep 2025 10:20:17 +0300 Subject: [PATCH] fix: reconnect with old connection --- Core/UpdateController.cpp | 28 +- Core/UpdateController.h | 5 +- Core/fasthashcalculator.cpp | 33 +- Core/fasthashcalculator.h | 4 + StaticData/clientHash.xml | 2461 +++++++++++++++++----------------- StaticData/settings.xml | 6 +- StaticData/streamingHash.xml | 2389 ++++++++++++++++----------------- StaticData/temp.xml | 2 +- coremanager.cpp | 3 +- 9 files changed, 2476 insertions(+), 2455 deletions(-) diff --git a/Core/UpdateController.cpp b/Core/UpdateController.cpp index 4d2b52f..53718b1 100644 --- a/Core/UpdateController.cpp +++ b/Core/UpdateController.cpp @@ -9,6 +9,7 @@ UpdateController::UpdateController(QObject *parent) : versionContainer(nullptr) { applicationFolderPath = QDir::currentPath() + applicationFolderName; + hashCalculator = new FastHashCalculator; } void UpdateController::initialize(VersionContainer *versionContainer,DataParserOutput *dataParserOut, SendSystem *sendSystem) @@ -16,7 +17,6 @@ void UpdateController::initialize(VersionContainer *versionContainer,DataParserO this->versionContainer = versionContainer; this->sendSystem = sendSystem; this->dataParserOut = dataParserOut; - hashCalculator = new FastHashCalculator; } void UpdateController::calculateCommonHash() @@ -56,7 +56,6 @@ QList UpdateController::calculateHash(const QString& path,const QStrin } QList *hashes = new QList; - QString fullSize = Tools::convertFileSize(getDirectorySize(path),false); quint64 currentSize = 0; QStringList filter; @@ -93,7 +92,7 @@ QList UpdateController::calculateHash(const QString& path,const QStrin currentSize += fileInfo.size(); - emit sigSendHashInfo(fullSize,Tools::convertFileSize(currentSize,false)); + quint64 fileSize = file.size(); //буффер для хэширования крупных файлов const quint64 bufferSize = 1024; @@ -126,24 +125,6 @@ QList UpdateController::calculateHash(const QString& path,const QStrin return *hashes; } -quint64 UpdateController::getDirectorySize(const QString& path) -{ - quint64 totalSize = 0; - QDirIterator iterator(path, QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot, QDirIterator::Subdirectories); - - while (iterator.hasNext()) - { - iterator.next(); - QFileInfo fileInfo = iterator.fileInfo(); - if (fileInfo.isFile()) - { - totalSize += fileInfo.size(); - } - } - - return totalSize; -} - void UpdateController::updateFilesOnServer(QList *fileSendList){ QListIterator serverIterator(*fileSendList); @@ -177,6 +158,11 @@ void UpdateController::updateFilesOnServer(QList *fileSendList){ } +FastHashCalculator *UpdateController::getHashCalculator() const +{ + return hashCalculator; +} + UpdateController::~UpdateController() { diff --git a/Core/UpdateController.h b/Core/UpdateController.h index be40af7..d3329d3 100644 --- a/Core/UpdateController.h +++ b/Core/UpdateController.h @@ -35,9 +35,11 @@ public: void updateFilesOnServer(QList *fileSendList); void checkCanUpdate(); + FastHashCalculator *getHashCalculator() const; + signals: void sigUpdateComplete(bool flag); - void sigSendHashInfo(QString fullSize,QString current); + private: SendSystem *sendSystem; DataParserOutput * dataParserOut; @@ -48,7 +50,6 @@ private: QList streamingDataList; QList calculateHash(const QString& path,const QString& ignoreName); - quint64 getDirectorySize(const QString &path); }; diff --git a/Core/fasthashcalculator.cpp b/Core/fasthashcalculator.cpp index 6665088..6ea2164 100644 --- a/Core/fasthashcalculator.cpp +++ b/Core/fasthashcalculator.cpp @@ -9,7 +9,7 @@ FastHashCalculator::FastHashCalculator(QObject *parent) : QObject(parent) void FastHashCalculator::calculateHashes(const QString& path, const QString& ignoreName) { hashList->clear(); - + currentSize = 0; if(!QDir(path).exists()){ QDir().mkdir(path); } @@ -18,7 +18,7 @@ void FastHashCalculator::calculateHashes(const QString& path, const QString& ign QStringList filter; filter << "*"; QList *folders = new QList; - //QString fullSize = Tools::convertFileSize(getDirectorySize(path),false); + fullSize = Tools::convertFileSize(getDirectorySize(path),false); QDirIterator dirIterator(path,filter, QDir::AllEntries, QDirIterator::Subdirectories); @@ -80,18 +80,45 @@ QByteArray FastHashCalculator::calculateFileHashOptimized(const QString &filePat if (!file.open(QIODevice::ReadOnly)) return QByteArray(); QCryptographicHash hash(QCryptographicHash::Md5); - const qint64 bufferSize = 2 * 1024; // 2MB + const qint64 bufferSize = 2048; // 2MB + quint64 completeBytes = 0; QByteArray buffer; buffer.resize(bufferSize); while (!file.atEnd()) { qint64 bytesRead = file.read(buffer.data(), bufferSize); hash.addData(buffer.constData(), bytesRead); + completeBytes += bytesRead; } + hashCounterDisplay(completeBytes); return hash.result(); } +void FastHashCalculator::hashCounterDisplay(quint64 size) +{ + currentSize += size; + emit sigSendHashInfo(fullSize,Tools::convertFileSize(currentSize,false)); +} + +quint64 FastHashCalculator::getDirectorySize(const QString& path) +{ + quint64 totalSize = 0; + QDirIterator iterator(path, QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot, QDirIterator::Subdirectories); + + while (iterator.hasNext()) + { + iterator.next(); + QFileInfo fileInfo = iterator.fileInfo(); + if (fileInfo.isFile()) + { + totalSize += fileInfo.size(); + } + } + + return totalSize; +} + QList *FastHashCalculator::getHashList() const { return hashList; diff --git a/Core/fasthashcalculator.h b/Core/fasthashcalculator.h index 3bc7e62..1987e10 100644 --- a/Core/fasthashcalculator.h +++ b/Core/fasthashcalculator.h @@ -19,6 +19,7 @@ public: QList *getHashList() const; signals: + void sigSendHashInfo(QString fullSize,QString current); void finished(); private: @@ -27,8 +28,11 @@ private: QList* hashList; QMutex _mutex; + QString fullSize; quint64 currentSize; + quint64 getDirectorySize(const QString &path); + void hashCounterDisplay(quint64 size); }; #endif // FASTHASHCALCULATOR_H diff --git a/StaticData/clientHash.xml b/StaticData/clientHash.xml index 9343685..fc73cab 100644 --- a/StaticData/clientHash.xml +++ b/StaticData/clientHash.xml @@ -1,63 +1,63 @@ - + + + + + + - - - - + - - - + + + - - - - + + - + + - - - + + - - + + - + - + @@ -69,8 +69,8 @@ - + @@ -78,15 +78,17 @@ + + + - - - + + @@ -100,17 +102,15 @@ - - + - - + @@ -119,12 +119,12 @@ - + + - @@ -133,34 +133,34 @@ - + + + - - - + - - + + @@ -202,15 +202,15 @@ - - - + + + @@ -218,70 +218,70 @@ - + - + - + + - - - - - - - - - + - - - - + - + + + + + + + + + + - - + - + + - + - + + - - - + + + - + - + - - + + @@ -290,20 +290,20 @@ - + - - + + @@ -316,8 +316,8 @@ - + @@ -343,8 +343,8 @@ - + @@ -357,10 +357,10 @@ - - + + @@ -392,8 +392,9 @@ - + + @@ -404,8 +405,8 @@ - + @@ -416,8 +417,8 @@ - + @@ -428,7 +429,6 @@ - @@ -442,7 +442,6 @@ - @@ -460,8 +459,8 @@ - + @@ -480,6 +479,7 @@ + @@ -500,8 +500,8 @@ - + @@ -530,6 +530,7 @@ + @@ -559,8 +560,8 @@ - + @@ -580,14 +581,14 @@ - + - - + + @@ -612,8 +613,8 @@ - + @@ -687,11 +688,11 @@ - + - + @@ -701,15 +702,15 @@ - + - + @@ -746,10 +747,9 @@ - - + @@ -781,9 +781,9 @@ + - @@ -791,8 +791,8 @@ - + @@ -829,10 +829,10 @@ - - + + @@ -862,8 +862,8 @@ - + @@ -872,8 +872,8 @@ - + @@ -928,25 +928,25 @@ - + - + - - + + @@ -969,8 +969,8 @@ - + @@ -1003,12 +1003,12 @@ - + + - @@ -1020,8 +1020,8 @@ - + @@ -1030,8 +1030,8 @@ - + @@ -1046,8 +1046,8 @@ - + @@ -1060,7 +1060,6 @@ - @@ -1068,8 +1067,9 @@ - + + @@ -1089,12 +1089,12 @@ - + - + @@ -1119,29 +1119,29 @@ - + - - + + - + - + - + @@ -1154,8 +1154,8 @@ - + @@ -1177,18 +1177,18 @@ - + - + - + @@ -1197,8 +1197,8 @@ - + @@ -1207,7 +1207,6 @@ - @@ -1236,11 +1235,11 @@ - + - + @@ -1259,17 +1258,18 @@ - + - + + @@ -1278,11 +1278,12 @@ + - + @@ -1297,8 +1298,8 @@ - + @@ -1306,20 +1307,19 @@ - - + - + @@ -1340,8 +1340,8 @@ - + @@ -1379,26 +1379,26 @@ - + - + - + - + - + @@ -1424,12 +1424,12 @@ - + - + @@ -1442,8 +1442,8 @@ - + @@ -1455,16 +1455,16 @@ - + - + @@ -1488,8 +1488,8 @@ - + @@ -1509,8 +1509,8 @@ - + @@ -1521,11 +1521,11 @@ - - + + @@ -1552,23 +1552,23 @@ - - + + - - - + + + - + @@ -1599,20 +1599,20 @@ - - + - + + - + @@ -1631,11 +1631,11 @@ - + - + @@ -1649,9 +1649,9 @@ + - @@ -1676,8 +1676,8 @@ - + @@ -1694,8 +1694,8 @@ - + @@ -1704,8 +1704,8 @@ - + @@ -1728,16 +1728,16 @@ - + - + @@ -1751,8 +1751,8 @@ - + @@ -1761,8 +1761,8 @@ - + @@ -1776,8 +1776,8 @@ - + @@ -1813,8 +1813,8 @@ - + @@ -1832,11 +1832,11 @@ - - + + @@ -1847,14 +1847,14 @@ - + - + @@ -1877,9 +1877,9 @@ + - @@ -1887,10 +1887,10 @@ - - + + @@ -1911,8 +1911,8 @@ - + @@ -1937,9 +1937,9 @@ - + @@ -1956,16 +1956,16 @@ - + - + - + @@ -1973,8 +1973,8 @@ - + @@ -1992,8 +1992,8 @@ - + @@ -2031,8 +2031,10 @@ + + @@ -2051,29 +2053,28 @@ - - + + - - + + - - - + + @@ -2086,11 +2087,11 @@ - - + + @@ -2104,8 +2105,8 @@ - + @@ -2135,11 +2136,11 @@ - + - + @@ -2149,29 +2150,28 @@ - - + - - + + - + - + @@ -2183,14 +2183,14 @@ - + - + @@ -2200,9 +2200,9 @@ - + @@ -2220,8 +2220,8 @@ - + @@ -2229,9 +2229,9 @@ - - + + @@ -2240,100 +2240,100 @@ - + - + - + - + - + + - - + - - - - + + + + - + - - + + - + - + - - - + + + - + - - + + - + - + - - + + @@ -2342,40 +2342,40 @@ - - - + - + + + + - - + - + - + - + @@ -2386,33 +2386,33 @@ - + - - + + - - + + - + - + - - + + @@ -2424,51 +2424,51 @@ + - - + - + - + - + - - + + + - - - + - + - + + - + @@ -2477,38 +2477,38 @@ - + - - + + - + - - - + + + + - - - + + @@ -2519,12 +2519,12 @@ - + + - @@ -2533,11 +2533,11 @@ - - - + + + @@ -2549,12 +2549,12 @@ - + + - @@ -2565,15 +2565,15 @@ - - - + + + + - @@ -2582,8 +2582,8 @@ - + @@ -2598,105 +2598,105 @@ - - + + - + - - + - + + - - + + - + - + - - + - + + - + - + - + - + - + - + - - + + - - + + - + - + - + @@ -2704,49 +2704,49 @@ - + - + - - + - + + - - + - + + - + - + - + - - + + - + @@ -2755,27 +2755,27 @@ - - + + - - + - + + - - + - + + @@ -2783,15 +2783,15 @@ - + - + @@ -2803,14 +2803,14 @@ - - + + - + @@ -2821,26 +2821,26 @@ - + + - - + + - @@ -2849,31 +2849,31 @@ - - - - + + + + - + - + - + @@ -2882,119 +2882,119 @@ - + - - + + - - + + - - + + - - + + - + - + - + - + - + - - + + - + - + + - - + - + + - - + - + - + - + - + @@ -3008,32 +3008,32 @@ + - - - + + + + + + - + + - - - - - @@ -3054,70 +3054,71 @@ - - - + + + + - + - - + - + - + + - + - + - + - + - + - + - - + + - + - + @@ -3125,19 +3126,19 @@ - + - + - + @@ -3146,8 +3147,8 @@ - + @@ -3158,11 +3159,11 @@ - + - + @@ -3172,23 +3173,22 @@ - - + - + - - - + + + @@ -3196,11 +3196,11 @@ - - - + + + @@ -3208,54 +3208,54 @@ - + + - - - + + - - + + - + - - + + - - + + - - + + + - @@ -3265,53 +3265,53 @@ - - + + + - - - - + + - - + + - + + - - + + + - - - + - + + - + @@ -3322,33 +3322,33 @@ - + - - + + - + - + - + - + @@ -3364,8 +3364,8 @@ - + @@ -3414,127 +3414,127 @@ - + - + + - + - - - - + + + - + - - + - + + + - - - - + + + - - + + - - + + + - + - - - - - - + + + + + + - - - - + + + - + - + - + - - + + - + - + - + @@ -3546,24 +3546,24 @@ - - + + - - + - + + - + @@ -3571,64 +3571,64 @@ - - - + - + + - + + - + - - + - + + - - - - + + + + - - + + - + - + + - @@ -3637,17 +3637,17 @@ - + - + - + - + @@ -3667,21 +3667,21 @@ - + - + + - - + - + @@ -3698,12 +3698,12 @@ - + - + @@ -3713,15 +3713,15 @@ + - - - - - + + + + @@ -3738,26 +3738,26 @@ - + - - + + - - + - + + @@ -3767,8 +3767,8 @@ - + @@ -3782,66 +3782,66 @@ - + - + - - + + - + - + + - - - - + - + + - - + - + + - + + - + - + - - + - + + + - @@ -3849,18 +3849,18 @@ - + - - + + - + @@ -3869,40 +3869,40 @@ - + - - - - + + + + - + - + - + + - - + @@ -3918,136 +3918,136 @@ - + + - - - - + + + - + - - + - + + - + - + - + - - - - - + + + + - + + - + - + - + + - - - + + - - + + - - - + + + - - + + - + + - - + - + - + @@ -4088,15 +4088,15 @@ - - + + + - - - + + @@ -4129,43 +4129,43 @@ - + - + - - + + - + - + - + - + - + - + @@ -4175,15 +4175,15 @@ - + - + - + @@ -4192,105 +4192,105 @@ + - - + + - - + - - + - + + - + - - - + + + + - - + - + - + - - - - + - + + - - - - + + + + + + - + - - + + - + + - - + @@ -4298,14 +4298,14 @@ - + - - + + @@ -4314,63 +4314,64 @@ - - - + + + - - + + - + + - + - + - + + - - - + + - + - + @@ -4382,77 +4383,77 @@ - - + - + + - - + + - + - + - - - - + + + + + - - + - + - + - - + - + + - - + - + + @@ -4462,23 +4463,23 @@ - + - + - + @@ -4486,23 +4487,23 @@ - - + - + + + - - - - + + + @@ -4510,15 +4511,15 @@ - + - + - + @@ -4538,49 +4539,49 @@ - + + - - + - + - - + - + + - - + + - - + + + - - + @@ -4595,94 +4596,94 @@ + - - - + + + - - - - - - - + + + + + + - + - - + + + - - + - - + + - + - - - + + + + - - - + + - + - + + - - + + - @@ -4724,92 +4725,91 @@ - - - - + + + + - - + - + - - - - + + + + + - - - + + - - + + + - - - + + - + - + - + - + - - - - - - + + + + + + @@ -4818,8 +4818,8 @@ - + @@ -4829,10 +4829,10 @@ - - - + + + @@ -4840,103 +4840,103 @@ - - + + - - + + - - + + + - - + - + - - - + + + - + - - + + + - - - + + - + - - + + - - + + - + - - - + + + - + - + - - - - + + + + @@ -4945,25 +4945,25 @@ - + - + + - - - - - + + + + @@ -4971,17 +4971,17 @@ - + - - + + @@ -4989,22 +4989,22 @@ + - - - + + - - - + + + @@ -5012,31 +5012,31 @@ - + - + + - - - - + + + - + @@ -5046,54 +5046,54 @@ - + - + - - + + - - - - - - + + + + + + - + - - + + - + - + @@ -5101,33 +5101,33 @@ + - - - + + - + + - + - - + - + @@ -5138,23 +5138,23 @@ - + - - + + - + - + @@ -5165,22 +5165,22 @@ - - + + - - + + + - - + @@ -5189,12 +5189,12 @@ - - + + - + @@ -5207,14 +5207,14 @@ - - - - + - + + + + @@ -5222,233 +5222,234 @@ + - - + - + - - + + - - - - - + + + + + + - - - - - - + + + + + - + - - - + - + + - + - - + + + + - + - - - + + + - + - - - + + + - - + - + + - + + - - + + - - + - - + + - - + + + - - - + + - + - + - - - + + + + - - - + + - - - + + + - + - + - + + - - - + + - - + - + + - + - - + + - + @@ -5460,133 +5461,133 @@ - + + - - + - - - + + - + + - - + + - - - + - - + + + + - - - + + + - + - - + - + - + + + - - - + + + - - + + - - + - - - + + + - + - + + + - - - + + - + - - - + + @@ -5595,54 +5596,54 @@ - + + - + - + - - + - + - + - - + + + - - + + - - + - + @@ -5650,38 +5651,37 @@ - - + - + - + - + + - - + @@ -5694,186 +5694,186 @@ - - - + + + - + - + + - - + - - + + + - - - + + - + - + - + - + - - + + - + - - + - - + + - + + - + - + - - - + + + - + - + - + - + - - + + + - - + - - - + + + - + - + - - + + - - + - - + + + @@ -5883,106 +5883,106 @@ - - + + - + - + + - - + - + - + - - - + - - + + + + + - - - + - + - + + - + - - + + + - - + - - + + + - + - - - - + + - - - + + + + @@ -5999,35 +5999,35 @@ - - + - + + - + - + - - + + - - + + @@ -6043,16 +6043,16 @@ - + - - + + @@ -6060,28 +6060,28 @@ + - - - + + - - - + + + @@ -6094,33 +6094,33 @@ - - + - + + + - - + - - - + + + @@ -6128,11 +6128,11 @@ - + - + @@ -6140,16 +6140,16 @@ - + - + @@ -6157,8 +6157,8 @@ - + @@ -6169,12 +6169,12 @@ + - - + @@ -6188,9 +6188,9 @@ - + @@ -6208,8 +6208,8 @@ - + @@ -6234,8 +6234,8 @@ - + @@ -6253,9 +6253,9 @@ - + @@ -6287,8 +6287,8 @@ - + @@ -6323,8 +6323,8 @@ - + @@ -6369,8 +6369,8 @@ - + @@ -6514,8 +6514,8 @@ - + @@ -6541,8 +6541,8 @@ - + @@ -6564,17 +6564,17 @@ - + - + - + @@ -6632,8 +6632,8 @@ - + @@ -6654,8 +6654,8 @@ - + @@ -6680,8 +6680,8 @@ - + @@ -6707,22 +6707,22 @@ - + - - + + - + @@ -6770,8 +6770,8 @@ - + @@ -6923,8 +6923,8 @@ - + @@ -6995,8 +6995,8 @@ - + @@ -7070,8 +7070,8 @@ - + @@ -7161,8 +7161,8 @@ - + @@ -7419,8 +7419,8 @@ - + @@ -7438,10 +7438,10 @@ + - @@ -7663,8 +7663,8 @@ - + @@ -7709,11 +7709,11 @@ - + - + @@ -7758,8 +7758,8 @@ - + @@ -7835,8 +7835,8 @@ - + @@ -7856,8 +7856,8 @@ - + @@ -7917,8 +7917,8 @@ - + @@ -8078,8 +8078,8 @@ - + @@ -8171,8 +8171,8 @@ - + @@ -8205,12 +8205,12 @@ - + - + @@ -8222,8 +8222,8 @@ - + @@ -8234,12 +8234,12 @@ - - + + @@ -8425,8 +8425,8 @@ - + @@ -8558,8 +8558,8 @@ - + @@ -8592,34 +8592,34 @@ + - - - + + - - + + - + - - + + @@ -8627,10 +8627,10 @@ - - + + @@ -8647,9 +8647,9 @@ - - + + @@ -8663,38 +8663,38 @@ - - + + - - - - + + + + - + - + + - @@ -8702,9 +8702,9 @@ - + @@ -8714,66 +8714,66 @@ - + - - + + + - - + - + - - + + - - + + - + + - - + - + @@ -8787,85 +8787,86 @@ - - + + - - - + + + - - - + + + - + - + - + - + - - + + - + - + - + + @@ -8873,8 +8874,8 @@ - + diff --git a/StaticData/settings.xml b/StaticData/settings.xml index ef4f13b..ab6d26b 100644 --- a/StaticData/settings.xml +++ b/StaticData/settings.xml @@ -1,5 +1,5 @@ - + - - + + diff --git a/StaticData/streamingHash.xml b/StaticData/streamingHash.xml index 342f6f6..ecd6075 100644 --- a/StaticData/streamingHash.xml +++ b/StaticData/streamingHash.xml @@ -1,15 +1,15 @@ - - - + + + @@ -17,70 +17,70 @@ - + - + - + + - - - - - - - - - + - - - - + - + + + + + + + + + + - - + - + + - + - + + - - - + + + - + - + - - + + @@ -89,20 +89,20 @@ - + - - + + @@ -115,8 +115,8 @@ - + @@ -142,8 +142,8 @@ - + @@ -156,10 +156,10 @@ - - + + @@ -191,8 +191,9 @@ - + + @@ -203,8 +204,8 @@ - + @@ -215,8 +216,8 @@ - + @@ -227,7 +228,6 @@ - @@ -241,7 +241,6 @@ - @@ -259,8 +258,8 @@ - + @@ -279,6 +278,7 @@ + @@ -299,8 +299,8 @@ - + @@ -329,6 +329,7 @@ + @@ -358,8 +359,8 @@ - + @@ -379,14 +380,14 @@ - + - - + + @@ -411,8 +412,8 @@ - + @@ -486,11 +487,11 @@ - + - + @@ -500,15 +501,15 @@ - + - + @@ -545,10 +546,9 @@ - - + @@ -580,9 +580,9 @@ + - @@ -590,8 +590,8 @@ - + @@ -628,10 +628,10 @@ - - + + @@ -661,8 +661,8 @@ - + @@ -671,8 +671,8 @@ - + @@ -727,25 +727,25 @@ - + - + - - + + @@ -768,8 +768,8 @@ - + @@ -802,12 +802,12 @@ - + + - @@ -819,8 +819,8 @@ - + @@ -829,8 +829,8 @@ - + @@ -845,8 +845,8 @@ - + @@ -859,7 +859,6 @@ - @@ -867,8 +866,9 @@ - + + @@ -888,12 +888,12 @@ - + - + @@ -918,29 +918,29 @@ - + - - + + - + - + - + @@ -953,8 +953,8 @@ - + @@ -976,18 +976,18 @@ - + - + - + @@ -996,8 +996,8 @@ - + @@ -1006,7 +1006,6 @@ - @@ -1035,11 +1034,11 @@ - + - + @@ -1058,17 +1057,18 @@ - + - + + @@ -1077,11 +1077,12 @@ + - + @@ -1096,8 +1097,8 @@ - + @@ -1105,20 +1106,19 @@ - - + - + @@ -1139,8 +1139,8 @@ - + @@ -1178,26 +1178,26 @@ - + - + - + - + - + @@ -1223,12 +1223,12 @@ - + - + @@ -1241,8 +1241,8 @@ - + @@ -1254,16 +1254,16 @@ - + - + @@ -1287,8 +1287,8 @@ - + @@ -1308,8 +1308,8 @@ - + @@ -1320,11 +1320,11 @@ - - + + @@ -1351,23 +1351,23 @@ - - + + - - - + + + - + @@ -1398,20 +1398,20 @@ - - + - + + - + @@ -1430,11 +1430,11 @@ - + - + @@ -1448,9 +1448,9 @@ + - @@ -1475,8 +1475,8 @@ - + @@ -1493,8 +1493,8 @@ - + @@ -1503,8 +1503,8 @@ - + @@ -1527,16 +1527,16 @@ - + - + @@ -1550,8 +1550,8 @@ - + @@ -1560,8 +1560,8 @@ - + @@ -1575,8 +1575,8 @@ - + @@ -1612,8 +1612,8 @@ - + @@ -1631,11 +1631,11 @@ - - + + @@ -1646,14 +1646,14 @@ - + - + @@ -1676,9 +1676,9 @@ + - @@ -1686,10 +1686,10 @@ - - + + @@ -1710,8 +1710,8 @@ - + @@ -1736,9 +1736,9 @@ - + @@ -1755,16 +1755,16 @@ - + - + - + @@ -1772,8 +1772,8 @@ - + @@ -1791,8 +1791,8 @@ - + @@ -1830,8 +1830,10 @@ + + @@ -1850,29 +1852,28 @@ - - + + - - + + - - - + + @@ -1885,11 +1886,11 @@ - - + + @@ -1903,8 +1904,8 @@ - + @@ -1934,11 +1935,11 @@ - + - + @@ -1948,29 +1949,28 @@ - - + - - + + - + - + @@ -1982,14 +1982,14 @@ - + - + @@ -1999,9 +1999,9 @@ - + @@ -2019,8 +2019,8 @@ - + @@ -2028,9 +2028,9 @@ - - + + @@ -2039,100 +2039,100 @@ - + - + - + - + - + + - - + - - - - + + + + - + - - + + - + - + - - - + + + - + - - + + - + - + - - + + @@ -2141,40 +2141,40 @@ - - - + - + + + + - - + - + - + - + @@ -2185,33 +2185,33 @@ - + - - + + - - + + - + - + - - + + @@ -2223,51 +2223,51 @@ + - - + - + - + - + - - + + + - - - + - + - + + - + @@ -2276,38 +2276,38 @@ - + - - + + - + - - - + + + + - - - + + @@ -2318,12 +2318,12 @@ - + + - @@ -2332,11 +2332,11 @@ - - - + + + @@ -2348,12 +2348,12 @@ - + + - @@ -2364,15 +2364,15 @@ - - - + + + + - @@ -2381,8 +2381,8 @@ - + @@ -2397,105 +2397,105 @@ - - + + - + - - + - + + - - + + - + - + - - + - + + - + - + - + - + - + - + - - + + - - + + - + - + - + @@ -2503,49 +2503,49 @@ - + - + - - + - + + - - + - + + - + - + - + - - + + - + @@ -2554,27 +2554,27 @@ - - + + - - + - + + - - + - + + @@ -2582,15 +2582,15 @@ - + - + @@ -2602,14 +2602,14 @@ - - + + - + @@ -2620,26 +2620,26 @@ - + + - - + + - @@ -2648,31 +2648,31 @@ - - - - + + + + - + - + - + @@ -2681,119 +2681,119 @@ - + - - + + - - + + - - + + - - + + - + - + - + - + - + - - + + - + - + + - - + - + + - - + - + - + - + - + @@ -2807,32 +2807,32 @@ + - - - + + + + + + - + + - - - - - @@ -2853,70 +2853,71 @@ - - - + + + + - + - - + - + - + + - + - + - + - + - + - + - - + + - + - + @@ -2924,19 +2925,19 @@ - + - + - + @@ -2945,8 +2946,8 @@ - + @@ -2957,11 +2958,11 @@ - + - + @@ -2971,23 +2972,22 @@ - - + - + - - - + + + @@ -2995,11 +2995,11 @@ - - - + + + @@ -3007,54 +3007,54 @@ - + + - - - + + - - + + - + - - + + - - + + - - + + + - @@ -3064,53 +3064,53 @@ - - + + + - - - - + + - - + + - + + - - + + + - - - + - + + - + @@ -3121,33 +3121,33 @@ - + - - + + - + - + - + - + @@ -3163,8 +3163,8 @@ - + @@ -3213,127 +3213,127 @@ - + - + + - + - - - - + + + - + - - + - + + + - - - - + + + - - + + - - + + + - + - - - - - - + + + + + + - - - - + + + - + - + - + - - + + - + - + - + @@ -3345,24 +3345,24 @@ - - + + - - + - + + - + @@ -3370,64 +3370,64 @@ - - - + - + + - + + - + - - + - + + - - - - + + + + - - + + - + - + + - @@ -3436,17 +3436,17 @@ - + - + - + - + @@ -3466,21 +3466,21 @@ - + - + + - - + - + @@ -3497,12 +3497,12 @@ - + - + @@ -3512,15 +3512,15 @@ + - - - - - + + + + @@ -3537,26 +3537,26 @@ - + - - + + - - + - + + @@ -3566,8 +3566,8 @@ - + @@ -3581,66 +3581,66 @@ - + - + - - + + - + - + + - - - - + - + + - - + - + + - + + - + - + - - + - + + + - @@ -3648,18 +3648,18 @@ - + - - + + - + @@ -3668,40 +3668,40 @@ - + - - - - + + + + - + - + - + + - - + @@ -3717,136 +3717,136 @@ - + + - - - - + + + - + - - + - + + - + - + - + - - - - - + + + + - + + - + - + - + + - - - + + - - + + - - - + + + - - + + - + + - - + - + - + @@ -3887,15 +3887,15 @@ - - + + + - - - + + @@ -3928,43 +3928,43 @@ - + - + - - + + - + - + - + - + - + - + @@ -3974,15 +3974,15 @@ - + - + - + @@ -3991,105 +3991,105 @@ + - - + + - - + - - + - + + - + - - - + + + + - - + - + - + - - - - + - + + - - - - + + + + + + - + - - + + - + + - - + @@ -4097,14 +4097,14 @@ - + - - + + @@ -4113,63 +4113,64 @@ - - - + + + - - + + - + + - + - + - + + - - - + + - + - + @@ -4181,77 +4182,77 @@ - - + - + + - - + + - + - + - - - - + + + + + - - + - + - + - - + - + + - - + - + + @@ -4261,23 +4262,23 @@ - + - + - + @@ -4285,23 +4286,23 @@ - - + - + + + - - - - + + + @@ -4309,15 +4310,15 @@ - + - + - + @@ -4337,49 +4338,49 @@ - + + - - + - + - - + - + + - - + + - - + + + - - + @@ -4394,94 +4395,94 @@ + - - - + + + - - - - - - - + + + + + + - + - - + + + - - + - - + + - + - - - + + + + - - - + + - + - + + - - + + - @@ -4523,92 +4524,91 @@ - - - - + + + + - - + - + - - - - + + + + + - - - + + - - + + + - - - + + - + - + - + - + - - - - - - + + + + + + @@ -4617,8 +4617,8 @@ - + @@ -4628,10 +4628,10 @@ - - - + + + @@ -4639,103 +4639,103 @@ - - + + - - + + - - + + + - - + - + - - - + + + - + - - + + + - - - + + - + - - + + - - + + - + - - - + + + - + - + - - - - + + + + @@ -4744,25 +4744,25 @@ - + - + + - - - - - + + + + @@ -4770,17 +4770,17 @@ - + - - + + @@ -4788,22 +4788,22 @@ + - - - + + - - - + + + @@ -4811,31 +4811,31 @@ - + - + + - - - - + + + - + @@ -4845,54 +4845,54 @@ - + - + - - + + - - - - - - + + + + + + - + - - + + - + - + @@ -4900,33 +4900,33 @@ + - - - + + - + + - + - - + - + @@ -4937,23 +4937,23 @@ - + - - + + - + - + @@ -4964,22 +4964,22 @@ - - + + - - + + + - - + @@ -4988,12 +4988,12 @@ - - + + - + @@ -5006,14 +5006,14 @@ - - - - + - + + + + @@ -5021,233 +5021,234 @@ + - - + - + - - + + - - - - - + + + + + + - - - - - - + + + + + - + - - - + - + + - + - - + + + + - + - - - + + + - + - - - + + + - - + - + + - + + - - + + - - + - - + + - - + + + - - - + + - + - + - - - + + + + - - - + + - - - + + + - + - + - + + - - - + + - - + - + + - + - - + + - + @@ -5259,133 +5260,133 @@ - + + - - + - - - + + - + + - - + + - - - + - - + + + + - - - + + + - + - - + - + - + + + - - - + + + - - + + - - + - - - + + + - + - + + + - - - + + - + - - - + + @@ -5394,54 +5395,54 @@ - + + - + - + - - + - + - + - - + + + - - + + - - + - + @@ -5449,38 +5450,37 @@ - - + - + - + - + + - - + @@ -5493,186 +5493,186 @@ - - - + + + - + - + + - - + - - + + + - - - + + - + - + - + - + - - + + - + - - + - - + + - + + - + - + - - - + + + - + - + - + - + - - + + + - - + - - - + + + - + - + - - + + - - + - - + + + @@ -5682,106 +5682,106 @@ - - + + - + - + + - - + - + - + - - - + - - + + + + + - - - + - + - + + - + - - + + + - - + - - + + + - + - - - - + + - - - + + + + @@ -5798,35 +5798,35 @@ - - + - + + - + - + - - + + - - + + @@ -5842,16 +5842,16 @@ - + - - + + @@ -5859,28 +5859,28 @@ + - - - + + - - - + + + @@ -5893,33 +5893,33 @@ - - + - + + + - - + - - - + + + @@ -5927,11 +5927,11 @@ - + - + @@ -5939,16 +5939,16 @@ - + - + @@ -5956,8 +5956,8 @@ - + @@ -5968,12 +5968,12 @@ + - - + @@ -5987,9 +5987,9 @@ - + @@ -6007,8 +6007,8 @@ - + @@ -6033,8 +6033,8 @@ - + @@ -6052,9 +6052,9 @@ - + @@ -6086,8 +6086,8 @@ - + @@ -6122,8 +6122,8 @@ - + @@ -6168,8 +6168,8 @@ - + @@ -6313,8 +6313,8 @@ - + @@ -6340,8 +6340,8 @@ - + @@ -6363,17 +6363,17 @@ - + - + - + @@ -6431,8 +6431,8 @@ - + @@ -6453,8 +6453,8 @@ - + @@ -6479,8 +6479,8 @@ - + @@ -6506,22 +6506,22 @@ - + - - + + - + @@ -6569,8 +6569,8 @@ - + @@ -6722,8 +6722,8 @@ - + @@ -6794,8 +6794,8 @@ - + @@ -6869,8 +6869,8 @@ - + @@ -6960,8 +6960,8 @@ - + @@ -7218,8 +7218,8 @@ - + @@ -7237,10 +7237,10 @@ + - @@ -7462,8 +7462,8 @@ - + @@ -7508,11 +7508,11 @@ - + - + @@ -7557,8 +7557,8 @@ - + @@ -7634,8 +7634,8 @@ - + @@ -7655,8 +7655,8 @@ - + @@ -7716,8 +7716,8 @@ - + @@ -7877,8 +7877,8 @@ - + @@ -7970,8 +7970,8 @@ - + @@ -8004,12 +8004,12 @@ - + - + @@ -8021,8 +8021,8 @@ - + @@ -8033,12 +8033,12 @@ - - + + @@ -8224,8 +8224,8 @@ - + @@ -8357,8 +8357,8 @@ - + @@ -8391,34 +8391,34 @@ + - - - + + - - + + - + - - + + @@ -8426,10 +8426,10 @@ - - + + @@ -8446,9 +8446,9 @@ - - + + @@ -8462,38 +8462,38 @@ - - + + - - - - + + + + - + - + + - @@ -8501,9 +8501,9 @@ - + @@ -8513,66 +8513,66 @@ - + - - + + + - - + - + - - + + - - + + - + + - - + - + @@ -8586,85 +8586,86 @@ - - + + - - - + + + - - - + + + - + - + - + - + - - + + - + - + - + + @@ -8672,8 +8673,8 @@ - + diff --git a/StaticData/temp.xml b/StaticData/temp.xml index 4173537..5f67476 100644 --- a/StaticData/temp.xml +++ b/StaticData/temp.xml @@ -1,2 +1,2 @@ - + diff --git a/coremanager.cpp b/coremanager.cpp index ce934df..a97c55a 100644 --- a/coremanager.cpp +++ b/coremanager.cpp @@ -94,7 +94,7 @@ void CoreManager::binding() connect(hashComparer,&HashComparer::sigHaveDelta,this,&CoreManager::checkUpdateInfo); connect(updateController,&UpdateController::sigUpdateComplete,widgetManager,&WidgetManager::setCompeteState,Qt::AutoConnection); - connect(updateController,&UpdateController::sigSendHashInfo,widgetManager->getMainWindow(),&MainWindow::updateInitInformation,Qt::AutoConnection); + connect(updateController->getHashCalculator(),&FastHashCalculator::sigSendHashInfo,widgetManager->getMainWindow(),&MainWindow::updateInitInformation,Qt::AutoConnection); connect(client,&TCPClient::sigConnectionState,widgetManager,&WidgetManager::setConnectionState,Qt::AutoConnection); connect(client,&TCPClient::sigServerDisconnect,widgetManager,&WidgetManager::setServerDisconnectState,Qt::AutoConnection); @@ -351,6 +351,7 @@ void CoreManager::saveServerSettingsWithConnect() if(client->getIsConnected()) { + emit sigSendXMLAnswer(cmd_Disable); client->setDisconnect(); entryWidget->showLoginWidget(true); widgetManager->getMainWindow()->showOfflineButton(true);