File indexing completed on 2024-10-27 04:39:17

0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 // SPDX-FileCopyrightText: 2023 Louis Schul <schul9louis@gmail.com>
0003 
0004 #pragma once
0005 
0006 #include <QObject>
0007 
0008 class PrintingUtility : public QObject
0009 {
0010     Q_OBJECT
0011 
0012 public:
0013     explicit PrintingUtility(QObject *parent = nullptr);
0014 
0015     Q_INVOKABLE void writePdf(const QString &path) const;
0016     Q_INVOKABLE void copy(const QString &fromPath, const QString &toPath) const;
0017 
0018 Q_SIGNALS:
0019     void pdfCopyDone(const bool succes, const QString &message) const;
0020 };