From 881375c35fec8305af15aaa7f7fdd1584f4bc235 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 20 Oct 2016 13:13:53 +0200 Subject: [PATCH] Added: Missing file --HG-- branch : develop --- .../client/ryzom_installer/src/operation.cpp | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 code/ryzom/tools/client/ryzom_installer/src/operation.cpp diff --git a/code/ryzom/tools/client/ryzom_installer/src/operation.cpp b/code/ryzom/tools/client/ryzom_installer/src/operation.cpp new file mode 100644 index 000000000..1a79ac2e7 --- /dev/null +++ b/code/ryzom/tools/client/ryzom_installer/src/operation.cpp @@ -0,0 +1,55 @@ +// Ryzom - MMORPG Framework +// Copyright (C) 2010 Winch Gate Property Limited +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +#include "stdpch.h" +#include "operation.h" + +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif + +QString stepToString(OperationStep step) +{ + static QStringList s_operations; + + if (s_operations.isEmpty()) + { + s_operations << "DisplayNoServerError" + << "ShowInstallWizard" + << "ShowMigrateWizard" + << "DownloadData" + << "ExtractDownloadedData" + << "DownloadClient" + << "ExtractDownloadedClient" + << "CopyDataFiles" + << "CopyProfileFiles" + << "CleanFiles" + << "ExtractBnpClient" + << "CopyInstaller" + << "LaunchInstalledInstaller" + << "UninstallOldClient" + << "CreateProfile" + << "CreateProfileShortcuts" + << "CreateAddRemoveEntry" + << "Done"; + } + + QString res; + + if (step >= 0 && step < s_operations.size()) res += s_operations[step]; + + return QString("%1 (%2)").arg(res).arg(step); +}