diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-11 23:33:23 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-11 23:33:23 -0400 |
| commit | 09f98576e882a5fef68cdefdff939834a8782eaa (patch) | |
| tree | b3094bf7e84d5479b2e6806b0c5103788cf871d5 /src/envsecurity.h | |
| parent | 9c59c739d4ef9a4479ac849badc998b200fddb13 (diff) | |
added env::getFileSecurity()
Environment gets stuff on demand
Diffstat (limited to 'src/envsecurity.h')
| -rw-r--r-- | src/envsecurity.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/envsecurity.h b/src/envsecurity.h index bc63c4a2..436103b7 100644 --- a/src/envsecurity.h +++ b/src/envsecurity.h @@ -49,6 +49,23 @@ private: 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); + } // namespace env #endif // ENV_SECURITY_H |
