Show the total size of the volume along with the free space.

This should help identifying the correct player by size, since the free space
is only useful to figure if there is enough space to install Rockbox. Change
units to GiB since that is more useful given the size of current devices.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30139 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2011-07-15 18:13:31 +00:00
parent cad91ed938
commit 21a38713a6
3 changed files with 41 additions and 7 deletions

View file

@ -31,9 +31,16 @@
class Utils : public QObject
{
public:
enum Size {
FilesystemTotal,
FilesystemFree
};
static bool recursiveRmdir(const QString &dirName);
static QString resolvePathCase(QString path);
static qulonglong filesystemFree(QString path);
static qulonglong filesystemTotal(QString path);
static qulonglong filesystemSize(QString path, enum Size type);
static QString findExecutable(QString name);
static QString checkEnvironment(bool permission);
static int compareVersionStrings(QString s1, QString s2);