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

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

Modify the current selected authentication in the "authList" with the new values from the "authMethod" and "authFile". If the method is "unix" or "pam", the "authFile" content is ignored.

Definition at line 891 of file kcmpureftpdscript.cpp.

References script, and ui.

Referenced by KPureftpdScript().

                                     {
  ui->authList->currentItem()->setText(0,ui->authMethod->currentText());

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


Generated by  Doxygen 1.6.0   Back to index