KMessageBox::error(tqparentWidget(),i18n("There was an error with the downloaded resource tarball file. Possible causes are damaged archive or invalid directory structure in the archive."),i18n("Resource Installation Error"));
KMessageBox::error(parentWidget(),i18n("There was an error with the downloaded resource tarball file. Possible causes are damaged archive or invalid directory structure in the archive."),i18n("Resource Installation Error"));
if(KMessageBox::warningContinueCancel(tqparentWidget(),i18n("<qt>There is a problem with the resource file you have downloaded. The errors are :<b>%1</b><br>%2<br><br>Installation of the resource is <b>not recommended</b>.<br><br>Do you want to proceed with the installation?</qt>").arg(errorString).arg(signatureStr),i18n("Problematic Resource File"))==KMessageBox::Continue)
if(KMessageBox::warningContinueCancel(parentWidget(),i18n("<qt>There is a problem with the resource file you have downloaded. The errors are :<b>%1</b><br>%2<br><br>Installation of the resource is <b>not recommended</b>.<br><br>Do you want to proceed with the installation?</qt>").arg(errorString).arg(signatureStr),i18n("Problematic Resource File"))==KMessageBox::Continue)
valid=true;
}else
KMessageBox::information(tqparentWidget(),i18n("<qt>%1<br><br>Press OK to install it.</qt>").arg(signatureStr),i18n("Valid Resource"),"Show Valid Signature Information");
KMessageBox::information(parentWidget(),i18n("<qt>%1<br><br>Press OK to install it.</qt>").arg(signatureStr),i18n("Valid Resource"),"Show Valid Signature Information");
KMessageBox::error(tqparentWidget(),i18n("The signing failed for unknown reason."));
KMessageBox::error(parentWidget(),i18n("The signing failed for unknown reason."));
}else
{
if(result&Security::BAD_PASSPHRASE)
{
if(KMessageBox::warningContinueCancel(tqparentWidget(),i18n("There are no keys usable for signing or you did not entered the correct passphrase.\nProceed without signing the resource?"))==KMessageBox::Cancel)
if(KMessageBox::warningContinueCancel(parentWidget(),i18n("There are no keys usable for signing or you did not entered the correct passphrase.\nProceed without signing the resource?"))==KMessageBox::Cancel)