Older/WebApplication/Hello.h
amass 059d6d3879
Some checks failed
Deploy / Build (push) Failing after 3m33s
use wt dbo.
2024-11-26 22:58:54 +08:00

27 lines
538 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();
void handlePathChange(const std::string &path);
private:
Wt::WLineEdit *m_nameEdit = nullptr;
Wt::WText *m_greeting = nullptr;
std::unique_ptr<Session> m_session;
std::string m_externalPath;
Wt::WContainerWidget *m_root = nullptr;
};
#endif // __HELLO_H__