Older/WebApplication/RedirectPage.h

20 lines
391 B
C
Raw Normal View History

2025-01-05 00:33:19 +08:00
#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__