Older/WebApplication/RedirectPage.h
amass 1301e4bbc5
All checks were successful
Deploy / Build (push) Successful in 6m48s
add redirect page.
2025-01-05 00:33:19 +08:00

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__