1#ifndef ENGINE_CLIENT_SERVERBROWSER_HTTP_H
2#define ENGINE_CLIENT_SERVERBROWSER_HTTP_H
3#include <base/types.h>
4
5class CServerInfo;
6class IEngine;
7class IStorage;
8class IHttp;
9
10class IServerBrowserHttp
11{
12public:
13 virtual ~IServerBrowserHttp() {}
14
15 virtual void Update() = 0;
16
17 virtual bool IsRefreshing() = 0;
18 virtual void Refresh() = 0;
19
20 virtual bool GetBestUrl(const char **pBestUrl) const = 0;
21
22 virtual int NumServers() const = 0;
23 virtual const CServerInfo &Server(int Index) const = 0;
24 virtual int NumLegacyServers() const = 0;
25 virtual const NETADDR &LegacyServer(int Index) const = 0;
26};
27
28IServerBrowserHttp *CreateServerBrowserHttp(IEngine *pEngine, IStorage *pStorage, IHttp *pHttp, const char *pPreviousBestUrl);
29#endif // ENGINE_CLIENT_SERVERBROWSER_HTTP_H
30