kleopatra
task.cpp
Go to the documentation of this file.
98 : q( qq ), m_progressLabel(), m_processedPercent( 0.0 ), m_asciiArmor( false ), m_id( nextTaskId++ )
103 Task::Task( QObject * p )
121 shared_ptr<Task> Task::makeErrorTask( int code, const QString & details, const QString & label ) {
163 QMetaObject::invokeMethod( this, "emitError", Qt::QueuedConnection, Q_ARG( int, e.error().encodedError() ), Q_ARG( QString, e.message() ) );
165 QMetaObject::invokeMethod( this, "emitError", Qt::QueuedConnection, Q_ARG( int, e.error().encodedError() ), Q_ARG( QString, QString::fromLocal8Bit( e.what() ) ) );
167 QMetaObject::invokeMethod( this, "emitError", Qt::QueuedConnection, Q_ARG( int, makeGnuPGError( GPG_ERR_UNEXPECTED ) ), Q_ARG( QString, QString::fromLocal8Bit( e.what() ) ) );
169 QMetaObject::invokeMethod( this, "emitError", Qt::QueuedConnection, Q_ARG( int, makeGnuPGError( GPG_ERR_UNEXPECTED ) ), Q_ARG( QString, i18n( "Unknown exception in Task::start()") ) );
205 return QLatin1String("<a href=\"key:") + m_nonce + QLatin1Char(':') + QLatin1String(fpr) + QLatin1String("\">") + content + QLatin1String("</a>");
Definition: task_p.h:44
Definition: auditlog.h:48
QString formatKeyLink(const char *fingerprint, const QString &content) const
Definition: task.cpp:204
Definition: task.h:55
static boost::shared_ptr< Task > makeErrorTask(int code, const QString &details, const QString &label)
Definition: task.cpp:121
void setProgress(const QString &msg, int processed, int total)
Definition: task.cpp:151
Definition: task.h:117
boost::shared_ptr< Result > makeErrorResult(int errCode, const QString &details)
Definition: task.cpp:185
static QString iconPath(VisualCode code)
Definition: task.cpp:223
virtual QString label() const =0
void emitResult(const boost::shared_ptr< const Task::Result > &result)
Definition: task.cpp:178
static QString makeOverview(const QString &msg)
Definition: task.cpp:218
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:42 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:56:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.