Messagelib

createdatabasefilejob.h
1 /*
2  SPDX-FileCopyrightText: 2016-2021 Laurent Montel <[email protected]>
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>
13 namespace WebEngineViewer
14 {
15 class CreateDatabaseFileJobPrivate;
16 /**
17  * @brief The CreateDatabaseFileJob class
18  * @author Laurent Montel <[email protected]>
19  */
20 class WEBENGINEVIEWER_EXPORT CreateDatabaseFileJob : public QObject
21 {
22  Q_OBJECT
23 public:
24  explicit CreateDatabaseFileJob(QObject *parent = nullptr);
25  ~CreateDatabaseFileJob() override;
26  void start();
27  void setFileName(const QString &filename);
28  Q_REQUIRED_RESULT bool canStart() const;
29  void setUpdateDataBaseInfo(const WebEngineViewer::UpdateDataBaseInfo &infoDataBase);
30 
31 Q_SIGNALS:
32  void finished(bool success, const QString &newStateDatabase, const QString &minimumWaitDurationStr);
33 
34 private:
35  std::unique_ptr<CreateDatabaseFileJobPrivate> const d;
36 };
37 }
38 
The CreateDatabaseFileJob class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.