gui/dialogs/mp_method_selection.hpp

Go to the documentation of this file.
00001 /* $Id: mp_method_selection.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2008 - 2012 by Mark de Wever <koraq@xs4all.nl>
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_METHOD_SELECTION_HPP_INCLUDED
00017 #define GUI_DIALOGS_MP_METHOD_SELECTION_HPP_INCLUDED
00018 
00019 #include "gui/dialogs/dialog.hpp"
00020 
00021 namespace gui2 {
00022 
00023 class tmp_method_selection : public tdialog
00024 {
00025 public:
00026     tmp_method_selection() :
00027         user_name_(),
00028         choice_(-1)
00029     {}
00030 
00031     const std::string& user_name() const { return user_name_; }
00032 
00033     int get_choice() const { return choice_; }
00034 
00035 private:
00036 
00037     /** The name to use on the MP server. */
00038     std::string user_name_;
00039 
00040     /** The selected method to `connect' to the MP server. */
00041     int choice_;
00042 
00043     /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
00044     virtual const std::string& window_id() const;
00045 
00046     /** Inherited from tdialog. */
00047     void pre_show(CVideo& video, twindow& window);
00048 
00049     /** Inherited from tdialog. */
00050     void post_show(twindow& window);
00051 };
00052 
00053 } // namespace gui2
00054 
00055 #endif
 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