/* === This file is part of Calamares - === * * Copyright 2013-2014, Teo Mrnjavac * * Originally from Tomahawk, portions: * Copyright 2010-2011, Christian Muehlhaeuser * Copyright 2010-2011, Leo Franchi * Copyright 2010-2012, Jeff Mitchell * * 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 . */ #ifndef CALAMARESUTILS_H #define CALAMARESUTILS_H #include "DllMacro.h" #define RESPATH ":/data/" class QDir; class QObject; namespace CalamaresUtils { DLLEXPORT QDir appDataDir(); DLLEXPORT QDir appLogDir(); DLLEXPORT QDir systemLibDir(); DLLEXPORT void installTranslator( QObject* parent ); /** * Override app data dir. Only for testing purposes. */ DLLEXPORT void setAppDataDir( const QDir& dir ); DLLEXPORT bool isAppDataDirOverridden(); DLLEXPORT QString removeDiacritics( const QString& string ); } #endif // CALAMARESUTILS_H