kleopatra
Go to the documentation of this file.
33 #ifndef __KLEOPATRA_UTILS_PROGRESSMANAGER_P_H_
34 #define __KLEOPATRA_UTILS_PROGRESSMANAGER_P_H_
38 #include <libkdepim/progresswidget/progressmanager.h>
46 class Mapper : QObject {
49 Mapper( KPIM::ProgressItem * item, Kleo::Job * job )
50 : QObject( item ), m_item( item ), m_job( job )
53 connect( item, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)),
54 job, SLOT(slotCancel()) );
56 connect( job, SIGNAL(done()),
57 this, SLOT(slotDone()) );
58 connect( job, SIGNAL(progress(QString,
int,
int)),
59 this, SLOT(slotProgress(QString,
int,
int)) );
65 m_item->setComplete();
69 void slotProgress(
const QString & what,
int current,
int total ) {
72 m_item->setStatus( what );
73 m_item->setProgress( total ? current/total : 0 );
77 QPointer<KPIM::ProgressItem> m_item;
78 QPointer<Kleo::Job> m_job;
83 #endif // __KLEOPATRA_UTILS_PROGRESSMANAGER_P_H_
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:41 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.