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_WIDGETS_GAMEWIDGET_HPP_ 00011 #define THECHESS_WIDGETS_GAMEWIDGET_HPP_ 00012 00013 #include <Wt/WCompositeWidget> 00014 #include <Wt/Dbo/ptr> 00015 namespace dbo = Wt::Dbo; 00016 #include "model/Game.hpp" 00017 00018 namespace Wt { 00019 class WContainerWidget; 00020 } 00021 00022 namespace thechess { 00023 namespace widgets { 00024 00025 using model::GamePtr; 00026 00027 class GameWidgetImpl; 00028 00029 class GameWidget : public Wt::WCompositeWidget { 00030 public: 00031 GameWidget(GamePtr game, Wt::WContainerWidget* parent=0); 00032 private: 00033 GameWidgetImpl* impl_; 00034 }; 00035 00036 } 00037 } 00038 00039 #endif