CQtDeployer/Deploy/distrostruct.h

61 lines
1.6 KiB
C
Raw Normal View History

2019-08-25 12:06:01 +03:00
//#
2019-12-08 13:57:20 +03:00
//# Copyright (C) 2018-2020 QuasarApp.
2019-08-25 12:06:01 +03:00
//# 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.
//#
#ifndef DISTROSTRUCT_H
#define DISTROSTRUCT_H
#include <QString>
2019-08-25 14:42:00 +03:00
#include <deploy_global.h>
2019-08-25 12:06:01 +03:00
/**
* @brief The DistroStruct class
*/
2019-08-25 14:42:00 +03:00
class DEPLOYSHARED_EXPORT DistroStruct
2019-08-25 12:06:01 +03:00
{
private:
QString extraDataOutDir;
2019-08-25 12:06:01 +03:00
QString libOutDir;
QString binOutDir;
QString qmlOutDir;
QString trOutDir;
2019-08-26 21:16:47 +03:00
QString resOutDir;
2019-08-25 12:06:01 +03:00
QString pluginsOutDir;
2019-08-28 18:03:55 +03:00
QString toFullPath(QString path) const;
QString stripPath(QString path) const;
2019-08-25 12:43:06 +03:00
QString getRelativePath(QString path) const;
2019-08-25 12:35:31 +03:00
2019-12-09 17:28:56 +03:00
public:
DistroStruct();
2019-09-15 17:38:47 +03:00
void setBinOutDir(const QString &value);
void setLibOutDir(const QString &value);
void setQmlOutDir(const QString &value);
void setTrOutDir(const QString &value);
void setResOutDir(const QString &value);
void setPluginsOutDir(const QString &value);
void setExtraDataOutDir(const QString &value);
2019-09-15 17:38:47 +03:00
2019-08-25 12:35:31 +03:00
QString getLibOutDir(const QString& basePath = "/") const;
QString getBinOutDir(const QString& basePath = "/") const;
QString getQmlOutDir(const QString& basePath = "/") const;
QString getTrOutDir(const QString& basePath = "/") const;
2019-08-26 21:16:47 +03:00
QString getResOutDir(const QString& basePath = "/") const;
2019-08-25 12:35:31 +03:00
QString getPluginsOutDir(const QString& basePath = "/") const;
QString getRootDir(const QString& basePath = "/") const;
QString getExtraDataOutDir(const QString& basePath = "/") const;
2019-08-26 08:46:53 +03:00
2019-12-10 18:43:01 +03:00
bool isEmpty();
2019-09-15 17:38:47 +03:00
2019-08-26 08:46:53 +03:00
friend class deploytest;
2019-08-25 12:06:01 +03:00
};
#endif // DISTROSTRUCT_H