kleopatra
task.cpp
Go to the documentation of this file.
99 : q( qq ), m_progressLabel(), m_processedPercent( 0.0 ), m_asciiArmor( false ), m_id( nextTaskId++ )
122 shared_ptr<Task> Task::makeErrorTask( int code, const QString & details, const QString & label ) {
164 QMetaObject::invokeMethod( this, "emitError", Qt::QueuedConnection, Q_ARG( int, e.error().encodedError() ), Q_ARG( QString, e.message() ) );
166 QMetaObject::invokeMethod( this, "emitError", Qt::QueuedConnection, Q_ARG( int, e.error().encodedError() ), Q_ARG( QString, QString::fromLocal8Bit( e.what() ) ) );
168 QMetaObject::invokeMethod( this, "emitError", Qt::QueuedConnection, Q_ARG( int, makeGnuPGError( GPG_ERR_UNEXPECTED ) ), Q_ARG( QString, QString::fromLocal8Bit( e.what() ) ) );
170 QMetaObject::invokeMethod( this, "emitError", Qt::QueuedConnection, Q_ARG( int, makeGnuPGError( GPG_ERR_UNEXPECTED ) ), Q_ARG( QString, i18n( "Unknown exception in Task::start()") ) );
206 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:205
Definition: task.h:57
QString number(int n, int base)
QString fromLocal8Bit(const char *str, int size)
static boost::shared_ptr< Task > makeErrorTask(int code, const QString &details, const QString &label)
Definition: task.cpp:122
void setProgress(const QString &msg, int processed, int total)
Definition: task.cpp:152
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
Definition: task.h:119
boost::shared_ptr< Result > makeErrorResult(int errCode, const QString &details)
Definition: task.cpp:186
static QString iconPath(VisualCode code)
Definition: task.cpp:224
virtual QString label() const =0
void emitResult(const boost::shared_ptr< const Task::Result > &result)
Definition: task.cpp:179
static QString makeOverview(const QString &msg)
Definition: task.cpp:219
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 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:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.