Commit 156c232c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Prepare to create job

parent ac0057c1
Pipeline #200581 passed with stage
in 22 minutes and 41 seconds
......@@ -11,6 +11,8 @@ ecm_qt_declare_logging_category(akonadidatasetools HEADER akonadidatasetools_deb
target_sources(akonadidatasetools PRIVATE
akonadidatabasetoolsplugininterface.cpp
akonadidatabasetoolsplugininterface.h
akonadidatabasetoolsjob.h
akonadidatabasetoolsjob.cpp
)
generate_export_header(akonadidatasetools BASE_NAME akonadidatasetools)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
......
/*
SPDX-FileCopyrightText: 2022 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "akonadidatabasetoolsjob.h"
AkonadiDatabaseToolsJob::AkonadiDatabaseToolsJob(QObject *parent)
: QObject{parent}
{
}
AkonadiDatabaseToolsJob::~AkonadiDatabaseToolsJob() = default;
bool AkonadiDatabaseToolsJob::canStart() const
{
// TODO
return false;
}
void AkonadiDatabaseToolsJob::start()
{
if (!canStart()) {
deleteLater();
return;
}
// TODO
}
/*
SPDX-FileCopyrightText: 2022 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "akonadidatasetools_export.h"
#include <QObject>
class AKONADIDATASETOOLS_EXPORT AkonadiDatabaseToolsJob : public QObject
{
Q_OBJECT
public:
explicit AkonadiDatabaseToolsJob(QObject *parent = nullptr);
~AkonadiDatabaseToolsJob() override;
Q_REQUIRED_RESULT bool canStart() const;
void start();
};
Supports Markdown
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