qswiki/database/permissionsdao.h

18 baris
472 B
C
Mentah Pandangan Normal Riwayat

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;
2023-08-11 09:21:02 +02:00
virtual void clearForPage(std::string pagename) = 0;
virtual ~PermissionsDao() = default;
2018-11-03 17:12:20 +01:00
};
#endif // PERMISSIONSDAO_H