diff options
Diffstat (limited to 'rbutil/rbutilqt/base/systeminfo.h')
-rw-r--r-- | rbutil/rbutilqt/base/systeminfo.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/rbutil/rbutilqt/base/systeminfo.h b/rbutil/rbutilqt/base/systeminfo.h deleted file mode 100644 index 5ca5b35885..0000000000 --- a/rbutil/rbutilqt/base/systeminfo.h +++ /dev/null | |||
@@ -1,51 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2010 by Dominik Wenger | ||
10 | * | ||
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. | ||
15 | * | ||
16 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
17 | * KIND, either express or implied. | ||
18 | * | ||
19 | ****************************************************************************/ | ||
20 | |||
21 | #ifndef SYSTEMINFO_H | ||
22 | #define SYSTEMINFO_H | ||
23 | |||
24 | #include <QtCore> | ||
25 | |||
26 | class SystemInfo : public QObject | ||
27 | { | ||
28 | Q_OBJECT | ||
29 | public: | ||
30 | //! Type of requested usb-id map | ||
31 | enum MapType { | ||
32 | MapDevice, | ||
33 | MapError, | ||
34 | MapIncompatible, | ||
35 | }; | ||
36 | |||
37 | //! returns a map of usb-ids and their targets | ||
38 | static QMap<int, QStringList> usbIdMap(enum MapType type); | ||
39 | //! get a value from system settings | ||
40 | |||
41 | private: | ||
42 | //! you shouldnt call this, its a fully static calls | ||
43 | SystemInfo() {} | ||
44 | //! create the setting objects if neccessary | ||
45 | static void ensureSystemInfoExists(); | ||
46 | //! pointers to our setting objects | ||
47 | static QSettings *systemInfos; | ||
48 | }; | ||
49 | |||
50 | #endif | ||
51 | |||