summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/systeminfo.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-01-31 21:57:45 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-01-31 21:57:45 +0000
commitea4130fd2d91d99fec3135bc83128fe702a846ab (patch)
treed5d677b796200036eae47721290a13145b628982 /rbutil/rbutilqt/base/systeminfo.h
parente9538363286e22bf21be1f8b3d5a4e83cdc2e4a4 (diff)
downloadrockbox-ea4130fd2d91d99fec3135bc83128fe702a846ab.tar.gz
rockbox-ea4130fd2d91d99fec3135bc83128fe702a846ab.zip
Extend SystemInfo to allow distinguishing between platforms and variants.
Doing so removes the need to loop over all targets to fill in values for target variants in ServerInfo. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24427 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/systeminfo.h')
-rw-r--r--rbutil/rbutilqt/base/systeminfo.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/base/systeminfo.h b/rbutil/rbutilqt/base/systeminfo.h
index 1794b00a76..45984d4789 100644
--- a/rbutil/rbutilqt/base/systeminfo.h
+++ b/rbutil/rbutilqt/base/systeminfo.h
@@ -63,14 +63,21 @@ class SystemInfo : public QObject
CurConfigureModel,
};
+ enum PlatformType {
+ PlatformAll,
+ PlatformBase,
+ PlatformVariant
+ };
+
//! return a list of all platforms (rbutil internal names)
- static QStringList platforms(void);
+ static QStringList platforms(enum PlatformType type = PlatformAll,
+ QString variant="");
//! returns a list of all languages
static QStringList languages(void);
//! maps a platform to its name
- static QString name(QString plattform);
+ static QString name(QString platform);
//! maps a platform to its brand
- static QString brand(QString plattform);
+ static QString brand(QString platform);
//! returns a map of usb-ids and their targets
static QMap<int, QString> usbIdMap(enum MapType);
//! get a value from system settings