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

void ClientSocket::slotDisconnectUser (  )  [private, slot]

Disconnect an user

See also:

Definition at line 545 of file clientsocket.cpp.

References user::pid, sendToServer(), and user::username.

Referenced by slotPopupMenu().

      QString username;
      QString pid;
      // if object is dead
      if (!Q3ListViewItemList.contains(currentPopupMenuItem)) return;

      user* Item=dynamic_cast<user *>(currentPopupMenuItem);
      if (!Item) return;
      // get PID

      // get user name

      if ( !QMessageBox::information(0,"QtSmbstatus",
            tr("Do you really want to disconnect user %1 ?").arg(username),
            tr("&Yes"), tr("&No"),QString::null, 1, 1 ) )
            // if object is dead
            if (!Q3ListViewItemList.contains(currentPopupMenuItem)) return;

            if (!ssl_connected) return;

Generated by  Doxygen 1.6.0   Back to index