publish_campaign.hpp

Go to the documentation of this file.
00001 /* $Id: publish_campaign.hpp 23842 2008-02-16 08:47:16Z mordante $ */
00002 /*
00003    Copyright (C) 2003 - 2008 by David White <dave@whitevine.net>
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 version 2
00008    or at your option any later version.
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY.
00011 
00012    See the COPYING file for more details.
00013 */
00014 
00015 #ifndef PUBLISH_CAMPAIGN_HPP_INCLUDED
00016 #define PUBLISH_CAMPAIGN_HPP_INCLUDED
00017 
00018 class config;
00019 
00020 #include <string>
00021 #include <vector>
00022 
00023 void get_campaign_info(const std::string& campaign_name, class config& cfg);
00024 void set_campaign_info(const std::string& campaign_name, const class config& cfg);
00025 
00026 std::vector<std::string> available_campaigns();
00027 std::vector<std::string> installed_campaigns();
00028 void archive_campaign(const std::string& campaign_name, class config& cfg);
00029 void unarchive_campaign(const class config& cfg);
00030 
00031 bool campaign_name_legal(const std::string& name);
00032 bool check_names_legal(const config& dir);
00033 std::vector<config *> find_scripts(const config &cfg, std::string extension);
00034 
00035 #endif

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs