DDraceNetwork Docs
serverbrowser_http.h
Go to the documentation of this file.
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
11{
12public:
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};
25
26IServerBrowserHttp *CreateServerBrowserHttp(IEngine *pEngine, IStorage *pStorage, IHttp *pHttp, const char *pPreviousBestUrl);
27#endif // ENGINE_CLIENT_SERVERBROWSER_HTTP_H
Definition: serverbrowser.h:23
Definition: engine.h:15
Definition: http.h:12
Definition: serverbrowser_http.h:11
virtual int NumServers() const =0
virtual ~IServerBrowserHttp()
Definition: serverbrowser_http.h:13
virtual bool IsRefreshing()=0
virtual bool GetBestUrl(const char **pBestUrl) const =0
virtual void Update()=0
virtual const CServerInfo & Server(int Index) const =0
virtual void Refresh()=0
Definition: storage.h:20
IServerBrowserHttp * CreateServerBrowserHttp(IEngine *pEngine, IStorage *pStorage, IHttp *pHttp, const char *pPreviousBestUrl)
Definition: serverbrowser_http.cpp:532