From 95eeb27296c5dd07aa7578cb93459106c84f4398 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Wed, 4 Nov 2015 07:43:41 +0100 Subject: [PATCH] Add info when we start synchronize --- pimsettingexporter/core/abstractimportexportjob.cpp | 1 + pimsettingexporter/gui/dialog/synchronizeresourcedialog.cpp | 5 +++++ pimsettingexporter/gui/dialog/synchronizeresourcedialog.h | 2 ++ 3 files changed, 8 insertions(+) diff --git a/pimsettingexporter/core/abstractimportexportjob.cpp b/pimsettingexporter/core/abstractimportexportjob.cpp index cfedb33918..846522504d 100644 --- a/pimsettingexporter/core/abstractimportexportjob.cpp +++ b/pimsettingexporter/core/abstractimportexportjob.cpp @@ -497,6 +497,7 @@ void AbstractImportExportJob::slotNextStep() void AbstractImportExportJob::startSynchronizeResources(const QStringList &listResourceToSync) { + Q_EMIT info(i18n("Start synchronizing...")); SynchronizeResourceJob *job = new SynchronizeResourceJob(this); job->setListResources(listResourceToSync); connect(job, &SynchronizeResourceJob::synchronizationFinished, this, &AbstractImportExportJob::slotAllResourceSynchronized); diff --git a/pimsettingexporter/gui/dialog/synchronizeresourcedialog.cpp b/pimsettingexporter/gui/dialog/synchronizeresourcedialog.cpp index 86cf38bf5b..04e15453f5 100644 --- a/pimsettingexporter/gui/dialog/synchronizeresourcedialog.cpp +++ b/pimsettingexporter/gui/dialog/synchronizeresourcedialog.cpp @@ -45,6 +45,11 @@ SynchronizeResourceDialog::~SynchronizeResourceDialog() } +void SynchronizeResourceDialog::setResources(const QStringList &resources) +{ + //TODO +} + void SynchronizeResourceDialog::slotAccepted() { accept(); diff --git a/pimsettingexporter/gui/dialog/synchronizeresourcedialog.h b/pimsettingexporter/gui/dialog/synchronizeresourcedialog.h index bddc19a3da..73fb46aff0 100644 --- a/pimsettingexporter/gui/dialog/synchronizeresourcedialog.h +++ b/pimsettingexporter/gui/dialog/synchronizeresourcedialog.h @@ -28,6 +28,8 @@ public: explicit SynchronizeResourceDialog(QWidget *parent = Q_NULLPTR); ~SynchronizeResourceDialog(); + void setResources(const QStringList &resources); + private Q_SLOTS: void slotAccepted(); }; -- 2.11.4.GIT