ManaPlus
|
#include "gui/windows/updaterwindow.h"
#include "client.h"
#include "configuration.h"
#include "main.h"
#include "settings.h"
#include "enums/gui/layouttype.h"
#include "fs/files.h"
#include "fs/mkdir.h"
#include "fs/paths.h"
#include "fs/virtfs/fs.h"
#include "gui/widgets/button.h"
#include "gui/widgets/containerplacer.h"
#include "gui/widgets/itemlinkhandler.h"
#include "gui/widgets/label.h"
#include "gui/widgets/layout.h"
#include "gui/widgets/progressbar.h"
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/staticbrowserbox.h"
#include "net/download.h"
#include "net/updatetypeoperators.h"
#include "resources/db/moddb.h"
#include "utils/delete2.h"
#include "utils/foreach.h"
#include "utils/gettext.h"
#include <sys/stat.h>
#include <fstream>
#include <sstream>
#include "debug.h"
Go to the source code of this file.
Functions | |
const std::string | xmlUpdateFile ("resources.xml") |
const std::string | txtUpdateFile ("resources2.txt") |
const std::string | updateServer2 ("http://download.manaplus.org/manaplus/updates/") |
const std::string | updateServer3 ("http://download2.manaplus.org/manaplus/updates/") |
const std::string | updateServer4 ("http://download.evolonline.org/manaplus/updates/") |
const std::string | updateServer5 ("http://download3.manaplus.org/manaplus/updates/") |
static std::vector< UpdateFile > | loadXMLFile (const std::string &fileName, const bool loadMods) |
static std::vector< UpdateFile > | loadTxtFile (const std::string &fileName) |
Variables | |
UpdaterWindow * | updaterWindow = 0 |
|
static |
Definition at line 134 of file updaterwindow.cpp.
References checkPath(), UpdateFile::desc, fileName, UpdateFile::group, UpdateFile::hash, Logger::log(), logger, UpdateFile::name, UpdateFile::required, and UpdateFile::type.
Referenced by UpdaterWindow::loadLocalUpdates(), UpdaterWindow::loadUpdates(), UpdaterWindow::logic(), and UpdaterWindow::unloadUpdates().
|
static |
Load the given file into a vector of updateFiles.
Definition at line 80 of file updaterwindow.cpp.
References CHECK_VERSION, checkPath(), UpdateFile::desc, fileName, for_each_xml_child_node, XML::getProperty(), UpdateFile::group, UpdateFile::hash, Logger::log(), logger, UpdateFile::name, UpdateFile::required, XML::Document::rootNode(), SkipError_false, UpdateFile::type, and UseVirtFs_false.
Referenced by UpdaterWindow::loadLocalUpdates(), UpdaterWindow::loadManaPlusUpdates(), UpdaterWindow::loadMods(), UpdaterWindow::loadUpdates(), UpdaterWindow::logic(), UpdaterWindow::unloadManaPlusUpdates(), and UpdaterWindow::unloadUpdates().
const std::string txtUpdateFile | ( | "resources2.txt" | ) |
const std::string updateServer2 | ( | "http://download.manaplus.org/manaplus/updates/" | ) |
Referenced by UpdaterWindow::logic().
const std::string updateServer3 | ( | "http://download2.manaplus.org/manaplus/updates/" | ) |
Referenced by UpdaterWindow::download().
const std::string updateServer4 | ( | "http://download.evolonline.org/manaplus/updates/" | ) |
Referenced by UpdaterWindow::download().
const std::string updateServer5 | ( | "http://download3.manaplus.org/manaplus/updates/" | ) |
Referenced by UpdaterWindow::download().
const std::string xmlUpdateFile | ( | "resources.xml" | ) |
UpdaterWindow* updaterWindow = 0 |
Definition at line 64 of file updaterwindow.cpp.
Referenced by DialogsManager::createUpdaterWindow(), and UpdaterWindow::deleteSelf().