QTfrontend/newnetclient.cpp
changeset 453 4b1236759402
parent 448 e968e19a464c
child 455 925891c52e40
equal deleted inserted replaced
452:45fbb9df0c99 453:4b1236759402
   157     emit Connected();
   157     emit Connected();
   158     emit EnteredGame();
   158     emit EnteredGame();
   159     return;
   159     return;
   160   }
   160   }
   161 
   161 
       
   162   if (lst[0] == "CHAT_STRING") {
       
   163     lst.pop_front();
       
   164     if(lst.size() < 2) return;
       
   165     emit chatStringFromNet(lst);
       
   166     return;
       
   167   }
       
   168 
   162   if (lst[0] == "ADDTEAM:") {
   169   if (lst[0] == "ADDTEAM:") {
   163     lst.pop_front();
   170     lst.pop_front();
   164     emit AddNetTeam(lst);
   171     emit AddNetTeam(lst);
   165     return;
   172     return;
   166   }
   173   }
   342 
   349 
   343 void HWNewNet::onFortsModeChanged(bool value)
   350 void HWNewNet::onFortsModeChanged(bool value)
   344 {
   351 {
   345   RawSendNet(QString("CONFIG_PARAM%1FORTSMODE%1%2").arg(delimeter).arg(value));
   352   RawSendNet(QString("CONFIG_PARAM%1FORTSMODE%1%2").arg(delimeter).arg(value));
   346 }
   353 }
       
   354 
       
   355 void HWNewNet::chatLineToNet(const QString& str)
       
   356 {
       
   357   if(str!="") {
       
   358     RawSendNet(QString("CHAT_STRING")+delimeter+mynick+delimeter+str);
       
   359     emit(chatStringFromNet(QStringList(mynick) << str));
       
   360   }
       
   361 }