mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 10:14:32 +00:00
38 lines
933 B
C++
38 lines
933 B
C++
//#
|
|
//# 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 ENVIREMENT_H
|
|
#define ENVIREMENT_H
|
|
|
|
#include <QSet>
|
|
#include <QStringList>
|
|
#include "deploy_global.h"
|
|
|
|
|
|
|
|
class DEPLOYSHARED_EXPORT Envirement
|
|
{
|
|
private:
|
|
QSet<QString> _ignoreEnvList;
|
|
QSet<QString> _deployEnvironment;
|
|
|
|
public:
|
|
Envirement();
|
|
QStringList deployEnvironment() const;
|
|
QStringList ignoreEnvList() const;
|
|
void setIgnoreEnvList(const QStringList &ignoreEnvList);
|
|
|
|
void addEnv(const QString &dir, const QString &appDir = "", const QString &targetDir = "");
|
|
// return true if file exits in this envirement
|
|
bool inThisEnvirement(const QString &file) const;
|
|
|
|
int size() const;
|
|
QString concatEnv() const;
|
|
};
|
|
|
|
#endif // ENVIREMENT_H
|