summaryrefslogtreecommitdiff
path: root/src/envsecurity.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-09-22 15:14:53 -0400
committerGitHub <noreply@github.com>2019-09-22 15:14:53 -0400
commit5044a6cd2c7d75e2505e5abc6645fc990f343dc9 (patch)
treee06b037a1d44876a895fd5ecc47071477e52101b /src/envsecurity.h
parentf69559fe0bd40629e66ecde6e362b73595d9bd2e (diff)
parentc1a5f2ef73f4435c08876155d4551c045d5e7594 (diff)
Merge pull request #839 from isanae/even-more-logging
Even more logging
Diffstat (limited to 'src/envsecurity.h')
-rw-r--r--src/envsecurity.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/envsecurity.h b/src/envsecurity.h
index 200cb531..5f9e5332 100644
--- a/src/envsecurity.h
+++ b/src/envsecurity.h
@@ -1,3 +1,6 @@
+#ifndef ENV_SECURITY_H
+#define ENV_SECURITY_H
+
#include <QUuid>
#include <QString>
@@ -13,6 +16,10 @@ public:
QUuid guid, QString name, int provider,
bool active, bool upToDate);
+ // guid
+ //
+ const QUuid& guid() const;
+
// display name of the product
//
const QString& name() const;
@@ -46,4 +53,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