digiKam
dbjobsmanager.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-05
7  * Description : Manager for creating and starting DB jobs threads
8  *
9  * Copyright (C) 2015 by Mohamed_Anwer <m_dot_anwer at gmx 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_DB_JOBS_MANAGER_H
25 #define DIGIKAM_DB_JOBS_MANAGER_H
26 
27 // Qt includes
28 
29 #include <QObject>
30 
31 // Local includes
32 
33 #include "dbjobinfo.h"
34 #include "dbjobsthread.h"
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 class DIGIKAM_DATABASE_EXPORT DBJobsManager : public QObject
41 {
42  Q_OBJECT
43 
44 public:
45 
50  static DBJobsManager* instance();
51 
57  GPSDBJobsThread* startGPSJobThread(const GPSDBJobInfo& jInfo);
58 
64  TagsDBJobsThread* startTagsJobThread(const TagsDBJobInfo& jInfo);
65 
71  DatesDBJobsThread* startDatesJobThread(const DatesDBJobInfo& jInfo);
72 
78  AlbumsDBJobsThread* startAlbumsJobThread(const AlbumsDBJobInfo& jInfo);
79 
85  SearchesDBJobsThread* startSearchesJobThread(const SearchesDBJobInfo& jInfo);
86 
87 private:
88 
89  // Disable
90  DBJobsManager();
91  explicit DBJobsManager(QObject*) = delete;
92 
93  friend class DBJobsManagerCreator;
94 };
95 
96 } // namespace Digikam
97 
98 #endif // DIGIKAM_DB_JOBS_MANAGER_H
Definition: dbjobinfo.h:67
Definition: dbjobsthread.h:92
Definition: dbjobsmanager.h:41
Definition: dbjobinfo.h:178
Definition: dbjobsthread.h:138
Definition: dbjobinfo.h:111
Definition: dbjobsthread.h:194
Definition: dbjobinfo.h:143
Definition: dbjobsthread.h:160
Definition: dbjobinfo.h:87
Definition: dbjobsthread.h:115
Definition: datefolderview.cpp:43