diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-11-21 19:33:29 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-11-22 14:43:01 +0100 |
commit | c2dacf6736dfcde92a4ed947f06fd85c6b2087d4 (patch) | |
tree | 470852777cef90f4a2f1fb9a463653955261fcff /rbutil/rbutilqt/base/systeminfo.h | |
parent | ad37655687cd4861681e561b2a84fabb5c307327 (diff) | |
download | rockbox-c2dacf6736dfcde92a4ed947f06fd85c6b2087d4.tar.gz rockbox-c2dacf6736dfcde92a4ed947f06fd85c6b2087d4.zip |
rbutil: Add voice installation to main widget.
Add checkbox for installing the prerendered voice file to the main
install widget. Current limitations:
- only english for now. The available languages are available from the
build server but are not yet taken into account.
- only for releases. This is the same limitations we had before. We do
have voices for daily builds, but that requires adding daily builds
again (those have been removed some time back.)
- Old voice installation dialog still present.
Change-Id: Ia6443b0f15365196df86cc1b64d5e043dff70c4c
Diffstat (limited to 'rbutil/rbutilqt/base/systeminfo.h')
-rw-r--r-- | rbutil/rbutilqt/base/systeminfo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/systeminfo.h b/rbutil/rbutilqt/base/systeminfo.h index 12b9eb4bfb..9bcfe6d253 100644 --- a/rbutil/rbutilqt/base/systeminfo.h +++ b/rbutil/rbutilqt/base/systeminfo.h @@ -90,8 +90,9 @@ class SystemInfo : public QObject //! return a list of all platforms (rbutil internal names) static QStringList platforms(enum PlatformType type = PlatformAll, QString variant=""); - //! returns a map of all languages - static QMap<QString, QStringList> languages(void); + //! returns a map of all languages. + //! Maps <language code> to (<language name>, <display name>) + static QMap<QString, QStringList> languages(bool namesOnly = false); //! returns a map of usb-ids and their targets static QMap<int, QStringList> usbIdMap(enum MapType type); //! get a value from system settings |