diff options
Diffstat (limited to 'src/gui/serverdialog.h')
-rw-r--r-- | src/gui/serverdialog.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h index 673ee97c..5b9d53fd 100644 --- a/src/gui/serverdialog.h +++ b/src/gui/serverdialog.h @@ -51,6 +51,8 @@ class DropDown; class ServersListModel : public gcn::ListModel { public: + typedef std::pair<int, std::string> VersionString; + ServersListModel(ServerInfos *servers, ServerDialog *parent); /** @@ -69,8 +71,18 @@ class ServersListModel : public gcn::ListModel const ServerInfo &getServer(int elementIndex) const { return mServers->at(elementIndex); } + const VersionString &getVersionString(int index) const + { return mVersionStrings[index]; } + + void setVersionString(int index, const std::string &version); + + void addServer(const ServerInfo &info, const std::string &version); + private: + typedef std::vector<VersionString> VersionStrings; + ServerInfos *mServers; + VersionStrings mVersionStrings; ServerDialog *mParent; }; |