mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
notifyController убрал
This commit is contained in:
@@ -413,7 +413,7 @@ void RecognizeSystem::recognize(QTcpSocket *socket)
|
||||
QFile xmlInFile(xmlFileName);
|
||||
if (!xmlInFile.open(QFile::ReadOnly | QFile::Text))
|
||||
{
|
||||
SpecMsgBox(nullptr, SpecMsgBox::TypeSpecMsgBox::criticalClose, tr("The file could not be opened ") + xmlFileName).exec();
|
||||
SpecMsgBox::CriticalClose(nullptr, tr("The file could not be opened ") + xmlFileName);
|
||||
return;
|
||||
}
|
||||
else
|
||||
@@ -490,17 +490,17 @@ void RecognizeSystem::xmlParser(QByteArray array)
|
||||
|
||||
if (value == "BASEDELETETRY")
|
||||
{
|
||||
emit sigNotify(tr("You cannot delete the basic version!"));
|
||||
emit sigNotifyVersionControl(tr("You cannot delete the basic version!"));
|
||||
}
|
||||
|
||||
if (value == "TRYACTIVEDELETE")
|
||||
{
|
||||
emit sigNotify(tr("You cannot delete the active version"));
|
||||
emit sigNotifyVersionControl(tr("You cannot delete the active version"));
|
||||
}
|
||||
|
||||
if (value == "DUPLICATEVERNAME")
|
||||
{
|
||||
emit sigNotify(tr("This name already exists"));
|
||||
emit sigNotifyVersionControl(tr("This name already exists"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ signals:
|
||||
void sigAnswerQueryTasksXML_AMM(QByteArray array);
|
||||
void sigShowServerDataList(QList<StreamingVersionData*> *versions);
|
||||
void sigSetVersion(StreamingVersionData* serverVersion);
|
||||
void sigNotify(QString text, QWidget *parentWidget = nullptr);
|
||||
void sigNotifyVersionControl(QString text);
|
||||
void sigAnimationActivated(bool flag);
|
||||
void sigHashReady();
|
||||
void sigAnswerQuerySubProc(QList<SubProc> listSubProc, QString parentTask_dmCode);
|
||||
|
||||
@@ -9,7 +9,6 @@ ConnectorToServer::ConnectorToServer(QWidget* parentWidget, QObject *parent) :
|
||||
dataParser(nullptr),
|
||||
sendSystem(nullptr),
|
||||
recognizeSystem(nullptr),
|
||||
notifyController(nullptr),
|
||||
fl_GetedOfflineMessages(false),
|
||||
nameInstructorLoggedInLocal("")
|
||||
{
|
||||
@@ -19,7 +18,6 @@ ConnectorToServer::ConnectorToServer(QWidget* parentWidget, QObject *parent) :
|
||||
ConnectorToServer::~ConnectorToServer()
|
||||
{
|
||||
delete client;
|
||||
delete notifyController;
|
||||
delete recognizeSystem;
|
||||
delete sendSystem;
|
||||
delete dataParser;
|
||||
@@ -115,6 +113,11 @@ void ConnectorToServer::slot_getVersion()
|
||||
emit signal_SendGetVersion();
|
||||
}
|
||||
|
||||
void ConnectorToServer::slot_NotifyVersionControl(QString text)
|
||||
{
|
||||
emit signal_NotifyVersionControl(text);
|
||||
}
|
||||
|
||||
void ConnectorToServer::initialize()
|
||||
{
|
||||
createObjects();
|
||||
@@ -159,7 +162,7 @@ void ConnectorToServer::bindConnection()
|
||||
|
||||
connect(client,&TCPClient::signal_ConnectedToServer,this,&ConnectorToServer::signal_ConnectedToServer,Qt::AutoConnection);
|
||||
|
||||
connect(recognizeSystem,&RecognizeSystem::sigNotify,notifyController,&NotifyController::showWarning,Qt::AutoConnection);
|
||||
connect(recognizeSystem,&RecognizeSystem::sigNotifyVersionControl,this,&ConnectorToServer::slot_NotifyVersionControl,Qt::AutoConnection);
|
||||
|
||||
connect(recognizeSystem,&RecognizeSystem::sigHashReady,this,&ConnectorToServer::slot_HashReady);
|
||||
|
||||
@@ -190,8 +193,6 @@ void ConnectorToServer::createObjects()
|
||||
recognizeSystem = new RecognizeSystem;
|
||||
recognizeSystem->moveToThread(connectionThread);
|
||||
|
||||
notifyController = new NotifyController(parentWidget);
|
||||
|
||||
connectionThread->start();
|
||||
connectionThread->setPriority(QThread::HighestPriority);
|
||||
}
|
||||
|
||||
@@ -116,6 +116,8 @@ public slots:
|
||||
|
||||
void slot_getVersion();
|
||||
|
||||
void slot_NotifyVersionControl(QString text);
|
||||
|
||||
signals:
|
||||
void sigSetConnect(ServerSettings* serverSettings,QThread *thread);
|
||||
void sigStopConnect();
|
||||
@@ -157,6 +159,8 @@ signals:
|
||||
void signal_showServerList(QList<StreamingVersionData*> *serverList);
|
||||
void signal_SendGetVersion();
|
||||
|
||||
void signal_NotifyVersionControl(QString text);
|
||||
|
||||
private:
|
||||
void initialize();
|
||||
void bindConnection();
|
||||
@@ -169,7 +173,6 @@ private:
|
||||
DataParser *dataParser;
|
||||
SendSystem *sendSystem;
|
||||
RecognizeSystem *recognizeSystem;
|
||||
NotifyController *notifyController;
|
||||
|
||||
//Списочная модель БД СУО
|
||||
QMutex mtxAccess;
|
||||
|
||||
Reference in New Issue
Block a user