From 104ff3433a9f26009751cbd317d0024742d1310b Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 15 Nov 2020 21:01:36 +0100 Subject: rbutil: Rework server info data handling. Don't create our own in-memory map with server data. Instead use the configuration file retrieved from the download server, and do the resolve / replacement on the fly. Simplifies things, and prepares for cleaner handling for different build types. Change-Id: Ifd027b21486e402fda3df9c2f7a30264651f733d --- rbutil/rbutilqt/base/serverinfo.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'rbutil/rbutilqt/base/serverinfo.h') diff --git a/rbutil/rbutilqt/base/serverinfo.h b/rbutil/rbutilqt/base/serverinfo.h index 7588521b09..6c68bd3f5d 100644 --- a/rbutil/rbutilqt/base/serverinfo.h +++ b/rbutil/rbutilqt/base/serverinfo.h @@ -22,6 +22,10 @@ #define SERVERINFO_H #include +#define STATUS_RETIRED 0 +#define STATUS_UNUSABLE 1 +#define STATUS_UNSTABLE 2 +#define STATUS_STABLE 3 class ServerInfo : public QObject { @@ -47,10 +51,10 @@ class ServerInfo : public QObject static void readBuildInfo(QString file); //! get a value from server info for a named platform. static QVariant platformValue(enum ServerInfos setting, QString platform = ""); + //! Convert status number to string + static QString statusToString(int status); private: - //! set a value for a server info for a named platform. - static void setPlatformValue(enum ServerInfos setting, QString platform, QVariant value); //! you shouldnt call this, its a fully static class ServerInfo() {} -- cgit v1.2.3