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

We will able to overwrite settings in autotest too

parent 4ef407ac
Pipeline #26467 passed with stage
in 33 minutes and 22 seconds
......@@ -20,8 +20,9 @@ add_library(test_resourceconverter STATIC
saveresourceconfigtest.cpp
compareloggingfile.cpp
testbackupresourcefilejob.cpp
importexportprogressindicatortest.cpp
)
target_link_libraries(test_resourceconverter PUBLIC KF5::ConfigCore pimdataexporterprivate KF5::Archive Qt5::Test KF5::AkonadiCore)
target_link_libraries(test_resourceconverter PUBLIC KF5::ConfigCore pimdataexporterprivate KF5::Archive Qt5::Test KF5::AkonadiCore KF5::WidgetsAddons)
#####
......
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "importexportprogressindicatortest.h"
#include <KMessageBox>
ImportExportProgressIndicatorTest::ImportExportProgressIndicatorTest(QObject *parent)
: ImportExportProgressIndicatorBase(parent)
{
}
int ImportExportProgressIndicatorTest::mergeConfigMessageBox(const QString &configName) const
{
Q_UNUSED(configName);
return KMessageBox::Yes;
}
bool ImportExportProgressIndicatorTest::overwriteConfigMessageBox(const QString &configName) const
{
Q_UNUSED(configName);
return true;
}
bool ImportExportProgressIndicatorTest::overwriteDirectoryMessageBox(const QString &directory) const
{
Q_UNUSED(directory);
return true;
}
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef IMPORTEXPORTPROGRESSINDICATORTEST_H
#define IMPORTEXPORTPROGRESSINDICATORTEST_H
#include <importexportprogressindicatorbase.h>
class ImportExportProgressIndicatorTest : public ImportExportProgressIndicatorBase
{
public:
explicit ImportExportProgressIndicatorTest(QObject *parent);
Q_REQUIRED_RESULT int mergeConfigMessageBox(const QString &configName) const override;
Q_REQUIRED_RESULT bool overwriteConfigMessageBox(const QString &configName) const override;
Q_REQUIRED_RESULT bool overwriteDirectoryMessageBox(const QString &directory) const override;
};
#endif // IMPORTEXPORTPROGRESSINDICATORTEST_H
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