2018-11-03 17:12:20 +01:00
|
|
|
#ifndef HANDLERPAGEDELETE_H
|
|
|
|
#define HANDLERPAGEDELETE_H
|
|
|
|
#include "handlerpage.h"
|
|
|
|
|
|
|
|
class HandlerPageDelete : public HandlerPage
|
|
|
|
{
|
2019-05-03 15:59:29 +02:00
|
|
|
bool pageMustExist() override;
|
2018-11-03 17:12:20 +01:00
|
|
|
|
2019-05-03 15:59:29 +02:00
|
|
|
bool canAccess(std::string page) override;
|
2018-11-03 17:12:20 +01:00
|
|
|
|
2019-05-03 15:59:29 +02:00
|
|
|
std::string accessErrorMessage() override;
|
2018-11-03 17:12:20 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
Response handleRequest(PageDao &pageDao, std::string pagename, const Request &r) override;
|
|
|
|
using HandlerPage::HandlerPage;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // HANDLERPAGEDELETE_H
|