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.
prodejna/core/permissionservice.h

27 lines
769 B
C++

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