gui/dialogs/addon_connect.hpp

Go to the documentation of this file.
00001 /* $Id: addon_connect.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_ADDON_CONNECT_HPP_INCLUDED
00017 #define GUI_DIALOGS_ADDON_CONNECT_HPP_INCLUDED
00018 
00019 #include "gui/dialogs/dialog.hpp"
00020 
00021 namespace gui2 {
00022 
00023 /** Addon connect dialog. */
00024 class taddon_connect
00025     : public tdialog
00026 {
00027 public:
00028     /**
00029      * Constructor.
00030      *
00031      * @param host_name [in]      The initial value for the host_name.
00032      * @param host_name [out]     The final value of the host_name if the
00033      *                            dialog returns @ref twindow::OK or 3
00034      *                            undefined otherwise.
00035      * @param allow_updates       Sets @ref allow_updates_.
00036      * @param allow_remove        Sets @ref allow_remove_.
00037      */
00038     taddon_connect(std::string& host_name
00039             , const bool allow_updates
00040             , const bool allow_remove);
00041 
00042 private:
00043 
00044     /** Enable the update addon button? */
00045     bool allow_updates_;
00046 
00047     /** Enable the addon remove button? */
00048     bool allow_remove_;
00049 
00050     /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
00051     virtual const std::string& window_id() const;
00052 
00053     /** Inherited from tdialog. */
00054     void pre_show(CVideo& video, twindow& window);
00055 
00056     /** Inherited from tdialog. */
00057     void post_show(twindow& window);
00058 };
00059 
00060 } // namespace gui2
00061 
00062 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Tue May 22 2012 01:03:50 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs