2018-07-11 20:46:04 +00:00
|
|
|
#ifndef ENGINE_CLIENT_SERVERBROWSER_HTTP_H
|
|
|
|
#define ENGINE_CLIENT_SERVERBROWSER_HTTP_H
|
|
|
|
#include <base/system.h>
|
|
|
|
|
|
|
|
class CServerInfo;
|
2021-05-13 00:46:28 +00:00
|
|
|
class IConsole;
|
2018-07-11 20:46:04 +00:00
|
|
|
class IEngine;
|
2021-05-13 00:46:28 +00:00
|
|
|
class IStorage;
|
2018-07-11 20:46:04 +00:00
|
|
|
|
|
|
|
class IServerBrowserHttp
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~IServerBrowserHttp() {}
|
|
|
|
|
|
|
|
virtual void Update() = 0;
|
|
|
|
|
|
|
|
virtual bool IsRefreshing() = 0;
|
|
|
|
virtual void Refresh() = 0;
|
|
|
|
|
2021-05-13 00:46:28 +00:00
|
|
|
virtual bool GetBestUrl(const char **pBestUrl) const = 0;
|
|
|
|
|
2018-07-11 20:46:04 +00:00
|
|
|
virtual int NumServers() const = 0;
|
|
|
|
virtual const NETADDR &ServerAddress(int Index) const = 0;
|
|
|
|
virtual void Server(int Index, NETADDR *pAddr, CServerInfo *pInfo) const = 0;
|
|
|
|
virtual int NumLegacyServers() const = 0;
|
|
|
|
virtual const NETADDR &LegacyServer(int Index) const = 0;
|
|
|
|
};
|
|
|
|
|
2021-05-13 00:46:28 +00:00
|
|
|
IServerBrowserHttp *CreateServerBrowserHttp(IEngine *pEngine, IConsole *pConsole, IStorage *pStorage, const char *pPreviousBestUrl);
|
2018-07-11 20:46:04 +00:00
|
|
|
#endif // ENGINE_CLIENT_SERVERBROWSER_HTTP_H
|