2007-09-14 22:16:22 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 by Dominik Wenger
|
|
|
|
* $Id$
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2007-09-14 22:16:22 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef UTILS_H
|
|
|
|
#define UTILS_H
|
|
|
|
|
|
|
|
#include <QString>
|
2008-01-23 21:54:40 +00:00
|
|
|
#include <QUrl>
|
2007-09-14 22:16:22 +00:00
|
|
|
|
2010-04-02 21:24:19 +00:00
|
|
|
class Utils
|
2009-03-21 16:30:40 +00:00
|
|
|
{
|
|
|
|
public:
|
2010-04-02 21:24:19 +00:00
|
|
|
static bool recursiveRmdir(const QString &dirName);
|
|
|
|
static QString resolvePathCase(QString path);
|
|
|
|
static qulonglong filesystemFree(QString path);
|
|
|
|
static QString findExecutable(QString name);
|
|
|
|
static QString checkEnvironment(bool permission);
|
2009-03-21 16:30:40 +00:00
|
|
|
};
|
|
|
|
|
2007-09-14 22:16:22 +00:00
|
|
|
#endif
|
|
|
|
|