File indexing completed on 2025-01-05 03:53:12
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2007-11-07 0007 * Description : a tool to print images 0008 * 0009 * SPDX-FileCopyrightText: 2017-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_ADV_PRINT_THREAD_H 0016 #define DIGIKAM_ADV_PRINT_THREAD_H 0017 0018 // Local includes 0019 0020 #include "advprintsettings.h" 0021 #include "advprinttask.h" 0022 #include "actionthreadbase.h" 0023 0024 using namespace Digikam; 0025 0026 namespace DigikamGenericPrintCreatorPlugin 0027 { 0028 0029 class AdvPrintThread : public ActionThreadBase 0030 { 0031 Q_OBJECT 0032 0033 public: 0034 0035 explicit AdvPrintThread(QObject* const parent); 0036 ~AdvPrintThread() override; 0037 0038 void preparePrint(AdvPrintSettings* const settings, int sizeIndex); 0039 void print(AdvPrintSettings* const settings); 0040 void preview(AdvPrintSettings* const settings, const QSize& size); 0041 0042 Q_SIGNALS: 0043 0044 void signalProgress(int); 0045 void signalDone(bool); 0046 void signalMessage(const QString&, bool); 0047 void signalPreview(const QImage&); 0048 }; 0049 0050 } // namespace DigikamGenericPrintCreatorPlugin 0051 0052 #endif // DIGIKAM_ADV_PRINT_THREAD_H