1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
9 * Copyright (C) 2010 by Dominik Wenger
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
26 class SystemInfo
: public QObject
30 //! Type of requested usb-id map
37 //! All system settings
74 PlatformVariantDisabled
77 //! return a list of all platforms (rbutil internal names)
78 static QStringList
platforms(enum PlatformType type
= PlatformAll
,
80 //! returns a map of all languages
81 static QMap
<QString
, QString
> languages(void);
82 //! returns a map of usb-ids and their targets
83 static QMap
<int, QString
> usbIdMap(enum MapType
);
84 //! get a value from system settings
85 static QVariant
value(enum SystemInfos info
);
86 //! get a value from system settings for a named platform.
87 static QVariant
platformValue(QString platform
, enum SystemInfos info
);
90 //! you shouldnt call this, its a fully static calls
92 //! create the setting objects if neccessary
93 static void ensureSystemInfoExists();
94 //! pointers to our setting objects
95 static QSettings
*systemInfos
;