Rename signal from folderProgress to itemProgress.

This commit is contained in:
Klaas Freitag 2013-07-23 12:23:20 +02:00
parent 47f151c594
commit 85d810d2cf
3 changed files with 13 additions and 13 deletions

View file

@ -15,6 +15,7 @@
#include <QObject>
#include <QMetaType>
#include <QDebug>
namespace Mirall {
@ -27,28 +28,28 @@ QString Progress::asString( Kind kind )
switch(kind) {
case Download:
re = QObject::tr("Download");
re = QObject::tr("downloading");
break;
case Upload:
re = QObject::tr("Upload");
re = QObject::tr("uploading");
break;
case Context:
re = QObject::tr("Context");
break;
case Inactive:
re = QObject::tr("Inactive");
re = QObject::tr("inactive");
break;
case StartDownload:
re = QObject::tr("Start download");
re = QObject::tr("downloading");
break;
case StartUpload:
re = QObject::tr("Start upload");
re = QObject::tr("uploading");
break;
case EndDownload:
re = QObject::tr("End download");
re = QObject::tr("downloading");
break;
case EndUpload:
re = QObject::tr("End upload");
re = QObject::tr("uploading");
break;
default:
re = QObject::tr("What do I know?");
@ -74,10 +75,9 @@ ProgressDispatcher::~ProgressDispatcher()
}
void ProgressDispatcher::setFolderProgress( Progress::Kind kind, const QString& alias, const QString& file, long p1, long p2)
void ProgressDispatcher::setFolderProgress( Progress::Kind kind, const QString& folder, const QString& file, long p1, long p2)
{
emit folderProgress( kind, alias, file, p1, p2 );
emit itemProgress( kind, folder, file, p1, p2 );
}
void ProgressDispatcher::setOverallProgress( const QString& folder, const QString& file, int fileNo, int fileCnt,

View file

@ -48,11 +48,11 @@ public:
~ProgressDispatcher();
public:
void setFolderProgress( Progress::Kind, const QString&, const QString&, long, long );
void setFolderProgress(Progress::Kind, const QString&, const QString&, long, long );
void setOverallProgress(const QString&, const QString&, int, int, qlonglong, qlonglong);
signals:
void folderProgress( Progress::Kind, const QString&, const QString&, long, long );
void itemProgress( Progress::Kind, const QString&, const QString&, long, long );
void overallProgress(const QString&, const QString&, int, int, qlonglong, qlonglong );
public slots:

View file

@ -70,7 +70,7 @@ SettingsDialog::SettingsDialog(Application *app, QWidget *parent) :
connect( _accountSettings, SIGNAL(openFolderAlias(const QString&)),
app, SLOT(slotFolderOpenAction(QString)));
connect( ProgressDispatcher::instance(), SIGNAL(folderProgress(Progress::Kind, QString,QString,long,long)),
connect( ProgressDispatcher::instance(), SIGNAL(itemProgress(Progress::Kind, QString,QString,long,long)),
_accountSettings, SLOT(slotSetProgress(Progress::Kind, QString,QString,long,long)));
connect( ProgressDispatcher::instance(), SIGNAL(overallProgress(QString,QString, int,int,qlonglong,qlonglong)),
_accountSettings, SLOT(slotSetOverallProgress( const QString&, const QString&, int, int, qlonglong , qlonglong )));