1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
9 * Copyright (C) 2007 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 ****************************************************************************/
25 #include <QtCore/QObject>
30 class Utils
: public QObject
36 FilesystemClusterSize
,
39 static bool recursiveRmdir(const QString
&dirName
);
40 static QString
resolvePathCase(QString path
);
41 static qulonglong
filesystemFree(QString path
);
42 static qulonglong
filesystemTotal(QString path
);
43 static qulonglong
filesystemClusterSize(QString path
);
44 static qulonglong
filesystemSize(QString path
, enum Size type
);
45 static QString
findExecutable(QString name
);
46 static QString
checkEnvironment(bool permission
);
47 static int compareVersionStrings(QString s1
, QString s2
);
48 static QString
filesystemName(QString path
);
49 static QStringList
mountpoints(void);
50 static QString
resolveDevicename(QString path
);
51 static QString
resolveMountPoint(QString device
);
52 static QStringList
findRunningProcess(QStringList names
);