TheChess
|
00001 /* 00002 * thechess, chess game web application written in C++ and based on Wt 00003 * Copyright (C) 2010 Boris Nagaev 00004 * 00005 * thechess is licensed under the GNU GPL Version 2. 00006 * Other versions of the GPL do not apply. 00007 * See the LICENSE file for terms of use. 00008 */ 00009 00010 #ifndef THECHESS_THECHESS_SESSION_H_ 00011 #define THECHESS_THECHESS_SESSION_H_ 00012 00013 #include <Wt/Dbo/Session> 00014 #include <Wt/Dbo/ptr> 00015 #include <Wt/WSignal> 00016 #include <Wt/Dbo/SqlConnection> 00017 #include <Wt/Dbo/FixedSqlConnectionPool> 00018 00019 #include "ThechessOptions.hpp" 00020 00021 namespace dbo = Wt::Dbo; 00022 00023 namespace thechess { 00024 00025 class TaskTracker; 00026 00027 class ThechessSession : public dbo::Session { 00028 public: 00029 ThechessSession(dbo::FixedSqlConnectionPool& pool); 00030 void reconsider(TaskTracker& tracker); 00031 static dbo::SqlConnection* new_connection(const ThechessOptions& options); 00032 }; 00033 00034 } 00035 00036 #endif // THECHESS_THECHESS_SESSION_H_ 00037