Added GUI as parameter for client thread constructor. Fixed linux header for getaddrinfo.

This commit is contained in:
lotodore
2007-02-18 00:10:26 +00:00
parent 296399f166
commit fc25ae5a8b
4 changed files with 18 additions and 6 deletions
+5 -2
View File
@@ -27,11 +27,12 @@
class ClientData;
class ClientState;
class GuiInterface;
class ClientThread : public Thread
{
public:
ClientThread();
ClientThread(GuiInterface &gui);
virtual ~ClientThread();
// Set the parameters. Does not do any error checking.
@@ -47,13 +48,15 @@ protected:
const ClientData &GetData() const;
ClientData &GetData();
ClientState &GetState();
void SetState(ClientState &newState);
private:
std::auto_ptr<ClientData> m_data;
ClientState *m_curState;
GuiInterface &m_gui;
friend class ClientStateInit;
friend class ClientStateResolve;