kleopatra
taskcollection.cpp
Go to the documentation of this file.
71 TaskCollection::Private::Private( TaskCollection* qq ) : q( qq ), m_totalSize( 0 ), m_processedSize( 0 ), m_nCompleted( 0 ), m_errorOccurred( false )
114 calculateAndEmitProgress(); // start Knight-Rider-Mode right away (gpgsm doesn't report _any_ progress).
135 total += static_cast<int>( std::ceil( ( m_tasks.size() - knownSize ) * ( static_cast<double>( total ) / knownSize ) ) );
147 TaskCollection::TaskCollection( QObject * parent ) : QObject( parent ), d( new Private( this ) )
void result(const boost::shared_ptr< const Kleo::Crypto::Task::Result > &result)
bool allTasksCompleted() const
Definition: taskcollection.cpp:84
Definition: task.h:57
void setTasks(const std::vector< boost::shared_ptr< Task > > &tasks)
Definition: taskcollection.cpp:181
TaskCollection(QObject *parent=0)
Definition: taskcollection.cpp:147
std::vector< boost::shared_ptr< Task > > tasks() const
Definition: taskcollection.cpp:171
void started(const boost::shared_ptr< Kleo::Crypto::Task > &task)
boost::shared_ptr< Task > taskById(int id) const
Definition: taskcollection.cpp:165
Definition: taskcollection.h:51
void progress(const QString &msg, int processed, int total)
bool errorOccurred() const
Definition: taskcollection.cpp:160
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int numberOfCompletedTasks() const
Definition: taskcollection.cpp:75
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.