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

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

Set the authentication editor to the enabled or disabled state according to the radiobuttons state in "Authentication" button group. This way the user can see whether he's using default authentication provided by system or the custom selection made by him.

Parameters:
index is number of selected radio button.

Definition at line 849 of file kcmpureftpdscript.cpp.

References slotAuthMethodChanged(), and ui.

Referenced by KPureftpdScript().

                                            {
  if (ui->useAuthDefault->isChecked()) {
    ui->txtAuthMethod->setEnabled(false);
    ui->authMethod->setEnabled(false);
    ui->txtAuthFile->setEnabled(false);
    ui->authFile->setEnabled(false);
    ui->authList->setEnabled(false);
    ui->authAdd->setEnabled(false);
    ui->authModify->setEnabled(false);
    ui->authDelete->setEnabled(false);
    ui->authMoveUp->setEnabled(false);
    ui->authMoveDown->setEnabled(false);
  } else if (ui->useAuthCustom->isChecked()) {
    ui->txtAuthMethod->setEnabled(true);
    ui->authMethod->setEnabled(true);
    ui->txtAuthFile->setEnabled(true);
    ui->authList->setEnabled(true);
    slotAuthMethodChanged(ui->authMethod->currentItem());
    setAuthMoveButtons();
  } else {
    kdFatal() << "slotAuthType: unknown selected auth type index=" << index << endl;
  }
}


Generated by  Doxygen 1.6.0   Back to index