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
|
|
|
|
|
|
|
bool recRmdir( const QString &dirName );
|
2008-04-01 20:30:41 +00:00
|
|
|
QString resolvePathCase(QString path);
|
2008-12-13 20:09:31 +00:00
|
|
|
qulonglong filesystemFree(QString path);
|
2009-04-29 21:27:01 +00:00
|
|
|
QString findExecutable(QString name);
|
2007-09-14 22:16:22 +00:00
|
|
|
|
2009-03-21 16:30:40 +00:00
|
|
|
class RockboxInfo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RockboxInfo(QString mountpoint);
|
|
|
|
bool open();
|
|
|
|
|
|
|
|
QString version() {return m_version;}
|
|
|
|
QString features(){return m_features;}
|
|
|
|
QString targetID() {return m_targetid;}
|
|
|
|
QString target() {return m_target;}
|
|
|
|
private:
|
|
|
|
QString m_path;
|
|
|
|
QString m_version;
|
|
|
|
QString m_features;
|
|
|
|
QString m_targetid;
|
|
|
|
QString m_target;
|
|
|
|
};
|
|
|
|
|
2007-09-14 22:16:22 +00:00
|
|
|
#endif
|
|
|
|
|