digiKam
imageresizethread.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-09
7  * Description : resize image threads manager.
8  *
9  * Copyright (C) 2007-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) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_IMAGE_RESIZE_THREAD_H
24 #define DIGIKAM_IMAGE_RESIZE_THREAD_H
25 
26 // Qt includes
27 
28 #include <QString>
29 #include <QUrl>
30 
31 // Local includes
32 
33 #include "actionthreadbase.h"
34 #include "mailsettings.h"
35 
36 using namespace Digikam;
37 
39 {
40 
42 {
43  Q_OBJECT
44 
45 public:
46 
47  explicit ImageResizeThread(QObject* const parent);
48  ~ImageResizeThread() override;
49 
50  void resize(MailSettings* const settings);
51  void cancel();
52 
53 Q_SIGNALS:
54 
55  void startingResize(const QUrl& orgUrl);
56  void finishedResize(const QUrl& orgUrl, const QUrl& emailUrl, int percent);
57  void failedResize(const QUrl& orgUrl, const QString& errString, int percent);
58 
59 private:
60 
61  int* m_count;
62 };
63 
64 } // namespace DigikamGenericSendByMailPlugin
65 
66 #endif // DIGIKAM_IMAGE_RESIZE_THREAD_H
Definition: imageresizethread.h:42
void finishedResize(const QUrl &orgUrl, const QUrl &emailUrl, int percent)
void failedResize(const QUrl &orgUrl, const QString &errString, int percent)
Definition: actionthreadbase.h:102
Definition: imageresizejob.cpp:44
Definition: datefolderview.cpp:43