Older/WebApplication/Hello.h
amass d37cf655dc
Some checks failed
Deploy / Build (push) Failing after 6m49s
Deploy Docker Images / Build dockerfile and Server deploy (push) Successful in 1h12m51s
clean code.
2024-11-14 23:06:22 +08:00

23 lines
452 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,Wt::Dbo::SqlConnectionPool &connectionPool, 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__