4
1
mirror of https://github.com/QuasarApp/CQtDeployer.git synced 2025-04-28 10:44:33 +00:00

38 lines
933 B
C
Raw Permalink Normal View History

2019-09-23 16:46:57 +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.
//#
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