digiKam
advprintthread.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2007-11-07
7  * Description : a tool to print images
8  *
9  * Copyright (C) 2017-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_ADV_PRINT_THREAD_H
25 #define DIGIKAM_ADV_PRINT_THREAD_H
26 
27 // Local includes
28 
29 #include "advprintsettings.h"
30 #include "advprinttask.h"
31 #include "actionthreadbase.h"
32 
33 using namespace Digikam;
34 
36 {
37 
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit AdvPrintThread(QObject* const parent);
45  ~AdvPrintThread() override;
46 
47  void preparePrint(AdvPrintSettings* const settings, int sizeIndex);
48  void print(AdvPrintSettings* const settings);
49  void preview(AdvPrintSettings* const settings, const QSize& size);
50 
51 Q_SIGNALS:
52 
53  void signalProgress(int);
54  void signalDone(bool);
55  void signalMessage(const QString&, bool);
56  void signalPreview(const QImage&);
57 };
58 
59 } // namespace DigikamGenericPrintCreatorPlugin
60 
61 #endif // DIGIKAM_ADV_PRINT_THREAD_H
Definition: actionthreadbase.h:102
Definition: advprintphoto.cpp:43
Definition: datefolderview.cpp:43