Download only md5 of the server list if the list is still in the cache.

This commit is contained in:
lotodore
2008-04-29 22:46:27 +00:00
parent 3f544342a7
commit 4b04aedc3f
3 changed files with 201 additions and 45 deletions
+42
View File
@@ -124,6 +124,32 @@ protected:
ClientStateStartServerListDownload();
};
// State: Synchronizing server list.
class ClientStateSynchronizingServerList : public ClientState
{
public:
// Access the state singleton.
static ClientStateSynchronizingServerList &Instance();
virtual ~ClientStateSynchronizingServerList();
void SetDownloadHelper(DownloadHelper *helper);
// Poll for the completion of the download.
virtual int Process(ClientThread &client);
protected:
// Protected constructor - this is a singleton.
ClientStateSynchronizingServerList();
void Cleanup();
private:
DownloadHelper *m_downloadHelper;
};
// State: Downloading the server list.
class ClientStateDownloadingServerList : public ClientState
{
@@ -150,6 +176,22 @@ private:
DownloadHelper *m_downloadHelper;
};
// State: Reading the server list.
class ClientStateReadingServerList : public ClientState
{
public:
static ClientStateReadingServerList &Instance();
virtual ~ClientStateReadingServerList();
virtual int Process(ClientThread &client);
protected:
// Protected constructor - this is a singleton.
ClientStateReadingServerList();
};
// State: Initiate server connection.
class ClientStateStartConnect : public ClientState
{