Older/WebApplication/Hello.h

23 lines
409 B
C
Raw Normal View History

2024-10-30 23:59:59 +08:00
#ifndef __HELLO_H__
#define __HELLO_H__
#include <Wt/WApplication.h>
2024-10-31 19:40:29 +08:00
class Session;
2024-10-30 23:59:59 +08:00
class Hello : public Wt::WApplication {
public:
Hello(const Wt::WEnvironment &env, bool embedded);
2024-10-31 19:40:29 +08:00
~Hello();
2024-10-30 23:59:59 +08:00
protected:
void greet();
2024-10-31 19:40:29 +08:00
void authEvent();
2024-10-30 23:59:59 +08:00
private:
Wt::WLineEdit *m_nameEdit = nullptr;
Wt::WText *m_greeting = nullptr;
2024-10-31 19:40:29 +08:00
std::unique_ptr<Session> m_session;
2024-10-30 23:59:59 +08:00
};
#endif // __HELLO_H__