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;
......
......@@ -48,11 +48,6 @@ QVector<Utils::AkonadiInstanceInfo> ExportCalendarJobInterfaceImpl::listOfResour
return Utils::listOfResource();
}
void ExportCalendarJobInterfaceImpl::exportArchiveResource()
{
QTimer::singleShot(0, this, &ExportCalendarJobInterfaceImpl::slotWriteNextArchiveResource);
}
Akonadi::Collection::Id ExportCalendarJobInterfaceImpl::convertFolderPathToCollectionId(const QString &path)
{
ResourceConverterImpl converter;
......
......@@ -32,7 +32,6 @@ public:
~ExportCalendarJobInterfaceImpl() override;
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;
......
......@@ -119,7 +119,7 @@ void ExportMailJobInterface::slotCheckBackupMails()
if (checkBackupType(Utils::Mails)) {
increaseProgressDialog();
setProgressDialogLabel(i18n("Backing up Mails..."));
exportArchiveResource();
QTimer::singleShot(0, this, &ExportMailJobInterface::slotWriteNextArchiveResource);
return;
}
QTimer::singleShot(0, this, &ExportMailJobInterface::slotCheckBackupResources);
......@@ -589,7 +589,7 @@ void ExportMailJobInterface::slotMailsJobTerminated()
return;
}
mIndexIdentifier++;
exportArchiveResource();
QTimer::singleShot(0, this, &ExportMailJobInterface::slotWriteNextArchiveResource);
}
void ExportMailJobInterface::slotWriteNextArchiveResource()
......
......@@ -48,7 +48,6 @@ protected:
virtual void convertCollectionIdsToRealPath(KConfigGroup &group, const QString &currentKey, const QString &prefixCollection = QString()) = 0;
virtual void convertCollectionToRealPath(KConfigGroup &group, const QString &currentKey) = 0;
virtual void convertCollectionListToRealPath(KConfigGroup &group, const QString &currentKey) = 0;
virtual void exportArchiveResource() = 0;
void backupResources();
virtual QVector<MailCommon::MailFilter *> filters() = 0;
virtual Q_REQUIRED_RESULT QString convertToFullCollectionPath(const qlonglong collectionValue) = 0;
......
......@@ -54,11 +54,6 @@ ExportMailJobInterfaceImpl::~ExportMailJobInterfaceImpl()
{
}
void ExportMailJobInterfaceImpl::exportArchiveResource()
{
QTimer::singleShot(0, this, &ExportMailJobInterfaceImpl::slotWriteNextArchiveResource);
}
Akonadi::Collection::Id ExportMailJobInterfaceImpl::convertFolderPathToCollectionId(const QString &path)
{
ResourceConverterImpl converter;
......
......@@ -38,7 +38,6 @@ protected:
void convertCollectionIdsToRealPath(KConfigGroup &group, const QString &currentKey, const QString &prefixCollection = QString()) override;
void convertCollectionToRealPath(KConfigGroup &group, const QString &currentKey) override;
void convertCollectionListToRealPath(KConfigGroup &group, const QString &currentKey) override;
void exportArchiveResource() override;
Q_REQUIRED_RESULT Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override;
Q_REQUIRED_RESULT QVector<MailCommon::MailFilter *> filters() override;
Q_REQUIRED_RESULT QString convertToFullCollectionPath(const qlonglong collectionValue) override;
......
......@@ -69,7 +69,7 @@ void ExportNotesJobInterface::slotCheckBackupResource()
increaseProgressDialog();
backupTheme();
mAkonadiInstanceInfo = listOfResource();
exportArchiveResource();
QTimer::singleShot(0, this, &ExportNotesJobInterface::slotWriteNextArchiveResource);
}
void ExportNotesJobInterface::slotCheckBackupConfig()
......
......@@ -37,7 +37,6 @@ public:
void slotWriteNextArchiveResource();
protected:
virtual void exportArchiveResource() = 0;
virtual void convertCollectionIdsToRealPath(KConfigGroup &selectFolderNoteGroup, const QString &selectFolderNoteGroupStr) = 0;
virtual void exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier) = 0;
virtual Q_REQUIRED_RESULT QVector<Utils::AkonadiInstanceInfo> listOfResource() = 0;
......
......@@ -44,11 +44,6 @@ QVector<Utils::AkonadiInstanceInfo> ExportNotesJobInterfaceImpl::listOfResource(
return Utils::listOfResource();
}
void ExportNotesJobInterfaceImpl::exportArchiveResource()
{
QTimer::singleShot(0, this, &ExportNotesJobInterface::slotWriteNextArchiveResource);
}
void ExportNotesJobInterfaceImpl::convertCollectionIdsToRealPath(KConfigGroup &selectFolderNoteGroup, const QString &selectFolderNoteGroupStr)
{
ResourceConverterImpl resourceImpl;
......
......@@ -32,7 +32,6 @@ public:
~ExportNotesJobInterfaceImpl() override;
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;
......
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