2015-02-07 00:32:25 +00:00
|
|
|
/*************************************************************************
|
|
|
|
* Copyright (C) 2008 by Volker Lanz <vl@fidra.de> *
|
|
|
|
* *
|
|
|
|
* 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 3 of *
|
|
|
|
* the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.*
|
|
|
|
*************************************************************************/
|
|
|
|
|
2015-06-04 01:51:56 +01:00
|
|
|
#if !defined(GUIHELPERS__H)
|
2014-05-18 21:41:48 +01:00
|
|
|
|
2015-06-04 01:51:56 +01:00
|
|
|
#define GUIHELPERS__H
|
2008-12-27 22:12:42 +00:00
|
|
|
|
2015-06-12 13:11:29 +01:00
|
|
|
#include <kpmcore/fs/filesystem.h>
|
2015-06-14 02:03:13 +01:00
|
|
|
#include <kpmcore/util/capacity.h>
|
2015-06-12 13:11:29 +01:00
|
|
|
|
2015-06-04 01:51:56 +01:00
|
|
|
class QString;
|
2015-06-12 13:11:29 +01:00
|
|
|
class QIcon;
|
2015-06-04 01:51:56 +01:00
|
|
|
|
2016-01-06 13:56:32 +00:00
|
|
|
bool checkPermissions();
|
|
|
|
bool loadBackend();
|
2015-06-14 02:03:13 +01:00
|
|
|
QIcon createFileSystemColor(FileSystem::Type type, quint32 size);
|
|
|
|
Capacity::Unit preferredUnit();
|
2015-07-13 15:17:41 +01:00
|
|
|
namespace GuiHelpers
|
|
|
|
{
|
|
|
|
FileSystem::Type defaultFileSystem();
|
2015-07-17 12:37:08 +01:00
|
|
|
std::array< QColor, FileSystem::__lastType > fileSystemColorCodesFromSettings();
|
2015-06-30 20:22:13 +01:00
|
|
|
}
|
2015-06-12 13:11:29 +01:00
|
|
|
|
2015-06-04 01:51:56 +01:00
|
|
|
QString suCommand();
|
2008-12-27 22:12:42 +00:00
|
|
|
|
|
|
|
#endif
|