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

void KPureftpdScript::slotAuthAdd (  )  [protected, slot]

Add new authentication in the authentication list bellow the current element in the list. If the method is "unix" or "pam", the "authFile" content is ignored. It also set the editor buttons (Add, Modify, Delete) and Up and Down buttons such that only relevant buttons will be enabled.

Definition at line 873 of file kcmpureftpdscript.cpp.

References script, and ui.

Referenced by KPureftpdScript().

                                  {
  KListViewItem *tmp = new KListViewItem(ui->authList,ui->authList->currentItem());
  tmp->setText(0,ui->authMethod->currentText());

  if (script->authMethods()[ui->authMethod->currentText()] == Script::NoPath) {
      tmp->setText(1,QString::null);
  } else if (script->authMethods()[ui->authMethod->currentText()] == Script::WithPath) {
      tmp->setText(1,ui->authFile->url());
  } else {
    kdFatal() << "slotAuthAdd: unknow AuthMethodOption" << endl;
  }

  ui->authList->setCurrentItem(tmp);
  ui->authList->setSelected(ui->authList->currentItem(),true);
  setAuthEditButtons();
  setAuthMoveButtons();
}


Generated by  Doxygen 1.6.0   Back to index