summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-03-29 13:14:21 -0600
committerJared Adams <jaxad0127@gmail.com>2010-03-29 19:09:18 -0600
commit43abf72c78b492fa1cd383dac3990ee331c217ef (patch)
tree8d353aefa21fe02cdba7ac015223b31ed33be956 /src/net/serverinfo.h
parent588148553eb41672147fb98d0e7ad558a8c2884c (diff)
downloadmana-43abf72c78b492fa1cd383dac3990ee331c217ef.tar.gz
mana-43abf72c78b492fa1cd383dac3990ee331c217ef.tar.bz2
mana-43abf72c78b492fa1cd383dac3990ee331c217ef.tar.xz
mana-43abf72c78b492fa1cd383dac3990ee331c217ef.zip
Add minimum version information to the server list
Use it to hilight entries that we don't meet. Also make the entries in that list higher, put server name and location on different lines, and use the description below the list. The dialog is also resizable now. Reviewed-by: Freeyorp
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r--src/net/serverinfo.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h
index 803bcc71..adfdee7e 100644
--- a/src/net/serverinfo.h
+++ b/src/net/serverinfo.h
@@ -41,13 +41,17 @@ public:
std::string hostname;
unsigned short port;
+ std::string description;
+
bool save;
+ bool meetsMinimumVersion;
ServerInfo()
{
type = UNKNOWN;
port = 0;
save = false;
+ meetsMinimumVersion = true;
}
ServerInfo(const ServerInfo &info)
@@ -56,7 +60,9 @@ public:
name = info.name;
hostname = info.hostname;
port = info.port;
+ description = info.description;
save = info.save;
+ meetsMinimumVersion = info.meetsMinimumVersion;
}
bool isValid() const
@@ -70,6 +76,9 @@ public:
name.clear();
hostname.clear();
port = 0;
+ description.clear();
+ save = false;
+ meetsMinimumVersion = true;
}
bool operator==(const ServerInfo &other) const