MPEGPlayer: Skip to next file when there is a problem with a video file in all-play...
[kugel-rb.git] / rbutil / rbutilqt / base / systeminfo.h
blob214e423a517b27085efc3fe0c16e7c792dc77d9f
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2010 by Dominik Wenger
10 * $Id$
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef SYSTEMINFO_H
23 #define SYSTEMINFO_H
25 #include <QtCore>
27 class SystemInfo : public QObject
29 Q_OBJECT
30 public:
31 //! Type of requested usb-id map
32 enum MapType {
33 MapDevice,
34 MapError,
35 MapIncompatible,
38 //! All system settings
39 enum SystemInfos {
40 ManualUrl,
41 BleedingUrl,
42 BootloaderUrl,
43 BootloaderInfoUrl,
44 DailyUrl,
45 DailyFontUrl,
46 DailyVoiceUrl,
47 DoomUrl,
48 ReleaseUrl,
49 ReleaseVoiceUrl,
50 ReleaseFontUrl,
51 ServerConfUrl,
52 GenlangUrl,
53 ThemesUrl,
54 ThemesInfoUrl,
55 RbutilUrl,
56 BleedingInfo,
57 CurPlatformName,
58 CurManual,
59 CurBootloaderMethod,
60 CurBootloaderName,
61 CurBootloaderFile,
62 CurEncoder,
63 CurBrand,
64 CurName,
65 CurBuildserverModel,
66 CurConfigureModel,
69 enum PlatformType {
70 PlatformAll,
71 PlatformAllDisabled,
72 PlatformBase,
73 PlatformBaseDisabled,
74 PlatformVariant,
75 PlatformVariantDisabled
78 //! return a list of all platforms (rbutil internal names)
79 static QStringList platforms(enum PlatformType type = PlatformAll,
80 QString variant="");
81 //! returns a list of all languages
82 static QStringList languages(void);
83 //! returns a map of usb-ids and their targets
84 static QMap<int, QString> usbIdMap(enum MapType);
85 //! get a value from system settings
86 static QVariant value(enum SystemInfos info);
87 //! get a value from system settings for a named platform.
88 static QVariant platformValue(QString platform, enum SystemInfos info);
90 private:
91 //! you shouldnt call this, its a fully static calls
92 SystemInfo() {}
93 //! create the setting objects if neccessary
94 static void ensureSystemInfoExists();
95 //! pointers to our setting objects
96 static QSettings *systemInfos;
99 #endif