digiKam
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  * Copyright (C) 2015 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
10  * Copyright (C) 2018 by Maik Qualmann <metzpinguin at gmail dot com>
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_IO_JOBS_MANAGER_H
26 #define DIGIKAM_IO_JOBS_MANAGER_H
27 
28 // Qt includes
29 
30 #include <QObject>
31 #include <QUrl>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 #include "dtrashiteminfo.h"
37 #include "iojobsthread.h"
38 
39 namespace Digikam
40 {
41 
42 class IOJobData;
43 
44 class DIGIKAM_GUI_EXPORT IOJobsManager : public QObject
45 {
46  Q_OBJECT
47 
48 public:
49 
54  static IOJobsManager* instance();
55 
61  IOJobsThread* startIOJobs(IOJobData* const data);
62 
68  IOJobsThread* startDTrashItemsListingForCollection(const QString& collectionPath);
69 
70 private:
71 
72  // Disable
73  IOJobsManager();
74  explicit IOJobsManager(QObject*);
75 
76  friend class IOJobsManagerCreator;
77 };
78 
79 } // namespace Digikam
80 
81 #endif // DIGIKAM_IO_JOBS_MANAGER_H
Definition: iojobdata.h:45
Definition: iojobsmanager.h:45
Definition: iojobsthread.h:41
Definition: datefolderview.cpp:43