gui/dialogs/mp_create_game_set_password.hpp

Go to the documentation of this file.
00001 /* $Id: mp_create_game_set_password.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2010 - 2012 by Ignacio Riquelme Morelle <shadowm2006@gmail.com>
00004    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY.
00012 
00013    See the COPYING file for more details.
00014 */
00015 
00016 #ifndef GUI_DIALOGS_MP_CREATE_GAME_SET_PASSWORD_HPP_INCLUDED
00017 #define GUI_DIALOGS_MP_CREATE_GAME_SET_PASSWORD_HPP_INCLUDED
00018 
00019 #include "gui/dialogs/dialog.hpp"
00020 
00021 namespace gui2 {
00022 
00023 class tmp_create_game_set_password : public tdialog
00024 {
00025 public:
00026 
00027     /**
00028      * Constructor.
00029      *
00030      * @param password [in]       The initial value for the password.
00031      * @param password [out]      The password selected by the user if the
00032      *                            dialog returns @ref twindow::OK undefined
00033      *                            otherwise.
00034      */
00035     explicit tmp_create_game_set_password(std::string& password);
00036 
00037     /** The excute function see @ref tdialog for more information. */
00038     static bool execute(std::string& password, CVideo& video)
00039     {
00040         return tmp_create_game_set_password(password).show(video);
00041     }
00042 
00043 private:
00044 
00045     /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
00046     virtual const std::string& window_id() const;
00047 };
00048 
00049 } // namespace gui2
00050 
00051 #endif /* ! GUI_DIALOGS_MP_CREATE_GAME_SET_PASSWORD_HPP_INCLUDED */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:02:58 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs