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

void KPureftpdScript::slotAuthMethodChanged ( int  index  )  [protected, slot]

Set the "authFile" as disabled when the user choose "unix" or "pam" in methods combobox. It also set the editor buttons (Add, Modify, Delete) such that only relevant buttons will be enabled.

Parameters:
index is the position of selected item in "authMethod" combobox

Definition at line 926 of file kcmpureftpdscript.cpp.

References script, and ui.

Referenced by KPureftpdScript(), slotAuthListChanged(), and slotAuthType().

                                                     {
  index=index; // shup up GCC

  if (script->authMethods()[ui->authMethod->currentText()] == Script::NoPath) {
    ui->authFile->setEnabled(false);
  } else if (script->authMethods()[ui->authMethod->currentText()] == Script::WithPath) {
    ui->authFile->setEnabled(true);
  } else {
    kdFatal() << "slotAuthMethodChanged: unknow AuthMethodOption" << endl;
  }

  setAuthEditButtons();
}


Generated by  Doxygen 1.6.0   Back to index