ManaPlus
|
#include <serverinfo.h>
Public Types | |
typedef std::pair< int, std::string > | VersionString |
Public Member Functions | |
ServerInfo () | |
ServerInfo (const ServerInfo &info) | |
ServerInfo & | operator= (const ServerInfo &info) |
bool | isValid () const |
void | clear () |
bool | operator== (const ServerInfo &other) const |
bool | operator!= (const ServerInfo &other) const |
Static Public Member Functions | |
static ServerTypeT | parseType (const std::string &serverType) |
static ServerFreeTypeT | parseFreeType (const std::string &serverFreeType) |
Data Fields | |
ServerTypeT | type |
ServerFreeTypeT | freeType |
std::string | name |
std::string | hostname |
std::string | althostname |
std::string | description |
std::string | registerUrl |
std::string | onlineListUrl |
std::string | supportUrl |
std::string | serverUrl |
std::string | defaultHostName |
std::vector< std::string > | updateMirrors |
std::vector< HostsGroup > | updateHosts |
std::vector< ServerUrlInfo > | freeSources |
std::vector< ServerUrlInfo > | nonFreeSources |
std::vector< ServerUrlInfo > | docs |
uint16_t | port |
VersionString | version |
int | packetVersion |
bool | save |
bool | persistentIp |
Definition at line 37 of file serverinfo.h.
typedef std::pair<int, std::string> ServerInfo::VersionString |
Definition at line 40 of file serverinfo.h.
|
inline |
|
inline |
|
inline |
Definition at line 157 of file serverinfo.h.
References althostname, defaultHostName, description, docs, freeSources, freeType, hostname, name, nonFreeSources, onlineListUrl, packetVersion, persistentIp, port, registerUrl, save, serverUrl, supportUrl, type, ServerFreeType::Unknown, ServerType::UNKNOWN, updateHosts, updateMirrors, and version.
|
inline |
Definition at line 150 of file serverinfo.h.
References hostname, port, type, and ServerType::UNKNOWN.
Referenced by ServerDialog::loadCustomServers(), and ServerDialog::saveCustomServers().
|
inline |
|
inline |
Definition at line 123 of file serverinfo.h.
References althostname, defaultHostName, description, docs, freeSources, freeType, hostname, Actions::info(), name, nonFreeSources, onlineListUrl, packetVersion, persistentIp, port, registerUrl, save, serverUrl, supportUrl, type, updateHosts, updateMirrors, and version.
|
inline |
|
inlinestatic |
Definition at line 214 of file serverinfo.h.
References compareStrI(), ServerFreeType::Free, ServerFreeType::NonFree, ServerFreeType::NotSet, and ServerFreeType::Unknown.
Referenced by ServerDialog::loadServers().
|
inlinestatic |
Definition at line 197 of file serverinfo.h.
References compareStrI(), ServerType::EATHENA, ServerType::EVOL2, ServerType::TMWATHENA, and ServerType::UNKNOWN.
Referenced by ServerDialog::loadCustomServers(), and ServerDialog::loadServers().
std::string ServerInfo::althostname |
Definition at line 46 of file serverinfo.h.
Referenced by Ea::LoginHandler::chooseServer(), clear(), Ea::Network::connect(), ServerDialog::connectToSelectedServer(), ServerDialog::loadServers(), operator=(), TmwAthena::CharServerRecv::processCharMapInfo(), and Ea::Network::realConnect().
std::string ServerInfo::defaultHostName |
Definition at line 52 of file serverinfo.h.
Referenced by clear(), ServerDialog::connectToSelectedServer(), ServerDialog::loadServers(), LoginDialog::mergeUpdateHosts(), and operator=().
std::string ServerInfo::description |
Definition at line 47 of file serverinfo.h.
Referenced by EditServerDialog::action(), clear(), ServerDialog::connectToSelectedServer(), EditServerDialog::EditServerDialog(), ServerDialog::loadCustomServers(), ServerDialog::loadServers(), operator=(), and ServerDialog::saveCustomServers().
std::vector<ServerUrlInfo> ServerInfo::docs |
Definition at line 57 of file serverinfo.h.
Referenced by clear(), ServerDialog::connectToSelectedServer(), ServerDialog::loadServers(), operator=(), and ServerInfoWindow::showServerInfo().
std::vector<ServerUrlInfo> ServerInfo::freeSources |
Definition at line 55 of file serverinfo.h.
Referenced by clear(), ServerDialog::connectToSelectedServer(), ServerDialog::loadServers(), loadServerSources(), operator=(), and ServerInfoWindow::showServerInfo().
ServerFreeTypeT ServerInfo::freeType |
Definition at line 43 of file serverinfo.h.
Referenced by clear(), ServerDialog::connectToSelectedServer(), ServersListModel::getElementAt(), ServerDialog::loadServers(), operator=(), and ServerInfoWindow::showServerInfo().
std::string ServerInfo::hostname |
Definition at line 45 of file serverinfo.h.
Referenced by EditServerDialog::action(), Ea::LoginHandler::chooseServer(), clear(), Ea::Network::connect(), ServerDialog::connectToSelectedServer(), EditServerDialog::EditServerDialog(), ServersListModel::getElementAt(), isValid(), ServerDialog::loadCustomServers(), ServerDialog::loadServers(), operator!=(), operator=(), operator==(), EAthena::CharServerRecv::processChangeMapServer(), TmwAthena::CharServerRecv::processChangeMapServer(), EAthena::CharServerRecv::processCharMapInfo(), TmwAthena::CharServerRecv::processCharMapInfo(), Ea::Network::realConnect(), ServerDialog::saveCustomServers(), and Client::stateConnectServer1().
std::string ServerInfo::name |
Definition at line 44 of file serverinfo.h.
Referenced by EditServerDialog::action(), clear(), ServerDialog::connectToSelectedServer(), EditServerDialog::EditServerDialog(), ServerDialog::loadCustomServers(), ServerDialog::loadServers(), operator!=(), operator=(), operator==(), and ServerDialog::saveCustomServers().
std::vector<ServerUrlInfo> ServerInfo::nonFreeSources |
Definition at line 56 of file serverinfo.h.
Referenced by clear(), ServerDialog::connectToSelectedServer(), ServerDialog::loadServers(), loadServerSources(), operator=(), and ServerInfoWindow::showServerInfo().
std::string ServerInfo::onlineListUrl |
Definition at line 49 of file serverinfo.h.
Referenced by EditServerDialog::action(), clear(), ServerDialog::connectToSelectedServer(), EditServerDialog::EditServerDialog(), ServerDialog::loadCustomServers(), ServerDialog::loadServers(), operator=(), ServerDialog::saveCustomServers(), and Client::stateConnectServer1().
int ServerInfo::packetVersion |
Definition at line 60 of file serverinfo.h.
Referenced by EditServerDialog::action(), clear(), ServerDialog::connectToSelectedServer(), EditServerDialog::EditServerDialog(), ServerDialog::loadCustomServers(), ServerDialog::loadServers(), operator=(), ServerDialog::saveCustomServers(), and Client::stateConnectServer1().
bool ServerInfo::persistentIp |
Definition at line 62 of file serverinfo.h.
Referenced by EditServerDialog::action(), clear(), ServerDialog::connectToSelectedServer(), EditServerDialog::EditServerDialog(), ServerDialog::loadCustomServers(), ServerDialog::loadServers(), operator=(), ServerDialog::saveCustomServers(), and Client::stateConnectServer1().
uint16_t ServerInfo::port |
Definition at line 58 of file serverinfo.h.
Referenced by EditServerDialog::action(), Ea::LoginHandler::chooseServer(), clear(), Ea::Network::connect(), ServerDialog::connectToSelectedServer(), EditServerDialog::EditServerDialog(), isValid(), ServerDialog::loadCustomServers(), ServerDialog::loadServers(), operator!=(), operator=(), operator==(), EAthena::CharServerRecv::processChangeMapServer(), TmwAthena::CharServerRecv::processChangeMapServer(), EAthena::CharServerRecv::processCharMapInfo(), TmwAthena::CharServerRecv::processCharMapInfo(), Ea::Network::realConnect(), and ServerDialog::saveCustomServers().
std::string ServerInfo::registerUrl |
Definition at line 48 of file serverinfo.h.
Referenced by clear(), ServerDialog::connectToSelectedServer(), ServerDialog::loadServers(), operator=(), ServerInfoWindow::showServerInfo(), and Client::stateConnectServer1().
bool ServerInfo::save |
Definition at line 61 of file serverinfo.h.
Referenced by EditServerDialog::action(), clear(), ServerDialog::connectToSelectedServer(), ServerDialog::loadCustomServers(), operator=(), and ServerDialog::saveCustomServers().
std::string ServerInfo::serverUrl |
Definition at line 51 of file serverinfo.h.
Referenced by clear(), ServerDialog::connectToSelectedServer(), ServerDialog::loadServers(), operator=(), and ServerInfoWindow::showServerInfo().
std::string ServerInfo::supportUrl |
Definition at line 50 of file serverinfo.h.
Referenced by clear(), ServerDialog::connectToSelectedServer(), ServerDialog::loadServers(), operator=(), ServerInfoWindow::showServerInfo(), Client::stateConnectServer1(), and Client::unloadData().
ServerTypeT ServerInfo::type |
Definition at line 42 of file serverinfo.h.
Referenced by EditServerDialog::action(), clear(), ServerDialog::connectToSelectedServer(), Net::connectToServer(), EditServerDialog::EditServerDialog(), isValid(), ServerDialog::loadCustomServers(), ServerDialog::loadServers(), operator=(), and ServerDialog::saveCustomServers().
std::vector<HostsGroup> ServerInfo::updateHosts |
Definition at line 54 of file serverinfo.h.
Referenced by clear(), ServerDialog::connectToSelectedServer(), loadHostsGroup(), ServerDialog::loadServers(), LoginDialog::LoginDialog(), LoginDialog::mergeUpdateHosts(), operator=(), LoginDialog::prepareUpdate(), and UpdateListModel::UpdateListModel().
std::vector<std::string> ServerInfo::updateMirrors |
Definition at line 53 of file serverinfo.h.
Referenced by clear(), ServerDialog::connectToSelectedServer(), ServerDialog::loadServers(), operator=(), and Client::stateConnectServer1().
VersionString ServerInfo::version |
Definition at line 59 of file serverinfo.h.
Referenced by clear(), ServerDialog::loadServers(), operator=(), and ServerInfo().