libkleo
messagebox.cpp
Go to the documentation of this file.
75 return KGuiItem( i18n("&Copy to Clipboard"), QLatin1String("edit-copy"), i18n("Copy Audit Log to Clipboard") );
140 const QString fileName = QFileDialog::getSaveFileName( this, i18n("Choose File to Save GnuPG Audit Log to") );
203 KMessageBox::information( parent, i18n("Your system does not have support for GnuPG Audit Logs"),
211 KMessageBox::information( parent, i18n("An error occurred while trying to retrieve the GnuPG Audit Log:\n%1",
267 static QString to_information_string( const SigningResult & sresult, const EncryptionResult & eresult ) {
271 static QString to_error_string( const SigningResult & sresult, const EncryptionResult & eresult ) {
276 void MessageBox::information( QWidget * parent, const SigningResult & result, const Job * job, KMessageBox::Options options ) {
281 void MessageBox::information( QWidget * parent, const SigningResult & result, const Job * job, const QString & caption, KMessageBox::Options options ) {
282 make( parent, QMessageBox::Information, to_information_string( result ), job, caption, options );
286 void MessageBox::error( QWidget * parent, const SigningResult & result, const Job * job, KMessageBox::Options options ) {
291 void MessageBox::error( QWidget * parent, const SigningResult & result, const Job * job, const QString & caption, KMessageBox::Options options ) {
296 void MessageBox::information( QWidget * parent, const EncryptionResult & result, const Job * job, KMessageBox::Options options ) {
301 void MessageBox::information( QWidget * parent, const EncryptionResult & result, const Job * job, const QString & caption, KMessageBox::Options options ) {
302 make( parent, QMessageBox::Information, to_information_string( result ), job, caption, options );
306 void MessageBox::error( QWidget * parent, const EncryptionResult & result, const Job * job, KMessageBox::Options options ) {
311 void MessageBox::error( QWidget * parent, const EncryptionResult & result, const Job * job, const QString & caption, KMessageBox::Options options ) {
316 void MessageBox::information( QWidget * parent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, KMessageBox::Options options ) {
321 void MessageBox::information( QWidget * parent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, const QString & caption, KMessageBox::Options options ) {
322 make( parent, QMessageBox::Information, to_information_string( sresult, eresult ), job, caption, options );
326 void MessageBox::error( QWidget * parent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, KMessageBox::Options options ) {
331 void MessageBox::error( QWidget * parent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, const QString & caption, KMessageBox::Options options ) {
332 make( parent, QMessageBox::Critical, to_error_string( sresult, eresult ), job, caption, options );
362 void MessageBox::make( QWidget * parent, QMessageBox::Icon icon, const QString & text, const Job * job, const QString & caption, KMessageBox::Options options ) {
365 dialog->setButtons( showAuditLogButton( job ) ? ( KDialog::Yes | KDialog::No ) : KDialog::Yes );
378 if ( KDialog::No == KMessageBox::createKMessageBox( dialog, icon, text, QStringList(), QString::null, 0, options ) )
bool isValid() const
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:336
void setAuditLog(const QString &log)
Definition: messagebox.cpp:127
QString fromLocal8Bit(const char *str, int size)
bool isEmpty() const
AuditLogViewer(const QString &log, QWidget *parent=0, Qt::WindowFlags f=0)
Definition: messagebox.cpp:85
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:247
Definition: messagebox_p.h:45
QString escape(const QString &plain)
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFlags< QFileDialog::Option > options)
typedef WindowFlags
static QString to_error_string(const SigningResult &result)
Definition: messagebox.cpp:253
static void auditLog(QWidget *parent, const Kleo::Job *job, const QString &caption)
Definition: messagebox.cpp:197
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.