Commit 5085ea8a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to define resource type

parent bcbf8441
......@@ -53,8 +53,13 @@ void ExportAddressbookJobInterfaceTestImpl::exportResourceToArchive(const QStrin
QVector<Utils::AkonadiInstanceInfo> ExportAddressbookJobInterfaceTestImpl::listOfResource()
{
//TODO
return {};
qDebug() << " QVector<Utils::AkonadiInstanceInfo> ExportAddressbookJobInterfaceTestImpl::listOfResource()";
return mListAkonadiInstanceInfo;
}
void ExportAddressbookJobInterfaceTestImpl::setListOfResource(const QVector<Utils::AkonadiInstanceInfo> &instanceInfoList)
{
mListAkonadiInstanceInfo = instanceInfoList;
}
void ExportAddressbookJobInterfaceTestImpl::convertCollectionToRealPath(KConfigGroup &group, const QString &currentKey)
......
......@@ -30,6 +30,7 @@ class ExportAddressbookJobInterfaceTestImpl : public ExportAddressbookJobInterfa
public:
explicit ExportAddressbookJobInterfaceTestImpl(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep);
~ExportAddressbookJobInterfaceTestImpl();
void setListOfResource(const QVector<Utils::AkonadiInstanceInfo> &instanceInfoList);
protected:
void exportArchiveResource() override;
......@@ -40,6 +41,8 @@ protected:
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;
private:
QVector<Utils::AkonadiInstanceInfo> mListAkonadiInstanceInfo;
};
class ExportAddressbookJobInterfaceTest : public QObject
......
......@@ -43,8 +43,13 @@ void ExportAlarmJobInterfaceTestImpl::exportArchiveResource()
QVector<Utils::AkonadiInstanceInfo> ExportAlarmJobInterfaceTestImpl::listOfResource()
{
//TODO
return {};
qDebug() << " QVector<Utils::AkonadiInstanceInfo> ExportAlarmJobInterfaceTestImpl::listOfResource()";
return mListAkonadiInstanceInfo;
}
void ExportAlarmJobInterfaceTestImpl::setListOfResource(const QVector<Utils::AkonadiInstanceInfo> &instanceInfoList)
{
mListAkonadiInstanceInfo = instanceInfoList;
}
Akonadi::Collection::Id ExportAlarmJobInterfaceTestImpl::convertFolderPathToCollectionId(const QString &path)
......
......@@ -30,12 +30,14 @@ class ExportAlarmJobInterfaceTestImpl : public ExportAlarmJobInterface
public:
explicit ExportAlarmJobInterfaceTestImpl(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep);
~ExportAlarmJobInterfaceTestImpl();
void setListOfResource(const QVector<Utils::AkonadiInstanceInfo> &instanceInfoList);
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;
private:
QVector<Utils::AkonadiInstanceInfo> mListAkonadiInstanceInfo;
};
class ExportAlarmJobInterfaceTest : public QObject
......
......@@ -59,8 +59,13 @@ void ExportCalendarsJobInterfaceTestImpl::exportResourceToArchive(const QString
QVector<Utils::AkonadiInstanceInfo> ExportCalendarsJobInterfaceTestImpl::listOfResource()
{
//TODO
return {};
qDebug() << " QVector<Utils::AkonadiInstanceInfo> ExportNotesJobInterfaceTestImpl::listOfResource()";
return mListAkonadiInstanceInfo;
}
void ExportCalendarsJobInterfaceTestImpl::setListOfResource(const QVector<Utils::AkonadiInstanceInfo> &instanceInfoList)
{
mListAkonadiInstanceInfo = instanceInfoList;
}
void ExportCalendarsJobInterfaceTestImpl::convertCollectionListToRealPath(KConfigGroup &group, const QString &currentKey)
......
......@@ -31,6 +31,7 @@ public:
explicit ExportCalendarsJobInterfaceTestImpl(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep);
~ExportCalendarsJobInterfaceTestImpl();
void setListOfResource(const QVector<Utils::AkonadiInstanceInfo> &instanceInfoList);
protected:
void exportArchiveResource() override;
Q_REQUIRED_RESULT Akonadi::Collection::Id convertFolderPathToCollectionId(const QString &path) override;
......@@ -38,6 +39,8 @@ protected:
void convertCollectionListToRealPath(KConfigGroup &group, const QString &currentKey) override;
void exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier) override;
Q_REQUIRED_RESULT QVector<Utils::AkonadiInstanceInfo> listOfResource() override;
private:
QVector<Utils::AkonadiInstanceInfo> mListAkonadiInstanceInfo;
};
class ExportCalendarsJobInterfaceTest : public QObject
......
......@@ -49,13 +49,12 @@ void ExportNotesJobInterfaceTestImpl::exportArchiveResource()
void ExportNotesJobInterfaceTestImpl::setListOfResource(const QVector<Utils::AkonadiInstanceInfo> &instanceInfoList)
{
mAkonadiInstanceInfo = instanceInfoList;
mListAkonadiInstanceInfo = instanceInfoList;
}
QVector<Utils::AkonadiInstanceInfo> ExportNotesJobInterfaceTestImpl::listOfResource()
{
qDebug() << " QVector<Utils::AkonadiInstanceInfo> ExportNotesJobInterfaceTestImpl::listOfResource()";
//TODO
return mListAkonadiInstanceInfo;
}
......
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