Commit 0b557443 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove an unused virtual method

parent bb4dcfd7
......@@ -56,7 +56,7 @@ void ExportAddressbookJobInterface::slotCheckBackupResource()
mAkonadiInstanceInfo = listOfResource();
setProgressDialogLabel(i18n("Backing up resources..."));
increaseProgressDialog();
exportArchiveResource();
QTimer::singleShot(0, this, &ExportAddressbookJobInterface::slotWriteNextArchiveResource);
}
void ExportAddressbookJobInterface::slotCheckBackupConfig()
......
......@@ -36,7 +36,6 @@ public:
void slotAddressbookJobTerminated();
protected:
virtual void exportArchiveResource() = 0;
virtual void convertCollectionToRealPath(KConfigGroup &group, const QString &currentKey) = 0;
virtual void convertCollectionListToRealPath(KConfigGroup &group, const QString &currentKey) = 0;
void slotCheckBackupConfig();
......
......@@ -45,11 +45,6 @@ QVector<Utils::AkonadiInstanceInfo> ExportAddressbookJobInterfaceImpl::listOfRes
return Utils::listOfResource();
}
void ExportAddressbookJobInterfaceImpl::exportArchiveResource()
{
QTimer::singleShot(0, this, &ExportAddressbookJobInterfaceImpl::slotWriteNextArchiveResource);
}
void ExportAddressbookJobInterfaceImpl::convertCollectionToRealPath(KConfigGroup &group, const QString &currentKey)
{
ResourceConverterImpl converter;
......
......@@ -32,7 +32,6 @@ public:
~ExportAddressbookJobInterfaceImpl() override;
protected:
void exportArchiveResource() override;
void convertCollectionToRealPath(KConfigGroup &group, const QString &currentKey) override;
void convertCollectionListToRealPath(KConfigGroup &group, const QString &currentKey) override;
Q_REQUIRED_RESULT Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override;
......
......@@ -100,7 +100,7 @@ void ExportAlarmJobInterface::slotCheckBackupResource()
mAkonadiInstanceInfo = listOfResource();
setProgressDialogLabel(i18n("Backing up resources..."));
increaseProgressDialog();
exportArchiveResource();
QTimer::singleShot(0, this, &ExportAlarmJobInterface::slotWriteNextArchiveResource);
}
void ExportAlarmJobInterface::slotCheckBackupConfig()
......
......@@ -35,7 +35,6 @@ public:
void slotAlarmJobTerminated();
void slotWriteNextArchiveResource();
protected:
virtual void exportArchiveResource() = 0;
void slotCheckBackupConfig();
virtual void exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier) = 0;
virtual Q_REQUIRED_RESULT QVector<Utils::AkonadiInstanceInfo> listOfResource() = 0;
......
......@@ -45,11 +45,6 @@ QVector<Utils::AkonadiInstanceInfo> ExportAlarmJobInterfaceImpl::listOfResource(
return Utils::listOfResource();
}
void ExportAlarmJobInterfaceImpl::exportArchiveResource()
{
QTimer::singleShot(0, this, &ExportAlarmJobInterfaceImpl::slotWriteNextArchiveResource);
}
Akonadi::Collection::Id ExportAlarmJobInterfaceImpl::convertFolderPathToCollectionId(const QString &path)
{
ResourceConverterImpl converter;
......
......@@ -32,7 +32,6 @@ public:
~ExportAlarmJobInterfaceImpl() override;
protected:
void exportArchiveResource() override;
Q_REQUIRED_RESULT Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override;
void exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier) override;
......
......@@ -36,12 +36,6 @@ ExportAddressbookJobInterfaceTestImpl::~ExportAddressbookJobInterfaceTestImpl()
{
}
void ExportAddressbookJobInterfaceTestImpl::exportArchiveResource()
{
qDebug() << " not implement yet";
slotWriteNextArchiveResource();
}
Akonadi::Collection::Id ExportAddressbookJobInterfaceTestImpl::convertFolderPathToCollectionId(const QString &path)
{
ResourceConverterTest resourceConverterTest;
......
......@@ -31,9 +31,6 @@ public:
explicit ExportAddressbookJobInterfaceTestImpl(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep);
~ExportAddressbookJobInterfaceTestImpl();
protected:
void exportArchiveResource() override;
protected:
void convertCollectionToRealPath(KConfigGroup &group, const QString &currentKey) override;
void convertCollectionListToRealPath(KConfigGroup &group, const QString &currentKey) override;
......
......@@ -37,12 +37,6 @@ ExportAlarmJobInterfaceTestImpl::~ExportAlarmJobInterfaceTestImpl()
{
}
void ExportAlarmJobInterfaceTestImpl::exportArchiveResource()
{
qDebug() << " not implement yet";
slotWriteNextArchiveResource();
}
QVector<Utils::AkonadiInstanceInfo> ExportAlarmJobInterfaceTestImpl::listOfResource()
{
return mListAkonadiInstanceInfo;
......
......@@ -32,7 +32,6 @@ public:
explicit ExportAlarmJobInterfaceTestImpl(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep);
~ExportAlarmJobInterfaceTestImpl();
protected:
void exportArchiveResource() override;
Q_REQUIRED_RESULT Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override;
void exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier) override;
Q_REQUIRED_RESULT QVector<Utils::AkonadiInstanceInfo> listOfResource() override;
......
......@@ -36,12 +36,6 @@ ExportCalendarsJobInterfaceTestImpl::~ExportCalendarsJobInterfaceTestImpl()
{
}
void ExportCalendarsJobInterfaceTestImpl::exportArchiveResource()
{
qDebug() << " not implement yet";
slotWriteNextArchiveResource();
}
Akonadi::Collection::Id ExportCalendarsJobInterfaceTestImpl::convertFolderPathToCollectionId(const QString &path)
{
ResourceConverterTest resourceConverterTest;
......
......@@ -32,7 +32,6 @@ public:
~ExportCalendarsJobInterfaceTestImpl();
protected:
void exportArchiveResource() override;
Q_REQUIRED_RESULT Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override;
Q_REQUIRED_RESULT QString convertToFullCollectionPath(const qlonglong collectionValue) override;
void convertCollectionListToRealPath(KConfigGroup &group, const QString &currentKey) override;
......
......@@ -36,11 +36,6 @@ ExportMailJobInterfaceTestImpl::~ExportMailJobInterfaceTestImpl()
{
}
void ExportMailJobInterfaceTestImpl::exportArchiveResource()
{
qDebug() << " not implement yet";
}
void ExportMailJobInterfaceTestImpl::convertCollectionToRealPath(KConfigGroup &group, const QString &currentKey)
{
ResourceConverterTest resourceConverter;
......
......@@ -31,9 +31,6 @@ public:
explicit ExportMailJobInterfaceTestImpl(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep);
~ExportMailJobInterfaceTestImpl();
protected:
void exportArchiveResource() override;
protected:
void convertCollectionToRealPath(KConfigGroup &group, const QString &currentKey) override;
void convertCollectionListToRealPath(KConfigGroup &group, const QString &currentKey) override;
......
......@@ -45,12 +45,6 @@ void ExportNotesJobInterfaceTestImpl::convertCollectionIdsToRealPath(KConfigGrou
resourceConverterTest.convertCollectionIdsToRealPath(selectFolderNoteGroup, selectFolderNoteGroupStr);
}
void ExportNotesJobInterfaceTestImpl::exportArchiveResource()
{
qDebug() << " not implement yet";
slotWriteNextArchiveResource();
}
QVector<Utils::AkonadiInstanceInfo> ExportNotesJobInterfaceTestImpl::listOfResource()
{
return mListAkonadiInstanceInfo;
......
......@@ -33,7 +33,6 @@ public:
~ExportNotesJobInterfaceTestImpl();
protected:
void exportArchiveResource() override;
void convertCollectionIdsToRealPath(KConfigGroup &selectFolderNoteGroup, const QString &selectFolderNoteGroupStr) override;
Q_REQUIRED_RESULT Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override;
void exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier) override;
......
......@@ -101,7 +101,7 @@ void ExportCalendarJobInterface::slotCheckBackupResource()
mAkonadiInstanceInfo = listOfResource();
setProgressDialogLabel(i18n("Backing up resources..."));
increaseProgressDialog();
exportArchiveResource();
QTimer::singleShot(0, this, &ExportCalendarJobInterface::slotWriteNextArchiveResource);
}
void ExportCalendarJobInterface::slotCheckBackupConfig()
......
......@@ -36,7 +36,6 @@ public:
void slotWriteNextArchiveResource();
protected:
virtual void exportArchiveResource() = 0;
void slotCheckBackupConfig();
virtual Q_REQUIRED_RESULT QString convertToFullCollectionPath(const qlonglong collectionValue) = 0;
virtual void convertCollectionListToRealPath(KConfigGroup &group, const QString &currentKey) = 0;
......
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