QTfrontend/netserver.h
changeset 334 85eacbd9827f
parent 326 c6718bfdd642
child 335 751348947fce
--- a/QTfrontend/netserver.h	Sun Jan 14 19:47:11 2007 +0000
+++ b/QTfrontend/netserver.h	Sun Jan 14 20:46:17 2007 +0000
@@ -47,7 +47,7 @@
   QString getHedgehogsDescription() const;
 
   bool readyToStart;
-  QStringList gameCfg;
+  QMap<QString, QString> m_gameCfg;
   class ShouldDisconnectException {};
 
   QString client_nick;
@@ -78,6 +78,7 @@
   void StartServer();
   void StopServer();
   bool isChiefClient(HWConnectedClient* cl) const;
+  QStringList getGameCfg() const;
   void sendAll(QString gameCfg);
   void sendOthers(HWConnectedClient* this_cl, QString gameCfg);
   bool haveNick(const QString& nick) const;
@@ -89,6 +90,7 @@
   QString prepareConfig(QStringList lst);
 
  private:
+  HWConnectedClient* getChiefClient() const;
   static const quint16 ds_port;
   QTcpServer* IPCServer;
   QList<HWConnectedClient*> connclients;