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

void DCOptions::slotGetInterface (  )  [private, slot]

Definition at line 675 of file dcoptions.cpp.

Referenced by InitDocument().

{
      CSocket Socket;
      CList<CString> interfacelist;
      CString * s;
      QStringList lst;

      if ( Socket.GetInterfaceList(&interfacelist) > 0 )
      {
            s = 0;

            while( (s=interfacelist.Next(s)) != 0 )
            {
                  lst << s->Data();
            }
  
            bool ok = FALSE;

            QString res = QInputDialog::getItem(
                        tr( "Interface List" ),
                        tr( "Please select an interface" ), lst, 1, TRUE, &ok, this );

            if ( ok )
            {
                  LineEdit_IP->setText(res);
            }
      }
      else
      {
            QMessageBox::information( 0, "Valknut", QString(tr("No interfaces found!")));
      }
}


Generated by  Doxygen 1.6.0   Back to index