Older/WebApplication/Hello.h
luocai 1eaa4a6787
All checks were successful
Deploy / PullDocker (push) Successful in 8s
Deploy / Build (push) Successful in 2m46s
add code.
2024-10-31 19:40:29 +08:00

23 lines
409 B
C++

#ifndef __HELLO_H__
#define __HELLO_H__
#include <Wt/WApplication.h>
class Session;
class Hello : public Wt::WApplication {
public:
Hello(const Wt::WEnvironment &env, bool embedded);
~Hello();
protected:
void greet();
void authEvent();
private:
Wt::WLineEdit *m_nameEdit = nullptr;
Wt::WText *m_greeting = nullptr;
std::unique_ptr<Session> m_session;
};
#endif // __HELLO_H__