#ifndef __SESSION_H__ #define __SESSION_H__ #include "HomeBox.h" #include "Task.h" #include "User.h" #include #include #include "VisitorRecord.h" using UserDatabase = Wt::Auth::Dbo::UserDatabase; class Session : public Wt::Dbo::Session { public: Session(Wt::Dbo::SqlConnectionPool &connectionPool); ~Session(); Wt::Dbo::ptr user() const; Wt::Auth::AbstractUserDatabase &users(); Wt::Auth::Login &login(); private: std::unique_ptr m_users; Wt::Auth::Login m_login; }; #endif // __SESSION_H__