QTfrontend/netserver.h
changeset 335 751348947fce
parent 334 85eacbd9827f
child 338 d1e75dcd285f
equal deleted inserted replaced
334:85eacbd9827f 335:751348947fce
    19 #ifndef _NETSERVER_INCLUDED
    19 #ifndef _NETSERVER_INCLUDED
    20 #define _NETSERVER_INCLUDED
    20 #define _NETSERVER_INCLUDED
    21 
    21 
    22 #include <QObject>
    22 #include <QObject>
    23 #include <QList>
    23 #include <QList>
       
    24 #include <QMap>
    24 
    25 
    25 #include "team.h"
    26 #include "team.h"
    26 
    27 
    27 class HWNetServer;
    28 class HWNetServer;
    28 class QTcpSocket;
    29 class QTcpSocket;
    76 
    77 
    77  public:
    78  public:
    78   void StartServer();
    79   void StartServer();
    79   void StopServer();
    80   void StopServer();
    80   bool isChiefClient(HWConnectedClient* cl) const;
    81   bool isChiefClient(HWConnectedClient* cl) const;
    81   QStringList getGameCfg() const;
    82   QMap<QString, QString> getGameCfg() const;
    82   void sendAll(QString gameCfg);
    83   void sendAll(QString gameCfg);
    83   void sendOthers(HWConnectedClient* this_cl, QString gameCfg);
    84   void sendOthers(HWConnectedClient* this_cl, QString gameCfg);
    84   bool haveNick(const QString& nick) const;
    85   bool haveNick(const QString& nick) const;
    85   QString getRunningHostName() const;
    86   QString getRunningHostName() const;
    86   quint16 getRunningPort() const;
    87   quint16 getRunningPort() const;