2012-12-14 00:36:44 +04:00
|
|
|
/*
|
|
|
|
* Copyright (C) by Klaas Freitag <freitag@owncloud.com>
|
|
|
|
*
|
|
|
|
* 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; version 2 of the License.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef UTILITY_H
|
|
|
|
#define UTILITY_H
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QByteArray>
|
|
|
|
|
2013-07-04 21:59:40 +04:00
|
|
|
class QWidget;
|
2012-12-14 00:36:44 +04:00
|
|
|
|
2013-07-04 21:59:40 +04:00
|
|
|
namespace Mirall {
|
2012-12-14 00:36:44 +04:00
|
|
|
|
2013-07-04 21:59:40 +04:00
|
|
|
namespace Utility
|
2012-12-14 00:36:44 +04:00
|
|
|
{
|
2013-07-04 21:59:40 +04:00
|
|
|
QString formatFingerprint( const QByteArray& );
|
|
|
|
void setupFavLink( const QString &folder );
|
|
|
|
QString octetsToString( qint64 octets );
|
|
|
|
QString platform();
|
|
|
|
QByteArray userAgentString();
|
|
|
|
void raiseDialog(QWidget *);
|
2013-07-07 00:38:33 +04:00
|
|
|
bool hasLaunchOnStartup(const QString &appName);
|
|
|
|
void setLaunchOnStartup(const QString &appName, const QString& guiName, bool launch);
|
2013-07-07 03:23:25 +04:00
|
|
|
qint64 freeDiskSpace(const QString &path, bool *ok = 0);
|
2013-07-04 21:59:40 +04:00
|
|
|
}
|
2012-12-14 00:36:44 +04:00
|
|
|
|
|
|
|
}
|
|
|
|
#endif // UTILITY_H
|