CQtDeployer/Deploy/envirement.h

31 lines
686 B
C
Raw Normal View History

2019-09-07 12:01:20 +03:00
#ifndef ENVIREMENT_H
#define ENVIREMENT_H
2019-09-14 15:51:23 +03:00
#include <QSet>
2019-09-07 12:01:20 +03:00
#include <QStringList>
2019-09-09 21:19:44 +03:00
#include "deploy_global.h"
2019-09-07 12:01:20 +03:00
2019-09-09 21:19:44 +03:00
class DEPLOYSHARED_EXPORT Envirement
2019-09-07 12:01:20 +03:00
{
private:
2019-09-14 15:51:23 +03:00
QSet<QString> _ignoreEnvList;
QSet<QString> _deployEnvironment;
2019-09-07 12:01:20 +03:00
public:
Envirement();
QStringList deployEnvironment() const;
QStringList ignoreEnvList() const;
void setIgnoreEnvList(const QStringList &ignoreEnvList);
2019-09-07 12:36:20 +03:00
2019-09-23 10:06:22 +03:00
void addEnv(const QString &dir, const QString &appDir = "", const QString &targetDir = "");
2019-09-22 21:55:04 +03:00
// return true if file exits in this envirement
bool inThisEnvirement(const QString &file) const;
2019-09-07 12:36:20 +03:00
int size() const;
2019-09-08 13:37:33 +03:00
QString concatEnv() const;
2019-09-07 12:01:20 +03:00
};
#endif // ENVIREMENT_H