mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Сделал выдачу tasksFIM.xml из сервера по запросу GUI-клиента
This commit is contained in:
@@ -355,6 +355,19 @@ QList<FileData>* UpdateController::calculateHash(QString path)
|
||||
return files;
|
||||
}
|
||||
|
||||
QByteArray UpdateController::getAdditionalFile(QString name)
|
||||
{
|
||||
QString path = Tools::createSharedPath("/" + assetManager->getCurrentVersionData()->getViewName() + "/AdditionalFiles" + name);
|
||||
QFile addFile(path);
|
||||
QByteArray array;
|
||||
if(addFile.open(QIODevice::ReadOnly)){
|
||||
array = addFile.readAll();
|
||||
addFile.close();
|
||||
}
|
||||
|
||||
return array;
|
||||
}
|
||||
|
||||
QByteArray UpdateController::getLocalHash()
|
||||
{
|
||||
QFile hashFile(hashFileName);
|
||||
|
||||
Reference in New Issue
Block a user