Commit fc051100 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Rename file for preparing autotests

parent 3382263c
......@@ -38,7 +38,7 @@ set(pimdataexporter_xml_SRCS
)
set(pimdataexporter_akregator_SRCS
akregator/exportakregatorjob.cpp
akregator/exportakregatorjobinterface.cpp
akregator/importakregatorjob.cpp
)
......
......@@ -17,7 +17,7 @@
Boston, MA 02110-1301, USA.
*/
#include "exportakregatorjob.h"
#include "exportakregatorjobinterface.h"
#include <AkonadiCore/AgentManager>
#include <KLocalizedString>
......@@ -27,29 +27,29 @@
#include <QStandardPaths>
#include <QTimer>
ExportAkregatorJob::ExportAkregatorJob(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep)
ExportAkregatorJobInterface::ExportAkregatorJobInterface(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep)
: AbstractImportExportJob(parent, archiveStorage, typeSelected, numberOfStep)
{
}
ExportAkregatorJob::~ExportAkregatorJob()
ExportAkregatorJobInterface::~ExportAkregatorJobInterface()
{
}
void ExportAkregatorJob::start()
void ExportAkregatorJobInterface::start()
{
Q_EMIT title(i18n("Start export Akregator settings..."));
createProgressDialog(i18n("Export Akregator settings"));
if (mTypeSelected & Utils::Config) {
QTimer::singleShot(0, this, &ExportAkregatorJob::slotCheckBackupConfig);
QTimer::singleShot(0, this, &ExportAkregatorJobInterface::slotCheckBackupConfig);
} else if (mTypeSelected & Utils::Data) {
QTimer::singleShot(0, this, &ExportAkregatorJob::slotCheckBackupData);
QTimer::singleShot(0, this, &ExportAkregatorJobInterface::slotCheckBackupData);
} else {
Q_EMIT jobFinished();
}
}
void ExportAkregatorJob::slotCheckBackupConfig()
void ExportAkregatorJobInterface::slotCheckBackupConfig()
{
increaseProgressDialog();
setProgressDialogLabel(i18n("Backing up config..."));
......@@ -60,10 +60,10 @@ void ExportAkregatorJob::slotCheckBackupConfig()
backupConfigFile(QStringLiteral("akregator.notifyrc"));
Q_EMIT info(i18n("Config backup done."));
QTimer::singleShot(0, this, &ExportAkregatorJob::slotCheckBackupData);
QTimer::singleShot(0, this, &ExportAkregatorJobInterface::slotCheckBackupData);
}
void ExportAkregatorJob::slotCheckBackupData()
void ExportAkregatorJobInterface::slotCheckBackupData()
{
if (mTypeSelected & Utils::Data) {
increaseProgressDialog();
......
......@@ -24,12 +24,12 @@
#include "pimdataexportercore_private_export.h"
class ArchiveStorage;
class PIMDATAEXPORTER_TESTS_EXPORT ExportAkregatorJob : public AbstractImportExportJob
class PIMDATAEXPORTER_TESTS_EXPORT ExportAkregatorJobInterface : public AbstractImportExportJob
{
Q_OBJECT
public:
explicit ExportAkregatorJob(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep);
~ExportAkregatorJob() override;
explicit ExportAkregatorJobInterface(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep);
~ExportAkregatorJobInterface() override;
void start() override;
......
......@@ -36,7 +36,7 @@
#include "notes/exportnotesjobinterfaceimpl.h"
#include "notes/importnotesjob.h"
#include "akregator/exportakregatorjob.h"
#include "akregator/exportakregatorjobinterface.h"
#include "akregator/importakregatorjob.h"
#include <KLocalizedString>
......@@ -164,7 +164,7 @@ void PimDataBackupRestore::backupNextStep()
break;
case Utils::Akregator:
if (mStoreIterator.value().numberSteps != 0) {
mImportExportData = new ExportAkregatorJob(this, mStoreIterator.value().types, mArchiveStorage, mStoreIterator.value().numberSteps);
mImportExportData = new ExportAkregatorJobInterface(this, mStoreIterator.value().types, mArchiveStorage, mStoreIterator.value().numberSteps);
executeJob();
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment