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

Fix typo in class name

parent 0aae2aa8
......@@ -20,16 +20,16 @@
#include "backupresourcefilejobtest.h"
#include "backupresourcefilejob.h"
#include <QTest>
QTEST_MAIN(backupResourceFileJobTest)
backupResourceFileJobTest::backupResourceFileJobTest(QObject *parent)
QTEST_MAIN(BackupResourceFileJobTest)
BackupResourceFileJobTest::BackupResourceFileJobTest(QObject *parent)
: QObject(parent)
{
}
void backupResourceFileJobTest::shouldHaveDefaultValue()
void BackupResourceFileJobTest::shouldHaveDefaultValue()
{
backupResourceFileJob *job = new backupResourceFileJob;
BackupResourceFileJob *job = new BackupResourceFileJob;
QVERIFY(!job->canStart());
QVERIFY(job->identifier().isEmpty());
QVERIFY(!job->zip());
......
......@@ -22,12 +22,12 @@
#include <QObject>
class backupResourceFileJobTest : public QObject
class BackupResourceFileJobTest : public QObject
{
Q_OBJECT
public:
explicit backupResourceFileJobTest(QObject *parent = nullptr);
~backupResourceFileJobTest() = default;
explicit BackupResourceFileJobTest(QObject *parent = nullptr);
~BackupResourceFileJobTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValue();
};
......
......@@ -26,18 +26,18 @@
#include <QFileInfo>
backupResourceFileJob::backupResourceFileJob(QObject *parent)
BackupResourceFileJob::BackupResourceFileJob(QObject *parent)
: QObject(parent)
{
}
backupResourceFileJob::~backupResourceFileJob()
BackupResourceFileJob::~BackupResourceFileJob()
{
}
void backupResourceFileJob::start()
void BackupResourceFileJob::start()
{
if (!canStart()) {
qCWarning(PIMDATAEXPORTERCORE_LOG) << "Impossible to start backupResourceFileJob";
......@@ -57,8 +57,8 @@ void backupResourceFileJob::start()
Q_EMIT info(i18n("\"%1\" was backed up.", filename));
StoreResourceJob *job = new StoreResourceJob(this);
connect(job, &StoreResourceJob::error, this, &backupResourceFileJob::error);
connect(job, &StoreResourceJob::info, this, &backupResourceFileJob::info);
connect(job, &StoreResourceJob::error, this, &BackupResourceFileJob::error);
connect(job, &StoreResourceJob::info, this, &BackupResourceFileJob::info);
job->setArchivePath(archivePath);
job->setZip(mZip);
job->setIdentifier(mIdentifier);
......@@ -70,37 +70,37 @@ void backupResourceFileJob::start()
deleteLater();
}
bool backupResourceFileJob::canStart() const
bool BackupResourceFileJob::canStart() const
{
return mZip && !mDefaultPath.isEmpty() && !mIdentifier.isEmpty();
}
QString backupResourceFileJob::identifier() const
QString BackupResourceFileJob::identifier() const
{
return mIdentifier;
}
void backupResourceFileJob::setIdentifier(const QString &identifier)
void BackupResourceFileJob::setIdentifier(const QString &identifier)
{
mIdentifier = identifier;
}
KZip *backupResourceFileJob::zip() const
KZip *BackupResourceFileJob::zip() const
{
return mZip;
}
void backupResourceFileJob::setZip(KZip *zip)
void BackupResourceFileJob::setZip(KZip *zip)
{
mZip = zip;
}
QString backupResourceFileJob::defaultPath() const
QString BackupResourceFileJob::defaultPath() const
{
return mDefaultPath;
}
void backupResourceFileJob::setDefaultPath(const QString &defaultPath)
void BackupResourceFileJob::setDefaultPath(const QString &defaultPath)
{
mDefaultPath = defaultPath;
}
......@@ -25,12 +25,12 @@
#include <KZip>
#include "pimdataexporter_export.h"
class PIMDATAEXPORTER_EXPORT backupResourceFileJob : public QObject
class PIMDATAEXPORTER_EXPORT BackupResourceFileJob : public QObject
{
Q_OBJECT
public:
explicit backupResourceFileJob(QObject *parent = nullptr);
~backupResourceFileJob();
explicit BackupResourceFileJob(QObject *parent = nullptr);
~BackupResourceFileJob();
void start();
......
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