CQtDeployer/Deploy/distrostruct.h

51 lines
1.4 KiB
C
Raw Normal View History

2019-08-25 12:06:01 +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.
//#
#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 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-25 12:43:06 +03:00
QString getRelativePath(QString path) const;
2019-08-26 17:05:18 +03:00
QString fixPath(const QString& path) const;
2019-08-25 12:35:31 +03:00
2019-08-25 12:06:01 +03:00
public:
DistroStruct();
2019-08-25 12:35:31 +03:00
QString getLibOutDir(const QString& basePath = "/") const;
2019-08-25 12:06:01 +03:00
void setLibOutDir(const QString &value);
2019-08-25 12:35:31 +03:00
QString getBinOutDir(const QString& basePath = "/") const;
2019-08-25 12:06:01 +03:00
void setBinOutDir(const QString &value);
2019-08-25 12:35:31 +03:00
QString getQmlOutDir(const QString& basePath = "/") const;
2019-08-25 12:06:01 +03:00
void setQmlOutDir(const QString &value);
2019-08-25 12:35:31 +03:00
QString getTrOutDir(const QString& basePath = "/") const;
2019-08-25 12:06:01 +03:00
void setTrOutDir(const QString &value);
2019-08-26 21:16:47 +03:00
QString getResOutDir(const QString& basePath = "/") const;
void setResOutDir(const QString &value);
2019-08-25 12:35:31 +03:00
QString getPluginsOutDir(const QString& basePath = "/") const;
2019-08-25 12:06:01 +03:00
void setPluginsOutDir(const QString &value);
QString getRootDir(const QString& basePath = "/") const;
2019-08-26 08:46:53 +03:00
friend class deploytest;
2019-08-25 12:06:01 +03:00
};
#endif // DISTROSTRUCT_H