mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: display Update size and notification
This commit is contained in:
@@ -167,14 +167,13 @@ void RecognizeSystem::Recognize(QTcpSocket *socket)
|
||||
sizeReceiveData += toFile;
|
||||
countSend++;
|
||||
|
||||
emit UpdateBytesAvailable(fileSize,sizeReceiveData);
|
||||
|
||||
tmpBlock.clear();
|
||||
|
||||
if(sizeReceiveData == fileSize){
|
||||
emit onSendDebugLog(Tools::GetTime() + "FINAL Count send: " + QString::number(countSend));
|
||||
emit onSendDebugLog(Tools::GetTime() + "FINAL Size received: " + QString::number(sizeReceiveData));
|
||||
emit onSendDebugLog(Tools::GetTime() + "FINAL File size" + QString::number(fileSize));
|
||||
emit UpdateBytesAvailable(fileSize,sizeReceiveData);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -234,12 +233,13 @@ void RecognizeSystem::Recognize(QTcpSocket *socket)
|
||||
if(packetType == PacketType::TYPE_NEEDUPDATE){ //нужно обновление
|
||||
|
||||
bool flag;
|
||||
quint64 size;
|
||||
|
||||
stream.startTransaction();
|
||||
stream >> flag;
|
||||
stream >> size;
|
||||
|
||||
|
||||
emit onNeedUpdate(flag);
|
||||
emit onNeedUpdate(flag,size);
|
||||
packetType = PacketType::TYPE_NONE;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ public:
|
||||
signals:
|
||||
void UpdateBytesAvailable(qint64 size,quint64 sended);
|
||||
void LoadComplete();
|
||||
void onNeedUpdate(bool flag);
|
||||
void onNeedUpdate(bool flag,qint64 size);
|
||||
void onSendDebugLog(QString message);
|
||||
void SockedDisabled();
|
||||
void SaveLoginData(ServerAuthorization *serverAuth);
|
||||
|
||||
Reference in New Issue
Block a user