libkleo
messagebox.cpp
Go to the documentation of this file.
73 return KGuiItem( i18n("&Copy to Clipboard"), QLatin1String("edit-copy"), i18n("Copy Audit Log to Clipboard") );
138 const QString fileName = QFileDialog::getSaveFileName( this, i18n("Choose File to Save GnuPG Audit Log to") );
201 KMessageBox::information( parent, i18n("Your system does not have support for GnuPG Audit Logs"),
209 KMessageBox::information( parent, i18n("An error occurred while trying to retrieve the GnuPG Audit Log:\n%1",
265 static QString to_information_string( const SigningResult & sresult, const EncryptionResult & eresult ) {
269 static QString to_error_string( const SigningResult & sresult, const EncryptionResult & eresult ) {
274 void MessageBox::information( QWidget * parent, const SigningResult & result, const Job * job, KMessageBox::Options options ) {
279 void MessageBox::information( QWidget * parent, const SigningResult & result, const Job * job, const QString & caption, KMessageBox::Options options ) {
280 make( parent, QMessageBox::Information, to_information_string( result ), job, caption, options );
284 void MessageBox::error( QWidget * parent, const SigningResult & result, const Job * job, KMessageBox::Options options ) {
289 void MessageBox::error( QWidget * parent, const SigningResult & result, const Job * job, const QString & caption, KMessageBox::Options options ) {
294 void MessageBox::information( QWidget * parent, const EncryptionResult & result, const Job * job, KMessageBox::Options options ) {
299 void MessageBox::information( QWidget * parent, const EncryptionResult & result, const Job * job, const QString & caption, KMessageBox::Options options ) {
300 make( parent, QMessageBox::Information, to_information_string( result ), job, caption, options );
304 void MessageBox::error( QWidget * parent, const EncryptionResult & result, const Job * job, KMessageBox::Options options ) {
309 void MessageBox::error( QWidget * parent, const EncryptionResult & result, const Job * job, const QString & caption, KMessageBox::Options options ) {
314 void MessageBox::information( QWidget * parent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, KMessageBox::Options options ) {
319 void MessageBox::information( QWidget * parent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, const QString & caption, KMessageBox::Options options ) {
320 make( parent, QMessageBox::Information, to_information_string( sresult, eresult ), job, caption, options );
324 void MessageBox::error( QWidget * parent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, KMessageBox::Options options ) {
329 void MessageBox::error( QWidget * parent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, const QString & caption, KMessageBox::Options options ) {
330 make( parent, QMessageBox::Critical, to_error_string( sresult, eresult ), job, caption, options );
360 void MessageBox::make( QWidget * parent, QMessageBox::Icon icon, const QString & text, const Job * job, const QString & caption, KMessageBox::Options options ) {
363 dialog->setButtons( showAuditLogButton( job ) ? ( KDialog::Yes | KDialog::No ) : KDialog::Yes );
376 if ( KDialog::No == KMessageBox::createKMessageBox( dialog, icon, text, QStringList(), QString::null, 0, options ) )
static void error(QWidget *parent, const GpgME::SigningResult &result, const Kleo::Job *job, const QString &caption, KMessageBox::Options options=KMessageBox::Notify)
static bool showAuditLogButton(const Kleo::Job *job)
Definition: messagebox.cpp:334
void setAuditLog(const QString &log)
Definition: messagebox.cpp:125
AuditLogViewer(const QString &log, QWidget *parent=0, Qt::WindowFlags f=0)
Definition: messagebox.cpp:83
static void information(QWidget *parent, const GpgME::SigningResult &result, const Kleo::Job *job, const QString &caption, KMessageBox::Options options=KMessageBox::Notify)
static QString to_information_string(const SigningResult &result)
Definition: messagebox.cpp:245
Definition: messagebox_p.h:44
static QString to_error_string(const SigningResult &result)
Definition: messagebox.cpp:251
static void auditLog(QWidget *parent, const Kleo::Job *job, const QString &caption)
Definition: messagebox.cpp:195
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.