diff options
Diffstat (limited to 'rbutil/rbutilqt/detect.h')
-rw-r--r-- | rbutil/rbutilqt/detect.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/detect.h b/rbutil/rbutilqt/detect.h new file mode 100644 index 0000000000..98d6040ac0 --- /dev/null +++ b/rbutil/rbutilqt/detect.h | |||
@@ -0,0 +1,51 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2007 by Dominik Wenger | ||
10 | * $Id: detect.h 17769 2008-06-23 20:31:44Z Domonoky $ | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | |||
21 | #ifndef DETECT_H | ||
22 | #define DETECT_H | ||
23 | |||
24 | #include <QString> | ||
25 | #include <QUrl> | ||
26 | #include "rbsettings.h" | ||
27 | |||
28 | class Detect | ||
29 | { | ||
30 | public: | ||
31 | Detect() {} | ||
32 | |||
33 | #if defined(Q_OS_WIN32) | ||
34 | enum userlevel { ERR, GUEST, USER, ADMIN }; | ||
35 | static enum userlevel userPermissions(void); | ||
36 | static QString userPermissionsString(void); | ||
37 | #endif | ||
38 | |||
39 | static QString userName(void); | ||
40 | static QString osVersionString(void); | ||
41 | static QList<uint32_t> listUsbIds(void); | ||
42 | |||
43 | static QUrl systemProxy(void); | ||
44 | static QString installedVersion(QString mountpoint); | ||
45 | static int installedTargetId(QString mountpoint); | ||
46 | |||
47 | static bool check(RbSettings* settings,bool permission,int targetId); | ||
48 | |||
49 | #endif | ||
50 | }; | ||
51 | |||