#ifndef PERMISSIONSERVICE_H #define PERMISSIONSERVICE_H #include "service.h" #include "data/core-data.h" #include "core_global.h" #include #include #include class CORESHARED_EXPORT PermissionService : public Service { public: PermissionService() = default; ~PermissionService() override = default; QList > forPlugin(const QString &pluginId); QSharedPointer forNameAndPlugin(const QString &name, const QString &pluginId); bool checkLogin(const QString &login, const QString &password); QSharedPointer loadUser(const QString &login); void checkForAdmin(); QString encryptPassword(const QString &plainPasswd); }; #endif // PERMISSIONSERVICE_H