Wt examples 3.1.10
/build/buildd/witty-3.1.10/examples/hangman/LoginWidget.h
Go to the documentation of this file.
00001 /* this is a -*-C++-*- file
00002  * Copyright (C) 2005 Wim Dumon
00003  *
00004  * See the LICENSE file for terms of use.
00005  */
00006 
00007 #ifndef LOGINWIDGET_H_
00008 #define LOGINWIDGET_H_
00009 
00010 #include <Wt/WContainerWidget>
00011 
00012 #include "Dictionary.h"
00013 
00014 namespace Wt {
00015   class WLineEdit;
00016   class WText;
00017   class WComboBox;
00018 }
00019 
00020 using namespace Wt;
00021 
00022 class LoginWidget : public WContainerWidget
00023 {
00024    public:
00025       LoginWidget(WContainerWidget *parent = 0);
00026 
00027       Wt::Signal<std::wstring, Dictionary> loginSuccessful;
00028 
00029    private:
00030       WText     *IntroText;
00031       WLineEdit *Username;
00032       WLineEdit *Password;
00033       WComboBox *Language;
00034 
00035       std::wstring User;
00036       Dictionary   Dict;
00037 
00038       void confirmLogin(const std::wstring text);
00039 
00040       void checkCredentials();
00041       void startPlaying();
00042 };
00043 
00044 #endif

Generated on Sat Dec 24 2011 for the C++ Web Toolkit (Wt) by doxygen 1.7.4