ref: segregate systems, codestyle, busy message

This commit is contained in:
semenov
2024-12-27 15:41:41 +03:00
parent fc7f311d1e
commit f444b48892
103 changed files with 4756 additions and 2763 deletions

View File

@@ -1,9 +1,5 @@
#include "Core/recognizesystem.h"
#include "streamingversiondata.h"
#include <updatenotifywidget.h>
RecognizeSystem::RecognizeSystem(QObject *parent):
QObject(parent)
{
@@ -44,6 +40,7 @@ void RecognizeSystem::initialize(UpdateController *updateController,
connect(this,&RecognizeSystem::sigSocketWaitForReadyRead,client,&TCPClient::waitRead,Qt::DirectConnection);
connect(this,&RecognizeSystem::sigServerBlocked,mainWindow,&MainWindow::serverBlocked);
connect(this,&RecognizeSystem::sigShowServerList,mainWindow,&MainWindow::showServerListWidget);
connect(this,&RecognizeSystem::sigAnimationActivated,mainWindow,&MainWindow::activateLoadingAnimation,Qt::AutoConnection);
}
void RecognizeSystem::recognize(QTcpSocket *socket)
@@ -275,6 +272,17 @@ void RecognizeSystem::recognize(QTcpSocket *socket)
{
mainWindow->checkUpdate();
}
if(packetType == PacketType::BUSY)
{
emit sigAnimationActivated(true);
}
if(packetType == PacketType::FREE)
{
emit sigAnimationActivated(false);
}
packetType = PacketType::TYPE_NONE;
}
}