mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
UpdateController вернул блокировку от SERVER
This commit is contained in:
@@ -45,6 +45,7 @@ void UpdateController::initialize(CommonClientHandler *commonClientHandler,DataP
|
||||
void UpdateController::changeAssetVersion(QString versionName)
|
||||
{
|
||||
//commonClientHandler->slot_sendPacketToAllClients(PacketType::BUSY);
|
||||
bool res = emit signal_BlockAutorization(true, "SERVER", "ChangeAssetVersion");
|
||||
qDebug() << "UpdateController thread ID " << QThread::currentThreadId();
|
||||
currentStreamingPath = assetManager->setVersion(versionName);
|
||||
setUpCurrentServerHash();
|
||||
@@ -53,20 +54,25 @@ void UpdateController::changeAssetVersion(QString versionName)
|
||||
commonClientHandler->sendCurrentVersionToAllClient();
|
||||
|
||||
//commonClientHandler->slot_sendPacketToAllClients(PacketType::FREE);
|
||||
res = emit signal_BlockAutorization(false, "SERVER", "ChangeAssetVersion");
|
||||
}
|
||||
|
||||
void UpdateController::createCopyVersion(QString versionName,QString newVersionName,QString author)
|
||||
{
|
||||
//commonClientHandler->slot_sendPacketToAllClients(PacketType::BUSY);
|
||||
bool res = emit signal_BlockAutorization(true, "SERVER", "CreateCopyVersion");
|
||||
assetManager->createCopyVersion(versionName,newVersionName,author);
|
||||
//commonClientHandler->slot_sendPacketToAllClients(PacketType::FREE);
|
||||
res = emit signal_BlockAutorization(false, "SERVER", "CreateCopyVersion");
|
||||
}
|
||||
|
||||
void UpdateController::deleteAssetVersion(QString versionName)
|
||||
{
|
||||
//commonClientHandler->slot_sendPacketToAllClients(PacketType::BUSY);
|
||||
bool res = emit signal_BlockAutorization(true, "SERVER", "DeleteAssetVersion");
|
||||
assetManager->deleteVersion(versionName);
|
||||
//commonClientHandler->slot_sendPacketToAllClients(PacketType::FREE);
|
||||
res = emit signal_BlockAutorization(false, "SERVER", "DeleteAssetVersion");
|
||||
}
|
||||
|
||||
void UpdateController::compareFiles(ClientHandler* handler, QByteArray array)
|
||||
|
||||
Reference in New Issue
Block a user