gui/dialogs/mp_cmd_wrapper.hpp

Go to the documentation of this file.
00001 /* $Id: mp_cmd_wrapper.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2009 - 2012 by Thomas Baumhauer <thomas.baumhauer@NOSPAMgmail.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_CMD_WRAPPER_HPP_INCLUDED
00017 #define GUI_DIALOGS_MP_CMD_WRAPPER_HPP_INCLUDED
00018 
00019 #include "gui/dialogs/dialog.hpp"
00020 #include "tstring.hpp"
00021 
00022 namespace gui2 {
00023 
00024 class tmp_cmd_wrapper : public tdialog
00025 {
00026 public:
00027 
00028     /**
00029      * Constructor.
00030      *
00031      * The text which shows the selected user.
00032      */
00033     explicit tmp_cmd_wrapper(const t_string& user);
00034 
00035     /***** ***** ***** setters / getters for members ***** ****** *****/
00036 
00037     const std::string& message() const { return message_; }
00038     const std::string& reason() const { return reason_; }
00039     const std::string& time() const { return time_; }
00040 
00041 private:
00042 
00043     /** The message to send to another user. */
00044     std::string message_;
00045 
00046     /** The reason for an action; kick, ban. */
00047     std::string reason_;
00048 
00049     /** The duration of a ban. */
00050     std::string time_;
00051 
00052     /** Inherited from tdialog. */
00053     void pre_show(CVideo& video, twindow& window);
00054 
00055     /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
00056     virtual const std::string& window_id() const;
00057 };
00058 
00059 } // namespace gui2
00060 
00061 #endif // GUI_DIALOGS_MP_CMD_WRAPPER_HPP_INCLUDED
00062 
 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