digiKam
actionthread.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 : 2009-02-06
7  * Description : Thread actions manager.
8  *
9  * Copyright (C) 2009-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2012 by Pankaj Kumar <me at panks dot me>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_BQM_ACTION_THREAD_H
26 #define DIGIKAM_BQM_ACTION_THREAD_H
27 
28 // Local includes
29 
30 #include "batchtool.h"
31 #include "batchtoolutils.h"
32 #include "actionthreadbase.h"
33 
34 namespace Digikam
35 {
36 
37 class ActionData;
38 class QueueSettings;
39 
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit ActionThread(QObject* const parent);
47  ~ActionThread() override;
48 
49  void setSettings(const QueueSettings& settings);
50 
52 
53  void cancel();
54 
55 Q_SIGNALS:
56 
61 
66 
71 
76 
77 private Q_SLOTS:
78 
79  void slotUpdateItemInfo(const Digikam::ActionData& ad);
80  void slotThreadFinished();
81 
82 private:
83 
84  class Private;
85  Private* const d;
86 };
87 
88 } // namespace Digikam
89 
90 #endif // DIGIKAM_BQM_ACTION_THREAD_H
Definition: actions.h:37
Definition: actionthreadbase.h:102
Definition: actionthread.h:41
ActionThread(QObject *const parent)
Definition: actionthread.cpp:51
void signalStarting(const Digikam::ActionData &ad)
void setSettings(const QueueSettings &settings)
Definition: actionthread.cpp:71
void cancel()
Definition: actionthread.cpp:112
void signalFinished(const Digikam::ActionData &ad)
~ActionThread() override
Definition: actionthread.cpp:62
void processQueueItems(const QList< AssignedBatchTools > &items)
Definition: actionthread.cpp:85
Definition: queuesettings.h:44
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43