kleopatra
taskcollection.cpp
Go to the documentation of this file.
69 TaskCollection::Private::Private( TaskCollection* qq ) : q( qq ), m_totalSize( 0 ), m_processedSize( 0 ), m_nCompleted( 0 ), m_errorOccurred( false )
112 calculateAndEmitProgress(); // start Knight-Rider-Mode right away (gpgsm doesn't report _any_ progress).
133 total += static_cast<int>( std::ceil( ( m_tasks.size() - knownSize ) * ( static_cast<double>( total ) / knownSize ) ) );
145 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:82
Definition: task.h:55
void setTasks(const std::vector< boost::shared_ptr< Task > > &tasks)
Definition: taskcollection.cpp:179
TaskCollection(QObject *parent=0)
Definition: taskcollection.cpp:145
std::vector< boost::shared_ptr< Task > > tasks() const
Definition: taskcollection.cpp:169
void started(const boost::shared_ptr< Kleo::Crypto::Task > &task)
boost::shared_ptr< Task > taskById(int id) const
Definition: taskcollection.cpp:163
Definition: taskcollection.h:49
void progress(const QString &msg, int processed, int total)
bool errorOccurred() const
Definition: taskcollection.cpp:158
int numberOfCompletedTasks() const
Definition: taskcollection.cpp:73
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.