Logo Search packages:      
Sourcecode: qtsmbstatus version File versions  Download package

void ClientSocket::infoserver ( const QString &  text  )  [private]

Receive informations from server (right for current client)

Parameters:
text client's right:
	0000 0001 : permit client to disconnect an user
	0000 0010 : permit client to send popup messages (popupwindows)
	

Definition at line 175 of file clientsocket.cpp.

References permitDisconnectUser, and permitSendMsg.

Referenced by core(), and slot_pam().

{
      debugQt("ClientSocket::infoserver()");
      bool ok;
      permitDisconnectUser=false;
      permitSendMsg=false;
      int value = (text.mid(text.find("]")+1)).toInt(&ok);
      debugQt("Info Serveur : "+QString::number(value));
      if ( ok )
      {
            if (value & 1) permitDisconnectUser=true;
            if (value & 2) permitSendMsg=true;
      }
}


Generated by  Doxygen 1.6.0   Back to index