#ifndef __BLOGSESSION_H__ #define __BLOGSESSION_H__ #include "BlogUserDatabase.h" #include #include #include #include class Comment; class BlogSession : public Wt::Dbo::Session { public: BlogSession(Wt::Dbo::SqlConnectionPool &connectionPool); static void configureAuth(); static std::unique_ptr createConnectionPool(const std::string &sqlite3); Wt::Auth::Login &login() { return m_login; } Wt::Dbo::ptr user() const; Wt::Signal> &commentsChanged(); BlogUserDatabase &users() { return m_users; } Wt::Auth::PasswordService *passwordAuth() const; const std::vector &oAuth() const; private: Wt::Dbo::SqlConnectionPool &m_connectionPool; BlogUserDatabase m_users; Wt::Auth::Login m_login; Wt::Signal> m_commentsChanged; }; #endif // __BLOGSESSION_H__