qswiki/database/sessiondao.h

20 linhas
408 B
C
Original Visão normal Histórico

2018-11-03 17:12:20 +01:00
#ifndef SESSIONDAO_H
#define SESSIONDAO_H
#include <string>
#include <optional>
#include "../session.h"
class SessionDao
{
public:
SessionDao();
virtual void save(const Session &session) = 0;
virtual std::optional<Session> find(std::string token) = 0;
virtual void deleteSession(std::string token) = 0;
2023-02-01 18:54:11 +01:00
virtual std::vector<Session> fetch() = 0;
2018-11-03 17:12:20 +01:00
virtual ~SessionDao()
{
}
};
#endif // SESSIONDAO_H