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

void ClientSocket::slot_smbstatus ( const QStringList &  rcv_smb  )  [private, slot]

Slot : Receive smbstatus reply.

Definition at line 470 of file clientsocket.cpp.

References sendToClient().

Referenced by CmdSmbRq().

{

      debugQt("ClientSocket::slot_smbstatus()");
      QString ligne;
      QString toSend="";
      bool start=true;
      int taille=0;
      QStringList data = rcv_smb;

      QStringList::Iterator it = data.begin();
      while ( it != data.end())
      {
            if (start==true)
            { // first time
                  start=false;
            }
            else
            { // else, send [smb_data]
                  toSend+="\n["+QString::number(smb_data)+"]";
            }

            ligne = *it; // read one line
            toSend+=ligne;
            taille=toSend.length (); // calculate size

            ++it;
            // if size > 2048 char or if it's the end of stringlist, send data
            if ((taille>2048) || (it == data.end()))
            {
                  sendToClient(smb_data,toSend);
                  toSend="";
                  taille=0;
                  start=true;
            }
      }
      sendToClient(end_smb_rq); // end of smbstatus reply. All data has been sent
}


Generated by  Doxygen 1.6.0   Back to index