#ifndef ENV_SECURITY_H
#define ENV_SECURITY_H
#include <QString>
#include <QUuid>
namespace env
{
class SecurityProduct
{
public:
SecurityProduct(QUuid guid, QString name, int provider, bool active, bool upToDate);
const QUuid& guid() const;
const QString& name() const;
int provider() const;
bool active() const;
bool upToDate() const;
QString toString() const;
private:
QUuid m_guid;
QString m_name;
int m_provider;
bool m_active;
bool m_upToDate;
QString providerToString() const;
};
std::vector<SecurityProduct> getSecurityProducts();
struct FileRights
{
QStringList list;
bool hasExecute = false;
bool normalRights = false;
};
struct FileSecurity
{
QString owner;
FileRights rights;
QString error;
};
FileSecurity getFileSecurity(const QString& file);
}
#endif