2014-06-06 16:00:42 +02:00
|
|
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
|
|
|
*
|
|
|
|
* Copyright 2013-2014, Teo Mrnjavac <teo@kde.org>
|
|
|
|
*
|
|
|
|
* Originally from Tomahawk, portions:
|
|
|
|
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
|
|
|
* Copyright 2010-2011, Leo Franchi <lfranchi@kde.org>
|
|
|
|
* Copyright 2010-2012, Jeff Mitchell <jeff@tomahawk-player.org>
|
|
|
|
*
|
|
|
|
* Calamares 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 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Calamares is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CALAMARESUTILS_H
|
|
|
|
#define CALAMARESUTILS_H
|
|
|
|
|
|
|
|
#include "DllMacro.h"
|
|
|
|
|
2014-08-26 15:18:30 +02:00
|
|
|
#define RESPATH ":/data/"
|
|
|
|
|
2014-06-06 16:00:42 +02:00
|
|
|
class QDir;
|
|
|
|
class QObject;
|
|
|
|
|
|
|
|
namespace CalamaresUtils
|
|
|
|
{
|
|
|
|
DLLEXPORT QDir appDataDir();
|
|
|
|
DLLEXPORT QDir appLogDir();
|
2014-06-24 13:35:21 +02:00
|
|
|
DLLEXPORT QDir systemLibDir();
|
2014-06-06 16:00:42 +02:00
|
|
|
DLLEXPORT void installTranslator( QObject* parent );
|
|
|
|
|
2014-07-28 18:11:24 +02:00
|
|
|
/**
|
|
|
|
* Override app data dir. Only for testing purposes.
|
|
|
|
*/
|
|
|
|
DLLEXPORT void setAppDataDir( const QDir& dir );
|
2014-08-06 17:23:40 +02:00
|
|
|
DLLEXPORT bool isAppDataDirOverridden();
|
2014-08-13 17:15:56 +02:00
|
|
|
|
|
|
|
DLLEXPORT QString removeDiacritics( const QString& string );
|
2014-06-06 16:00:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // CALAMARESUTILS_H
|