Messagelib

createdatabasefilejob.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "updatedatabaseinfo.h"
10#include "webengineviewer_export.h"
11#include <QObject>
12#include <memory>
13namespace WebEngineViewer
14{
15class CreateDatabaseFileJobPrivate;
16/**
17 * @brief The CreateDatabaseFileJob class
18 * @author Laurent Montel <montel@kde.org>
19 */
20class WEBENGINEVIEWER_EXPORT CreateDatabaseFileJob : public QObject
21{
22 Q_OBJECT
23public:
24 explicit CreateDatabaseFileJob(QObject *parent = nullptr);
25 ~CreateDatabaseFileJob() override;
26 void start();
27 void setFileName(const QString &filename);
28 [[nodiscard]] bool canStart() const;
29 void setUpdateDataBaseInfo(const WebEngineViewer::UpdateDataBaseInfo &infoDataBase);
30
31Q_SIGNALS:
32 void finished(bool success, const QString &newStateDatabase, const QString &minimumWaitDurationStr);
33
34private:
35 std::unique_ptr<CreateDatabaseFileJobPrivate> const d;
36};
37}
The CreateDatabaseFileJob class.
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.