The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
addon_server_info.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2024 - 2025
3 Part of the Battle for Wesnoth Project https://www.wesnoth.org/
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY.
11
12 See the COPYING file for more details.
13*/
14
15#pragma once
16
17#include "addon/client.hpp"
18
20
21namespace gui2::dialogs
22{
23
25{
26public:
27 addon_server_info(addons_client& client, const std::string& addon, bool& needs_refresh);
28
30
31private:
32 virtual const std::string& window_id() const override;
33
34 virtual void pre_show() override;
35
36 virtual void post_show() override;
37
40 void admin_delete_addon();
41 void admin_hide_addon();
42 void admin_unhide_addon();
43 void admin_list_hidden();
44
46 const std::string& addon_;
48};
49
50} // namespace gui2::dialogs
Add-ons (campaignd) client class.
Definition client.hpp:41
virtual void pre_show() override
Actions to be taken before showing the window.
virtual void post_show() override
Actions to be taken after the window has been shown.
virtual const std::string & window_id() const override
The ID of the window to build.
Abstract base class for all modal dialogs.
Networked add-ons (campaignd) client interface.
#define DEFINE_SIMPLE_EXECUTE_WRAPPER(dialog)
Adds a bare-bonesstatic execute function to a dialog class that immediately invokes and return the re...