#ifndef __WEBAPPLICATION_H__ #define __WEBAPPLICATION_H__ #include #include "Singleton.h" namespace Wt { class WServer; namespace Dbo { class SqlConnectionPool; } namespace Auth { class AuthService; class PasswordService; } // namespace Auth }; // namespace Wt class WebApplication { friend class Amass::Singleton; public: ~WebApplication(); void initializeAuthenticationService(); const Wt::Auth::AuthService &authService(); const Wt::Auth::PasswordService &passwordService(); protected: WebApplication(); private: std::unique_ptr m_server; std::unique_ptr m_blogSqlConnectionPool; std::unique_ptr m_authService; std::unique_ptr m_passwordService; }; #endif // __WEBAPPLICATION_H__