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

Fix typo

parent 6d21964e
......@@ -41,7 +41,7 @@ Akonadi::Collection::Id ExportAddressbookJobInterfaceTestImpl::convertFolderPath
void ExportAddressbookJobInterfaceTestImpl::exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier)
{
SaveResoureConfigTest saveResourceConfig;
SaveResourceConfigTest saveResourceConfig;
saveResourceConfig.setArchive(mArchiveStorage->archive());
saveResourceConfig.exportResourceToArchive(archivePath, url, identifier, Utils::resourceAddressbookArchiveName(),
{ QLatin1String("akonadi_vcarddir_resource_"), QLatin1String("akonadi_contacts_resource_") });
......
......@@ -47,7 +47,7 @@ Akonadi::Collection::Id ExportAlarmJobInterfaceTestImpl::convertFolderPathToColl
void ExportAlarmJobInterfaceTestImpl::exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier)
{
SaveResoureConfigTest saveResourceConfig;
SaveResourceConfigTest saveResourceConfig;
saveResourceConfig.setArchive(mArchiveStorage->archive());
saveResourceConfig.exportResourceToArchive(archivePath, url, identifier, Utils::resourceAlarmArchiveName(), { QLatin1String("akonadi_kalarm_dir_resource_")});
slotAlarmJobTerminated();
......
......@@ -51,7 +51,7 @@ QString ExportCalendarsJobInterfaceTestImpl::convertToFullCollectionPath(const q
void ExportCalendarsJobInterfaceTestImpl::exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier)
{
qDebug() << " void ExportCalendarsJobInterfaceTestImpl::exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier)" << identifier;
SaveResoureConfigTest saveResourceConfig;
SaveResourceConfigTest saveResourceConfig;
saveResourceConfig.setArchive(mArchiveStorage->archive());
saveResourceConfig.exportResourceToArchive(archivePath, url, identifier, Utils::resourceCalendarArchiveName(), { QLatin1String("akonadi_icaldir_resource_")});
slotCalendarJobTerminated();
......
......@@ -72,7 +72,7 @@ QVector<MailCommon::MailFilter *> ExportMailJobInterfaceTestImpl::filters()
void ExportMailJobInterfaceTestImpl::exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier)
{
SaveResoureConfigTest saveResourceConfig;
SaveResourceConfigTest saveResourceConfig;
saveResourceConfig.setArchive(mArchiveStorage->archive());
saveResourceConfig.exportResourceToArchive(archivePath, url, identifier, Utils::resourceMailArchiveName(),
{ QLatin1String("akonadi_maildir_resource_"), QLatin1String("akonadi_mixedmaildir_resource_")});
......
......@@ -47,7 +47,7 @@ QVector<Utils::AkonadiInstanceInfo> ExportNotesJobInterfaceTestImpl::listOfResou
void ExportNotesJobInterfaceTestImpl::exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier)
{
SaveResoureConfigTest saveResourceConfig;
SaveResourceConfigTest saveResourceConfig;
saveResourceConfig.setArchive(mArchiveStorage->archive());
saveResourceConfig.exportResourceToArchive(archivePath, url, identifier, Utils::resourceNoteArchiveName(), {QLatin1String("akonadi_akonotes_resource_")});
slotNoteJobTerminated();
......
......@@ -22,21 +22,21 @@
#include <QTest>
#include <AkonadiCore/ServerManager>
SaveResoureConfigTest::SaveResoureConfigTest()
SaveResourceConfigTest::SaveResourceConfigTest()
{
}
KZip *SaveResoureConfigTest::archive() const
KZip *SaveResourceConfigTest::archive() const
{
return mArchive;
}
void SaveResoureConfigTest::setArchive(KZip *archive)
void SaveResourceConfigTest::setArchive(KZip *archive)
{
mArchive = archive;
}
void SaveResoureConfigTest::exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier, const QString &resourceArchiveName, const QStringList &resourceIdentifierTypes)
void SaveResourceConfigTest::exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier, const QString &resourceArchiveName, const QStringList &resourceIdentifierTypes)
{
QVERIFY(mArchive);
bool typeIdentifierFound = false;
......
......@@ -22,10 +22,10 @@
#include <KZip>
class SaveResoureConfigTest
class SaveResourceConfigTest
{
public:
SaveResoureConfigTest();
SaveResourceConfigTest();
KZip *archive() const;
void setArchive(KZip *archive);
......
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