Older/WebApplication/Hello.h
luocai 80e52feee6
All checks were successful
Deploy / Build (push) Successful in 4m31s
修改wt url.
2024-11-19 19:23:08 +08:00

25 lines
537 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();
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;
};
#endif // __HELLO_H__