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)
|
void UpdateController::changeAssetVersion(QString versionName)
|
||||||
{
|
{
|
||||||
//commonClientHandler->slot_sendPacketToAllClients(PacketType::BUSY);
|
//commonClientHandler->slot_sendPacketToAllClients(PacketType::BUSY);
|
||||||
|
bool res = emit signal_BlockAutorization(true, "SERVER", "ChangeAssetVersion");
|
||||||
qDebug() << "UpdateController thread ID " << QThread::currentThreadId();
|
qDebug() << "UpdateController thread ID " << QThread::currentThreadId();
|
||||||
currentStreamingPath = assetManager->setVersion(versionName);
|
currentStreamingPath = assetManager->setVersion(versionName);
|
||||||
setUpCurrentServerHash();
|
setUpCurrentServerHash();
|
||||||
@@ -53,20 +54,25 @@ void UpdateController::changeAssetVersion(QString versionName)
|
|||||||
commonClientHandler->sendCurrentVersionToAllClient();
|
commonClientHandler->sendCurrentVersionToAllClient();
|
||||||
|
|
||||||
//commonClientHandler->slot_sendPacketToAllClients(PacketType::FREE);
|
//commonClientHandler->slot_sendPacketToAllClients(PacketType::FREE);
|
||||||
|
res = emit signal_BlockAutorization(false, "SERVER", "ChangeAssetVersion");
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateController::createCopyVersion(QString versionName,QString newVersionName,QString author)
|
void UpdateController::createCopyVersion(QString versionName,QString newVersionName,QString author)
|
||||||
{
|
{
|
||||||
//commonClientHandler->slot_sendPacketToAllClients(PacketType::BUSY);
|
//commonClientHandler->slot_sendPacketToAllClients(PacketType::BUSY);
|
||||||
|
bool res = emit signal_BlockAutorization(true, "SERVER", "CreateCopyVersion");
|
||||||
assetManager->createCopyVersion(versionName,newVersionName,author);
|
assetManager->createCopyVersion(versionName,newVersionName,author);
|
||||||
//commonClientHandler->slot_sendPacketToAllClients(PacketType::FREE);
|
//commonClientHandler->slot_sendPacketToAllClients(PacketType::FREE);
|
||||||
|
res = emit signal_BlockAutorization(false, "SERVER", "CreateCopyVersion");
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateController::deleteAssetVersion(QString versionName)
|
void UpdateController::deleteAssetVersion(QString versionName)
|
||||||
{
|
{
|
||||||
//commonClientHandler->slot_sendPacketToAllClients(PacketType::BUSY);
|
//commonClientHandler->slot_sendPacketToAllClients(PacketType::BUSY);
|
||||||
|
bool res = emit signal_BlockAutorization(true, "SERVER", "DeleteAssetVersion");
|
||||||
assetManager->deleteVersion(versionName);
|
assetManager->deleteVersion(versionName);
|
||||||
//commonClientHandler->slot_sendPacketToAllClients(PacketType::FREE);
|
//commonClientHandler->slot_sendPacketToAllClients(PacketType::FREE);
|
||||||
|
res = emit signal_BlockAutorization(false, "SERVER", "DeleteAssetVersion");
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateController::compareFiles(ClientHandler* handler, QByteArray array)
|
void UpdateController::compareFiles(ClientHandler* handler, QByteArray array)
|
||||||
|
|||||||
Reference in New Issue
Block a user