diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-11-15 21:01:36 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-11-15 21:01:36 +0100 |
commit | 104ff3433a9f26009751cbd317d0024742d1310b (patch) | |
tree | 3bb5b2bad788ba6946212de3a97ebf1d39ed2682 /rbutil/rbutilqt/base/serverinfo.h | |
parent | 2b2a7b9ae340e2f7273c79ebb8d6140b8fd7aa35 (diff) | |
download | rockbox-104ff3433a9f26009751cbd317d0024742d1310b.tar.gz rockbox-104ff3433a9f26009751cbd317d0024742d1310b.zip |
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
Diffstat (limited to 'rbutil/rbutilqt/base/serverinfo.h')
-rw-r--r-- | rbutil/rbutilqt/base/serverinfo.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 <QtCore> +#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() {} |