add updatemanager base funciton

This commit is contained in:
2026-11-14 17:42:48 +03:00
parent ede7734fa7
commit c9139f8c44
5 changed files with 56 additions and 27 deletions

View File

@@ -12,7 +12,15 @@ QString Utils::declensionLabel(int count)
else if (n % 10 >= 2 && n % 10 <= 4) suffix = QStringLiteral("пакета");
else suffix = QStringLiteral("пакетов");
return QString::number(count) + " " + suffix;
}
QString Utils::statusConsole(int status, bool updating, bool installing, bool removing)
{
QString res;
if (status == 0 && updating) res = "обновление...";
if (status == 1 && installing) res = "установка...";
if (status == 2 && removing) res = "удаление...";
return res;
}