DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
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
5
class
CServerInfo
;
6
class
IEngine
;
7
class
IStorage
;
8
class
IHttp
;
9
10
class
IServerBrowserHttp
11
{
12
public
:
13
virtual
~IServerBrowserHttp
() =
default
;
14
15
virtual
void
Shutdown
() = 0;
16
virtual
void
Update
() = 0;
17
18
virtual
bool
IsRefreshing
()
const
= 0;
19
virtual
bool
IsError
()
const
= 0;
20
virtual
void
Refresh
() = 0;
21
22
virtual
bool
GetBestUrl
(
const
char
**pBestUrl)
const
= 0;
23
24
virtual
int
NumServers
()
const
= 0;
25
virtual
const
CServerInfo
&
Server
(
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
CServerInfo
Definition
serverbrowser.h:27
IEngine
Definition
engine.h:15
IHttp
Definition
http.h:256
IServerBrowserHttp
Definition
serverbrowser_http.h:11
IServerBrowserHttp::IsError
virtual bool IsError() const =0
IServerBrowserHttp::NumServers
virtual int NumServers() const =0
IServerBrowserHttp::~IServerBrowserHttp
virtual ~IServerBrowserHttp()=default
IServerBrowserHttp::GetBestUrl
virtual bool GetBestUrl(const char **pBestUrl) const =0
IServerBrowserHttp::IsRefreshing
virtual bool IsRefreshing() const =0
IServerBrowserHttp::Shutdown
virtual void Shutdown()=0
IServerBrowserHttp::Update
virtual void Update()=0
IServerBrowserHttp::Server
virtual const CServerInfo & Server(int Index) const =0
IServerBrowserHttp::Refresh
virtual void Refresh()=0
IStorage
Definition
storage.h:21
CreateServerBrowserHttp
IServerBrowserHttp * CreateServerBrowserHttp(IEngine *pEngine, IStorage *pStorage, IHttp *pHttp, const char *pPreviousBestUrl)
Definition
serverbrowser_http.cpp:550
types.h
src
engine
client
serverbrowser_http.h
Generated by
1.18.0