20 lines
391 B
C++
20 lines
391 B
C++
#ifndef __REDIRECTPAGE_H__
|
|
#define __REDIRECTPAGE_H__
|
|
|
|
#include <Wt/WTemplate.h>
|
|
|
|
class RedirectPage : public Wt::WTemplate {
|
|
public:
|
|
RedirectPage();
|
|
void setRedirect(const std::string &path, const std::string &message);
|
|
|
|
protected:
|
|
void onTimeout();
|
|
|
|
private:
|
|
Wt::WTimer *m_timer = nullptr;
|
|
int m_time = 5000;
|
|
std::string m_redirect;
|
|
};
|
|
|
|
#endif // __REDIRECTPAGE_H__
|