TheChess

widgets/GameCountdown.hpp

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_GAMECOUNTDOWN_HPP_
00011 #define THECHESS_WIDGETS_GAMECOUNTDOWN_HPP_
00012 
00013 #include <Wt/WViewWidget>
00014 
00015 #include "model/Game.hpp"
00016 
00017 namespace Wt {
00018 class WContainerWidget;
00019 }
00020 
00021 namespace thechess {
00022 
00023 namespace widgets {
00024 
00025 using model::GamePtr;
00026 
00027 class GameCountdown : public Wt::WViewWidget {
00028 public:
00029     GameCountdown(GamePtr game, Wt::WContainerWidget* parent=0);
00030 private:
00031     GamePtr game_;
00032 
00033     virtual Wt::WWidget* renderView();
00034 };
00035 
00036 }
00037 }
00038 
00039 #endif
 All Classes Functions Enumerations Enumerator