Exemple #1
0
extern "C" ppk_error removeEntry(const ppk_entry* entry, unsigned int flags)
{
	QString generatedKey;
	if (generateKey(entry, generatedKey) == PPK_FALSE)
		return PPK_UNKNOWN_ENTRY_TYPE;
	
	return removePassword(generatedKey, flags);
}
void UBSettings::setProxyUsername(const QString& username)
{
    QString idUsername = "******";

    if (username.length() > 0)
        setPassword(idUsername, username);
    else
        removePassword(idUsername);
}
void UBSettings::setProxyPassword(const QString& password)
{
    QString idPassword = "******";

    if (password.length() > 0)
       setPassword(idPassword, password);
    else
        removePassword(idPassword);

}
void UBSettings::cleanNonPersistentSettings()
{
    if(!communityCredentialsPersistence->get().toBool()){
        communityPsw->set(QVariant(""));
        communityUser->set(QVariant(""));
    }

    if(!youTubeCredentialsPersistence->get().toBool()){
        removePassword(youTubeUserEMail->get().toString());
        youTubeUserEMail->set(QVariant(""));
    }
}
Exemple #5
0
void UBSettings::cleanNonPersistentSettings()
{
    if(!communityCredentialsPersistence->get().toBool()){
        communityPsw->set(QVariant(""));
        communityUser->set(QVariant(""));
    }

    if(!youTubeCredentialsPersistence->get().toBool())
    {
        if ( ! youTubeUserEMail->get().toString().isEmpty()) // ALTI/AOU - 20140204 : remove only the Youtube credentials if existing, and not the whole "Vault" section.
        {
            removePassword(youTubeUserEMail->get().toString());
        }
        youTubeUserEMail->set(QVariant(""));
    }
}
Exemple #6
0
/**
 * Attempts to Sign on
 * Occurs when the signOn button is clicked.
 */
void Login::signOnButtonClicked(){
  if(aolName->currentText() == QString("<new user>")){
    int choice = -1;
    choice = QMessageBox::information(0, "Kinkatta - Error",(
"Kinkatta can't register new aim users at this time.\nYou must goto aol's website and register for\na new account. (http://aim.aol.com)"), "Ok", "Goto web site to register.");
    if (choice == 1)
      kApp->invokeBrowser(QString( "http://aim.aol.com/ "));
    return;
  }
  if ((aolName->currentText().length() == 0 ) || (aolPass->text().length() == 0) ){
    QMessageBox::information(this, "Kinkatta - Message",("Please enter a name and password."), QMessageBox::Ok);
    return;
  }
  
  i_aimSettings->login_password = aolPass->text();
  i_aimSettings->login_name = aolName->currentText();
  i_aimSettings->login_enable_save = save->isChecked();
  i_aimSettings->login_enable_auto = autoLogin->isChecked();
  if (i_aimSettings->login_enable_save == true)
    savePassword(i_aimSettings->login_name);
  else
    removePassword(aolName->currentText());
  tryToConnect();
}
Exemple #7
0
/**
 * If AutoSave is unchecked then the current password is deleted
 * @param value current state of save check
 */
void Login::toggleSave( bool value ){
  if (value == false){
    removePassword(aolName->currentText());
  }
}