TheChess

widgets/UserWidget.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_USEREWIDGET_HPP_
00011 #define THECHESS_WIDGETS_USEREWIDGET_HPP_
00012 
00013 #include <Wt/WCompositeWidget>
00014 #include <Wt/Dbo/ptr>
00015 namespace dbo = Wt::Dbo;
00016 #include "model/User.hpp"
00017 
00018 namespace Wt {
00019 class WContainerWidget;
00020 }
00021 
00022 namespace thechess {
00023 namespace widgets {
00024 
00025 using model::UserPtr;
00026 
00027 class UserWidgetImpl;
00028 
00029 class UserWidget : public Wt::WCompositeWidget {
00030 public:
00031     UserWidget(UserPtr user, Wt::WContainerWidget* parent=0);
00032 private:
00033     UserWidgetImpl* impl_;
00034 };
00035 
00036 }
00037 }
00038 
00039 #endif
 All Classes Functions Enumerations Enumerator