You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
489 B
C++
24 lines
489 B
C++
#ifndef PERMISSIONEVALUATOR_H
|
|
#define PERMISSIONEVALUATOR_H
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
|
|
#include "core_global.h"
|
|
|
|
class CORESHARED_EXPORT PermissionEvaluator : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PermissionEvaluator(QObject *parent = nullptr);
|
|
~PermissionEvaluator() override = default;
|
|
|
|
bool hasPermission(const QString &pluginId, const QString &permission);
|
|
|
|
signals:
|
|
void permissionDenied(QString permission);
|
|
};
|
|
|
|
#endif // PERMISSIONEVALUATOR_H
|