rbutil: forgot the new files
[Rockbox.git] / rbutil / rbutilqt / detect.h
blob98d6040ac07f80d01c3e17d995cebc29d089fd90
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id: detect.h 17769 2008-06-23 20:31:44Z Domonoky $
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.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
21 #ifndef DETECT_H
22 #define DETECT_H
24 #include <QString>
25 #include <QUrl>
26 #include "rbsettings.h"
28 class Detect
30 public:
31 Detect() {}
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
39 static QString userName(void);
40 static QString osVersionString(void);
41 static QList<uint32_t> listUsbIds(void);
43 static QUrl systemProxy(void);
44 static QString installedVersion(QString mountpoint);
45 static int installedTargetId(QString mountpoint);
47 static bool check(RbSettings* settings,bool permission,int targetId);
49 #endif