summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-12 23:59:57 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-12 23:59:57 +0300
commit28c6adc21db25de911fddc48912a61b101bfae84 (patch)
tree7dafa14cbbe0c7b51a9aec5e97ec11c888f349be /src/net/serverinfo.h
parent5546a30788216ca9bab885cc97744ef8240dc32f (diff)
downloadmv-28c6adc21db25de911fddc48912a61b101bfae84.tar.gz
mv-28c6adc21db25de911fddc48912a61b101bfae84.tar.bz2
mv-28c6adc21db25de911fddc48912a61b101bfae84.tar.xz
mv-28c6adc21db25de911fddc48912a61b101bfae84.zip
Load sources url list for each server from servers list xml.
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r--src/net/serverinfo.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index e83e51b56..ab4a99081 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -27,6 +27,7 @@
#include "enums/net/servertype.h"
#include "net/hostsgroup.h"
+#include "net/serverurlinfo.h"
#include "utils/stringutils.h"
@@ -49,6 +50,8 @@ class ServerInfo final
std::string defaultHostName;
std::vector<std::string> updateMirrors;
std::vector<HostsGroup> updateHosts;
+ std::vector<ServerUrlInfo> freeSources;
+ std::vector<ServerUrlInfo> nonFreeSources;
uint16_t port;
VersionString version;
int packetVersion;
@@ -68,6 +71,8 @@ class ServerInfo final
defaultHostName(),
updateMirrors(),
updateHosts(),
+ freeSources(),
+ nonFreeSources(),
#ifdef TMWA_SUPPORT
port(6901),
#else // TMWA_SUPPORT
@@ -94,6 +99,8 @@ class ServerInfo final
defaultHostName(info.defaultHostName),
updateMirrors(info.updateMirrors),
updateHosts(info.updateHosts),
+ freeSources(info.freeSources),
+ nonFreeSources(info.nonFreeSources),
port(info.port),
version(),
packetVersion(info.packetVersion),
@@ -120,6 +127,8 @@ class ServerInfo final
defaultHostName = info.defaultHostName;
updateMirrors = info.updateMirrors;
updateHosts = info.updateHosts;
+ freeSources = info.freeSources;
+ nonFreeSources = info.nonFreeSources;
port = info.port;
save = info.save;
persistentIp = info.persistentIp;
@@ -150,6 +159,8 @@ class ServerInfo final
defaultHostName.clear();
updateMirrors.clear();
updateHosts.clear();
+ freeSources.clear();
+ nonFreeSources.clear();
version.first = 0;
version.second.clear();
packetVersion = 0;