2019-09-29 18:14:41 +03:00
|
|
|
//#
|
|
|
|
//# Copyright (C) 2018-2019 QuasarApp.
|
|
|
|
//# Distributed under the lgplv3 software license, see the accompanying
|
|
|
|
//# Everyone is permitted to copy and distribute verbatim copies
|
|
|
|
//# of this license document, but changing it is not allowed.
|
|
|
|
//#
|
|
|
|
|
|
|
|
#include <QString>
|
2019-09-29 20:12:16 +03:00
|
|
|
#include "deploy_global.h"
|
2019-09-29 18:14:41 +03:00
|
|
|
|
|
|
|
#ifndef PATHUTILS_H
|
|
|
|
#define PATHUTILS_H
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The PathUtils class
|
|
|
|
*
|
|
|
|
*/
|
2019-09-29 20:12:16 +03:00
|
|
|
class DEPLOYSHARED_EXPORT PathUtils
|
2019-09-29 18:14:41 +03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
PathUtils();
|
|
|
|
static QString toFullPath(QString path);
|
|
|
|
static QString getReleativePath(QString path);
|
|
|
|
static QString stripPath(QString path) ;
|
|
|
|
static QString getRelativeLink(QString from, QString to);
|
|
|
|
static bool isPath(const QString &path);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PATHUTILS_H
|