1 | #ifndef ENGINE_CLIENT_SERVERBROWSER_HTTP_H |
2 | #define ENGINE_CLIENT_SERVERBROWSER_HTTP_H |
3 | #include <base/types.h> |
4 | |
5 | class CServerInfo; |
6 | class IEngine; |
7 | class IStorage; |
8 | class IHttp; |
9 | |
10 | class IServerBrowserHttp |
11 | { |
12 | public: |
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 | |
28 | IServerBrowserHttp *CreateServerBrowserHttp(IEngine *pEngine, IStorage *pStorage, IHttp *pHttp, const char *pPreviousBestUrl); |
29 | #endif // ENGINE_CLIENT_SERVERBROWSER_HTTP_H |
30 | |