qswiki/dynamic/dynamiccontent.h

30 satır
595 B
C
Ham Normal Görünüm Geçmiş

2022-03-27 08:36:25 +02:00
#ifndef DYNAMICCONTENT_H
#define DYNAMICCONTENT_H
#include <string>
#include "../database/database.h"
#include "../template.h"
#include "../urlprovider.h"
class DynamicContent
{
protected:
Template *templ;
Database *database;
UrlProvider *urlProvider;
Session *userSession;
2022-03-27 08:36:25 +02:00
std::string argument;
2022-03-27 08:36:25 +02:00
public:
DynamicContent(Template &templ, Database &database, UrlProvider &urlProvider, Session &session);
2022-03-27 08:36:25 +02:00
virtual std::string render() = 0;
virtual void setArgument(std::string argument)
{
this->argument = argument;
}
2022-03-27 08:36:25 +02:00
virtual ~DynamicContent()
{
}
};
#endif // DYNAMICCONTENT_H