qswiki/database/permissionsdao.h

16 wiersze
417 B
C
Czysty Zwykły widok Historia

2018-11-03 17:12:20 +01:00
#ifndef PERMISSIONSDAO_H
#define PERMISSIONSDAO_H
2021-10-25 13:30:46 +02:00
#include <optional>
2018-11-03 17:12:20 +01:00
#include "../permissions.h"
#include "../user.h"
class PermissionsDao
{
public:
PermissionsDao();
virtual std::optional<Permissions> find(std::string pagename, std::string username) = 0;
2021-10-05 21:51:31 +02:00
virtual void save(std::string pagename, std::string username, Permissions perms) = 0;
virtual ~PermissionsDao() = default;
2018-11-03 17:12:20 +01:00
};
#endif // PERMISSIONSDAO_H