digiKam
Loading...
Searching...
No Matches
iojobsmanager.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 : 2015-06-15
7 * Description : Manager for creating and starting IO jobs threads
8 *
9 * SPDX-FileCopyrightText: 2015 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
10 * SPDX-FileCopyrightText: 2018 by Maik Qualmann <metzpinguin at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QObject>
21#include <QUrl>
22
23// Local includes
24
25#include "digikam_export.h"
26#include "dtrashiteminfo.h"
27#include "iojobsthread.h"
28
29namespace Digikam
30{
31
32class IOJobData;
33
34class DIGIKAM_GUI_EXPORT IOJobsManager : public QObject
35{
36 Q_OBJECT
37
38public:
39
44 static IOJobsManager* instance();
45
51 IOJobsThread* startIOJobs(IOJobData* const data);
52
58 IOJobsThread* startDTrashItemsListingForCollection(const QString& collectionPath);
59
64 IOJobsThread* buildCollectionTrashCounters();
65
66private:
67
68 // Disable
70 explicit IOJobsManager(QObject*);
71
72 friend class IOJobsManagerCreator;
73};
74
75} // namespace Digikam
Definition iojobdata.h:35
Definition iojobsmanager.h:35
Definition iojobsthread.h:31
Definition datefolderview.cpp:34