TheChess

widgets/CompetitionWidget.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_COMPETITION_WIDGET_HPP_
00011 #define THECHESS_WIDGETS_COMPETITION_WIDGET_HPP_
00012 
00013 #include <Wt/WContainerWidget>
00014 #include <Wt/WTemplate>
00015 
00016 #include "model/Competition.hpp"
00017 #include "ThechessApplication.hpp"
00018 
00019 namespace thechess {
00020 namespace widgets {
00021 
00022 class CompetitionWidget : public Wt::WTemplate, public Notifiable {
00023 public:
00024     CompetitionWidget(model::CompetitionPtr competition,
00025                       Wt::WContainerWidget* p=0);
00026 
00027     virtual void notify();
00028 
00029 private:
00030     model::CompetitionPtr c;
00031 
00032     void reprint_();
00033 };
00034 
00035 }
00036 }
00037 
00038 #endif
00039 
 All Classes Functions Enumerations Enumerator