2024-10-30 23:59:59 +08:00
|
|
|
#ifndef __WEBAPPLICATION_H__
|
|
|
|
#define __WEBAPPLICATION_H__
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <thread>
|
|
|
|
|
|
|
|
namespace Wt {
|
|
|
|
class WServer;
|
2024-11-07 18:21:04 +08:00
|
|
|
|
|
|
|
namespace Dbo {
|
|
|
|
class SqlConnectionPool;
|
|
|
|
}
|
|
|
|
}; // namespace Wt
|
2024-10-30 23:59:59 +08:00
|
|
|
|
|
|
|
class WebApplication {
|
|
|
|
public:
|
|
|
|
WebApplication();
|
|
|
|
~WebApplication();
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Wt::WServer> m_server;
|
2024-11-07 18:21:04 +08:00
|
|
|
std::unique_ptr<Wt::Dbo::SqlConnectionPool> m_blogSqlConnectionPool;
|
2024-10-30 23:59:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __WEBAPPLICATION_H__
|