mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
отклонение запроса на Управление версиями
This commit is contained in:
@@ -592,6 +592,28 @@ void RecognizeSystem::xmlParser(QByteArray array)
|
||||
|
||||
}
|
||||
|
||||
if(xmlReader.name() == "TryBlock")
|
||||
{
|
||||
bool result = false;
|
||||
QString type = "";
|
||||
|
||||
foreach(const QXmlStreamAttribute &attr, xmlReader.attributes())
|
||||
{
|
||||
QString name = attr.name().toString();
|
||||
QString value = attr.value().toString();
|
||||
|
||||
if (name == "Result"){
|
||||
result = value == "true" ? true : false;
|
||||
}
|
||||
|
||||
if (name == "Type"){
|
||||
type = value;
|
||||
}
|
||||
}
|
||||
|
||||
emit sigTryBlock(result, type);
|
||||
}
|
||||
|
||||
|
||||
if(xmlReader.name() == "VersionList")
|
||||
{
|
||||
|
||||
@@ -37,6 +37,7 @@ signals:
|
||||
void sigErrorAuth(QString error);
|
||||
void sigAuth(ServerAuthorization *serverAuth);
|
||||
void sigDeAuth(ServerDeAuthorization *serverDeAuth);
|
||||
void sigTryBlock(bool result, QString type);
|
||||
void sigAnswerQueryToDB(QList<Instructor>* listInstructors,
|
||||
QList<Trainee>* listTrainees,
|
||||
QList<Group>* listGroups);
|
||||
|
||||
Reference in New Issue
Block a user