kleopatra
Go to the documentation of this file.
33 #include <config-kleopatra.h>
40 #include <KMessageBox>
43 using namespace Kleo::Commands;
59 bool RefreshX509CertsCommand::preStartHook(
QWidget * parent )
const {
60 return KMessageBox::warningContinueCancel( parent,
62 "<para>Refreshing X.509 certificates implies downloading CRLs for all certificates, "
63 "even if they might otherwise still be valid.</para>"
64 "<para>This can put a severe strain on your own as well as other people's network "
65 "connections, and can take up to an hour or more to complete, depending on "
66 "your network connection, and the number of certificates to check.</para> "
67 "<para>Are you sure you want to continue?</para>"),
68 i18nc(
"@title:window",
"X.509 Certificate Refresh"),
69 KStandardGuiItem::cont(), KStandardGuiItem::cancel(),
70 QLatin1String(
"warn-refresh-x509-expensive" ) )
71 == KMessageBox::Continue;
74 QStringList RefreshX509CertsCommand::arguments()
const {
75 return QStringList() <<
gpgSmPath() << QLatin1String(
"-k") << QLatin1String(
"--with-validation") << QLatin1String(
"--force-crl-refresh") << QLatin1String(
"--enable-crl-checks");
78 QString RefreshX509CertsCommand::errorCaption()
const {
79 return i18nc(
"@title:window",
"X.509 Certificate Refresh Error" );
82 QString RefreshX509CertsCommand::successCaption()
const {
83 return i18nc(
"@title:window",
"X.509 Certificate Refresh Finished" );
86 QString RefreshX509CertsCommand::crashExitMessage(
const QStringList & args )
const {
87 return i18nc(
"@info",
88 "<para>The GpgSM process that tried to refresh X.509 certificates "
89 "ended prematurely because of an unexpected error.</para>"
90 "<para>Please check the output of <icode>%1</icode> for details.</para>", args.join( QLatin1String(
" ") ) ) ;
93 QString RefreshX509CertsCommand::errorExitMessage(
const QStringList & args )
const {
94 return i18nc(
"@info",
95 "<para>An error occurred while trying to refresh X.509 certificates.</para>"
96 "<para>The output from <command>%1</command> was: <message>%2</message></para>",
100 QString RefreshX509CertsCommand::successMessage(
const QStringList & )
const {
101 return i18nc(
"@info",
"X.509 certificates refreshed successfully." );
104 #include "moc_refreshx509certscommand.cpp"
RefreshX509CertsCommand(QAbstractItemView *view, KeyListController *parent)
QString errorString() const
~RefreshX509CertsCommand()
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:41 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.